mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-09 17:51:03 +00:00
12 lines
360 B
C++
12 lines
360 B
C++
|
|
#include <sys/select.h>
|
||
|
|
#include <Kernel/Syscall.h>
|
||
|
|
#include <errno.h>
|
||
|
|
#include <stdio.h>
|
||
|
|
|
||
|
|
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);
|
||
|
|
}
|