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/sem/semctl.c | |
| parent | 119aed5bc787ccbf23d2f151759ec1f3a80977e1 (diff) | |
Fix include paths and formatting inconsistencies
Diffstat (limited to 'lib/libc/sem/semctl.c')
| -rw-r--r-- | lib/libc/sem/semctl.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/libc/sem/semctl.c b/lib/libc/sem/semctl.c index 78a1adf8..45b6d0e5 100644 --- a/lib/libc/sem/semctl.c +++ b/lib/libc/sem/semctl.c @@ -1,8 +1,10 @@ -#include <stdarg.h> -#include <stddef.h> -#include <sys/ipc.h> -#include <sys/sem.h> -#include <syscall.h> +#include "asm/unistd_64.h" // for __NR_semctl + +#include <stdarg.h> // for va_arg, va_end, va_list, va_start +#include <stddef.h> // for NULL +#include <sys/ipc.h> // for IPC_SET, IPC_STAT +#include <sys/sem.h> // for GETALL, SETALL, SETVAL, semctl +#include <syscall.h> // for __syscall_4, syscall int semctl(int semid, int semnum, int cmd, ...) { |
