source: trunk/minix/lib/posix/_select.c@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 399 bytes
RevLine 
[9]1
2#include <lib.h>
3#include <sys/time.h>
4#include <sys/select.h>
5
6PUBLIC int select(int nfds,
7 fd_set *readfds, fd_set *writefds, fd_set *errorfds,
8 struct timeval *timeout)
9{
10 message m;
11
12 m.SEL_NFDS = nfds;
13 m.SEL_READFDS = (char *) readfds;
14 m.SEL_WRITEFDS = (char *) writefds;
15 m.SEL_ERRORFDS = (char *) errorfds;
16 m.SEL_TIMEOUT = (char *) timeout;
17
18 return (_syscall(FS, SELECT, &m));
19}
20
Note: See TracBrowser for help on using the repository browser.