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/wait | |
| parent | 119aed5bc787ccbf23d2f151759ec1f3a80977e1 (diff) | |
Fix include paths and formatting inconsistencies
Diffstat (limited to 'lib/libc/wait')
| -rw-r--r-- | lib/libc/wait/wait.c | 7 | ||||
| -rw-r--r-- | lib/libc/wait/waitid.c | 8 | ||||
| -rw-r--r-- | lib/libc/wait/waitpid.c | 7 |
3 files changed, 16 insertions, 6 deletions
diff --git a/lib/libc/wait/wait.c b/lib/libc/wait/wait.c index f0583bfc..262c6b75 100644 --- a/lib/libc/wait/wait.c +++ b/lib/libc/wait/wait.c @@ -1,5 +1,8 @@ -#include <sys/wait.h> -#include <syscall.h> +#include "asm/unistd_64.h" // for __NR_wait4 +#include "sys/types.h" // for pid_t + +#include <sys/wait.h> // for wait +#include <syscall.h> // for __syscall_4, syscall pid_t wait(int *stat_loc) { diff --git a/lib/libc/wait/waitid.c b/lib/libc/wait/waitid.c index 5b6237b8..31060ddc 100644 --- a/lib/libc/wait/waitid.c +++ b/lib/libc/wait/waitid.c @@ -1,5 +1,9 @@ -#include <sys/wait.h> -#include <syscall.h> +#include "asm/unistd_64.h" // for __NR_waitid + +#include <signal.h> // for siginfo_t +#include <sys/types.h> // for id_t +#include <sys/wait.h> // for idtype_t, waitid +#include <syscall.h> // for __syscall_4, syscall int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options) { diff --git a/lib/libc/wait/waitpid.c b/lib/libc/wait/waitpid.c index a5746efc..30acd0f4 100644 --- a/lib/libc/wait/waitpid.c +++ b/lib/libc/wait/waitpid.c @@ -1,5 +1,8 @@ -#include <sys/wait.h> -#include <syscall.h> +#include "asm/unistd_64.h" // for __NR_wait4 +#include "sys/types.h" // for pid_t + +#include <sys/wait.h> // for waitpid +#include <syscall.h> // for __syscall_4, syscall pid_t waitpid(pid_t pid, int *stat_loc, int options) { |
