1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:37:46 +00:00

Oops, forgot to add the select() files to LibC a while ago.

This commit is contained in:
Andreas Kling 2019-01-17 01:41:13 +01:00
parent f92e721ae8
commit 5605295d00
2 changed files with 33 additions and 0 deletions

11
LibC/sys/select.cpp Normal file
View file

@ -0,0 +1,11 @@
#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, &params);
__RETURN_WITH_ERRNO(rc, rc, -1);
}