blob: 60d54a20c8c4d88026ff8a32f178c4a6449b9ba2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <Kernel/Syscall.h>
#include <errno.h>
#include <stdio.h>
#include <sys/select.h>
extern "C" {
int select(int nfds, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, struct timeval* timeout)
{
Syscall::SC_select_params params { nfds, readfds, writefds, exceptfds, timeout };
int rc = syscall(SC_select, ¶ms);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
}
|