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/sem/semctl.c | 12 +++++++----- lib/libc/sem/semget.c | 7 +++++-- lib/libc/sem/semop.c | 6 ++++-- 3 files changed, 16 insertions(+), 9 deletions(-) (limited to 'lib/libc/sem') 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 -#include -#include -#include -#include +#include "asm/unistd_64.h" // for __NR_semctl + +#include // for va_arg, va_end, va_list, va_start +#include // for NULL +#include // for IPC_SET, IPC_STAT +#include // for GETALL, SETALL, SETVAL, semctl +#include // for __syscall_4, syscall int semctl(int semid, int semnum, int cmd, ...) { diff --git a/lib/libc/sem/semget.c b/lib/libc/sem/semget.c index 75e1bab9..d3c0b41f 100644 --- a/lib/libc/sem/semget.c +++ b/lib/libc/sem/semget.c @@ -1,5 +1,8 @@ -#include -#include +#include "asm/unistd_64.h" // for __NR_semget + +#include // for semget +#include // for key_t +#include // for __syscall_3, syscall int semget(key_t key, int nsems, int semflg) { diff --git a/lib/libc/sem/semop.c b/lib/libc/sem/semop.c index 82e956dc..6095d445 100644 --- a/lib/libc/sem/semop.c +++ b/lib/libc/sem/semop.c @@ -1,5 +1,7 @@ -#include -#include +#include "asm/unistd_64.h" // for __NR_semop + +#include // for semop, size_t +#include // for __syscall_3, syscall int semop(int semid, struct sembuf *sops, size_t nsops) { -- cgit v1.2.3