From b5cd18739a64c8d923a55b61c89ae3900faafd84 Mon Sep 17 00:00:00 2001 From: Kacper Date: Tue, 9 Dec 2025 21:17:12 +0100 Subject: Fix include paths and formatting inconsistencies --- lib/libc/wait/wait.c | 7 +++++-- lib/libc/wait/waitid.c | 8 ++++++-- lib/libc/wait/waitpid.c | 7 +++++-- 3 files changed, 16 insertions(+), 6 deletions(-) (limited to 'lib/libc/wait') 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 -#include +#include "asm/unistd_64.h" // for __NR_wait4 +#include "sys/types.h" // for pid_t + +#include // for wait +#include // 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 -#include +#include "asm/unistd_64.h" // for __NR_waitid + +#include // for siginfo_t +#include // for id_t +#include // for idtype_t, waitid +#include // 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 -#include +#include "asm/unistd_64.h" // for __NR_wait4 +#include "sys/types.h" // for pid_t + +#include // for waitpid +#include // for __syscall_4, syscall pid_t waitpid(pid_t pid, int *stat_loc, int options) { -- cgit v1.2.3