1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 07:54:58 +00:00
serenity/LibC/sys/select.cpp
Andreas Kling 8bb18fdc56 Kernel: Get rid of Unix namespace.
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.
2019-01-23 06:57:00 +01:00

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, &params);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
}