kernel and servers send diagnostic messages to IS; IS sends them to TTY

and the new log driver if enabled.

new usyslogd is started from /usr/etc/rc. New device created by
MAKEDEV.sh. /var/log created by etc/mtree/minix.tree (on root for
now). Made select() slightly more generic, with less code duplication.
This commit is contained in:
Ben Gras
2005-07-08 17:30:01 +00:00
parent dd31785aa6
commit 42050e39f8
12 changed files with 177 additions and 98 deletions
+12
View File
@@ -23,6 +23,18 @@ int main(int argc, char *argv[]) {
int i,j;
FD_ZERO(&fds);
for (i=0;i<FD_SETSIZE;i++) {
/* see if SET works */
FD_SET(i, &fds);
if(!FD_ISSET(i, &fds))
return 1;
}
FD_ZERO(&fds);
for (i=0;i<FD_SETSIZE;i++) {
/* see if ZERO works */
if(FD_ISSET(i, &fds))
return 1;
}
for (i=0;i<FD_SETSIZE;i++) {
FD_SET(i, &fds);
for(j = 0; j <= i; j++)