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/poll | |
| parent | 119aed5bc787ccbf23d2f151759ec1f3a80977e1 (diff) | |
Fix include paths and formatting inconsistencies
Diffstat (limited to 'lib/libc/poll')
| -rw-r--r-- | lib/libc/poll/poll.c | 6 | ||||
| -rw-r--r-- | lib/libc/poll/ppoll.c | 9 |
2 files changed, 11 insertions, 4 deletions
diff --git a/lib/libc/poll/poll.c b/lib/libc/poll/poll.c index 4ff90aa6..24d91db6 100644 --- a/lib/libc/poll/poll.c +++ b/lib/libc/poll/poll.c @@ -1,5 +1,7 @@ -#include <poll.h> -#include <syscall.h> +#include "asm/unistd_64.h" // for __NR_poll + +#include <poll.h> // for nfds_t, poll, pollfd +#include <syscall.h> // for __syscall_3, syscall int poll(struct pollfd fds[], nfds_t nfds, int timeout) { diff --git a/lib/libc/poll/ppoll.c b/lib/libc/poll/ppoll.c index a5ab9d5e..923784da 100644 --- a/lib/libc/poll/ppoll.c +++ b/lib/libc/poll/ppoll.c @@ -1,5 +1,10 @@ -#include <poll.h> -#include <syscall.h> +#include "asm/unistd_64.h" // for __NR_ppoll + +#include <poll.h> // for nfds_t, pollfd, ppoll +#include <signal.h> // for sigset_t +#include <syscall.h> // for __syscall_5, syscall + +struct timespec; int ppoll(struct pollfd fds[], nfds_t nfds, const struct timespec *restrict timeout, |
