diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-12-20 01:29:23 -0800 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-12-21 18:16:48 -0800 |
commit | e9c46a23c872de99f35280e661e9f5b397663826 (patch) | |
tree | d1ac6b126a4a074465f79af05d58a169538193a4 /Userland | |
parent | 5568aee35fbbaf0eab9f9d32874df8aaf58d9482 (diff) | |
download | serenity-e9c46a23c872de99f35280e661e9f5b397663826.zip |
LibC: Add POSIX spec comments for select APIs
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibC/sys/select.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/sys/select.cpp b/Userland/Libraries/LibC/sys/select.cpp index 186fb845cd..30f005c9c7 100644 --- a/Userland/Libraries/LibC/sys/select.cpp +++ b/Userland/Libraries/LibC/sys/select.cpp @@ -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; |