1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:47:45 +00:00

LibC: Implement pselect

pselect() is similar() to select(), but it takes its timeout
as timespec instead of as timeval, and it takes an additional
sigmask parameter.

Change the sys$select parameters to match pselect() and implement
select() in terms of pselect().
This commit is contained in:
Nico Weber 2020-06-21 13:54:41 -04:00 committed by Andreas Kling
parent 29f509a2a0
commit d23e655c83
6 changed files with 46 additions and 19 deletions

View file

@ -269,7 +269,8 @@ struct SC_select_params {
fd_set* readfds;
fd_set* writefds;
fd_set* exceptfds;
struct timeval* timeout;
const struct timespec* timeout;
const u32* sigmask;
};
struct SC_clock_nanosleep_params {