diff options
Diffstat (limited to 'lib/libc/select')
| -rw-r--r-- | lib/libc/select/pselect.c | 6 | ||||
| -rw-r--r-- | lib/libc/select/select.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/lib/libc/select/pselect.c b/lib/libc/select/pselect.c index 70f63f2d..0f434533 100644 --- a/lib/libc/select/pselect.c +++ b/lib/libc/select/pselect.c @@ -1,8 +1,12 @@ -#include "asm/unistd_64.h" // for __NR_pselect6 + + #include <stdint.h> // for uintptr_t #include <sys/select.h> // for fd_set, pselect, sigset_t #include <syscall.h> // for __syscall_6, syscall, syscall_arg_t +#include <time.h> + +struct timespec; int pselect(int nfds, fd_set *restrict readfds, fd_set *restrict writefds, fd_set *restrict errorfds, const struct timespec *restrict timeout, diff --git a/lib/libc/select/select.c b/lib/libc/select/select.c index 58c96348..786724a8 100644 --- a/lib/libc/select/select.c +++ b/lib/libc/select/select.c @@ -1,6 +1,8 @@ -#include "asm/unistd_64.h" // for __NR_pselect6 +#define __BITS_SELECT_H_ +#include "bits/select.h" // for fd_set, timeval (ptr only) -#include <sys/select.h> // for fd_set, select + +#include <sys/select.h> // for select #include <syscall.h> // for __syscall_6, syscall, syscall_arg_t int select(int nfds, fd_set *restrict readfds, fd_set *restrict writefds, |
