mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:17:34 +00:00
LibC: Add POSIX spec comments for select APIs
This commit is contained in:
parent
5568aee35f
commit
e9c46a23c8
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
|||
|
||||
extern "C" {
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/select.html
|
||||
int select(int nfds, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, timeval* timeout_tv)
|
||||
{
|
||||
timespec* timeout_ts = nullptr;
|
||||
|
@ -26,6 +27,7 @@ int select(int nfds, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, timev
|
|||
return pselect(nfds, readfds, writefds, exceptfds, timeout_ts, nullptr);
|
||||
}
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/pselect.html
|
||||
int pselect(int nfds, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, const timespec* timeout, const sigset_t* sigmask)
|
||||
{
|
||||
Vector<pollfd, FD_SETSIZE> fds;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue