diff options
Diffstat (limited to 'libc/include/sys/select.h')
-rw-r--r-- | libc/include/sys/select.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/libc/include/sys/select.h b/libc/include/sys/select.h index 79fc28d6b..65571eb19 100644 --- a/libc/include/sys/select.h +++ b/libc/include/sys/select.h @@ -101,31 +101,37 @@ int __FD_ISSET_chk(int, const fd_set*, size_t) __INTRODUCED_IN(21); /** * [select(2)](http://man7.org/linux/man-pages/man2/select.2.html) waits on a - * set of file descriptors. Use poll() instead. + * set of file descriptors. + * + * Use poll() instead. * * Returns the number of ready file descriptors on success, 0 for timeout, * and returns -1 and sets `errno` on failure. */ -int select(int __fd_count, fd_set* __read_fds, fd_set* __write_fds, fd_set* __exception_fds, struct timeval* __timeout); +int select(int __max_fd_plus_one, fd_set* __read_fds, fd_set* __write_fds, fd_set* __exception_fds, struct timeval* __timeout); /** * [pselect(2)](http://man7.org/linux/man-pages/man2/select.2.html) waits on a - * set of file descriptors. Use ppoll() instead. + * set of file descriptors. + * + * Use ppoll() instead. * * Returns the number of ready file descriptors on success, 0 for timeout, * and returns -1 and sets `errno` on failure. */ -int pselect(int __fd_count, fd_set* __read_fds, fd_set* __write_fds, fd_set* __exception_fds, const struct timespec* __timeout, const sigset_t* __mask); +int pselect(int __max_fd_plus_one, fd_set* __read_fds, fd_set* __write_fds, fd_set* __exception_fds, const struct timespec* __timeout, const sigset_t* __mask); /** * [pselect64(2)](http://man7.org/linux/man-pages/man2/select.2.html) waits on a - * set of file descriptors. Use ppoll64() instead. + * set of file descriptors. + * + * Use ppoll64() instead. * * Returns the number of ready file descriptors on success, 0 for timeout, * and returns -1 and sets `errno` on failure. * * Available since API level 28. */ -int pselect64(int __fd_count, fd_set* __read_fds, fd_set* __write_fds, fd_set* __exception_fds, const struct timespec* __timeout, const sigset64_t* __mask) __INTRODUCED_IN(28); +int pselect64(int __max_fd_plus_one, fd_set* __read_fds, fd_set* __write_fds, fd_set* __exception_fds, const struct timespec* __timeout, const sigset64_t* __mask) __INTRODUCED_IN(28); __END_DECLS |