diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-09 21:17:12 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-09 21:17:12 +0100 |
| commit | b5cd18739a64c8d923a55b61c89ae3900faafd84 (patch) | |
| tree | d192f7b25257ae9a8a4760c68f5314dcbc0d9b91 /lib/libc/select | |
| parent | 119aed5bc787ccbf23d2f151759ec1f3a80977e1 (diff) | |
Fix include paths and formatting inconsistencies
Diffstat (limited to 'lib/libc/select')
| -rw-r--r-- | lib/libc/select/pselect.c | 8 | ||||
| -rw-r--r-- | lib/libc/select/select.c | 6 |
2 files changed, 9 insertions, 5 deletions
diff --git a/lib/libc/select/pselect.c b/lib/libc/select/pselect.c index 75d31d87..70f63f2d 100644 --- a/lib/libc/select/pselect.c +++ b/lib/libc/select/pselect.c @@ -1,6 +1,8 @@ -#include <sys/select.h> -#include <stdint.h> -#include <syscall.h> +#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 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 4e9f2f99..58c96348 100644 --- a/lib/libc/select/select.c +++ b/lib/libc/select/select.c @@ -1,5 +1,7 @@ -#include <sys/select.h> -#include <syscall.h> +#include "asm/unistd_64.h" // for __NR_pselect6 + +#include <sys/select.h> // for fd_set, select +#include <syscall.h> // for __syscall_6, syscall, syscall_arg_t int select(int nfds, fd_set *restrict readfds, fd_set *restrict writefds, fd_set *restrict errorfds, struct timeval *restrict timeout) |
