__aeabi_ldivmod: fix sign logic
[minix.git] / lib / libc / sys-minix / select.c
bloba703d7cf1ed9d6839376c05864117b185d3215b1
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));
24 #if defined(__minix) && defined(__weak_alias)
25 __weak_alias(select, __select50)
26 #endif