2005-06-06 13:40:32 +02:00
|
|
|
|
2006-06-27 20:28:33 +02:00
|
|
|
#define select _select
|
|
|
|
|
2005-06-06 13:40:32 +02:00
|
|
|
#include <lib.h>
|
2005-06-27 11:30:33 +02:00
|
|
|
#include <sys/time.h>
|
2005-06-06 13:40:32 +02:00
|
|
|
#include <sys/select.h>
|
|
|
|
|
|
|
|
PUBLIC int select(int nfds,
|
|
|
|
fd_set *readfds, fd_set *writefds, fd_set *errorfds,
|
|
|
|
struct timeval *timeout)
|
|
|
|
{
|
|
|
|
message m;
|
|
|
|
|
2005-06-17 13:43:24 +02:00
|
|
|
m.SEL_NFDS = nfds;
|
|
|
|
m.SEL_READFDS = (char *) readfds;
|
|
|
|
m.SEL_WRITEFDS = (char *) writefds;
|
|
|
|
m.SEL_ERRORFDS = (char *) errorfds;
|
|
|
|
m.SEL_TIMEOUT = (char *) timeout;
|
2005-06-06 13:40:32 +02:00
|
|
|
|
|
|
|
return (_syscall(FS, SELECT, &m));
|
|
|
|
}
|
2005-06-17 13:43:24 +02:00
|
|
|
|