mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 07:54:58 +00:00

This is no longer needed as the Kernel can stand on its own legs now and there won't be any conflict with host system data types.
15 lines
377 B
C++
15 lines
377 B
C++
#include <sys/select.h>
|
|
#include <Kernel/Syscall.h>
|
|
#include <errno.h>
|
|
#include <stdio.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);
|
|
}
|
|
|
|
}
|