LibC: Add POSIX spec comments for select APIs
This commit is contained in:
parent
5568aee35f
commit
e9c46a23c8
Notes:
sideshowbarker
2024-07-17 22:25:54 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/e9c46a23c87 Pull-request: https://github.com/SerenityOS/serenity/pull/11359
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
Reference in a new issue