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:
parent
f92e721ae8
commit
5605295d00
2 changed files with 33 additions and 0 deletions
11
LibC/sys/select.cpp
Normal file
11
LibC/sys/select.cpp
Normal 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, ¶ms);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue