isblank() implementation.
[minix.git] / lib / libc / posix / _select.c
blob9aeebca2cb19dbaf82f786b6011b0034ce7bda9b
2 #define select _select
4 #include <lib.h>
5 #include <sys/time.h>
6 #include <sys/select.h>
8 PUBLIC int select(int nfds,
9 fd_set *readfds, fd_set *writefds, fd_set *errorfds,
10 struct timeval *timeout)
12 message m;
14 m.SEL_NFDS = nfds;
15 m.SEL_READFDS = (char *) readfds;
16 m.SEL_WRITEFDS = (char *) writefds;
17 m.SEL_ERRORFDS = (char *) errorfds;
18 m.SEL_TIMEOUT = (char *) timeout;
20 return (_syscall(FS, SELECT, &m));