some coverity fixes.
[minix.git] / lib / libc / sys-minix / select.c
blobcc84b427df9d23688c257dd60d1b2092d31b2de6
1 #include <sys/cdefs.h>
2 #include <lib.h>
3 #include "namespace.h"
5 #include <sys/time.h>
6 #include <sys/select.h>
8 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(VFS_PROC_NR, SELECT, &m));