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/fcntl/fcntl.c | |
| parent | 119aed5bc787ccbf23d2f151759ec1f3a80977e1 (diff) | |
Fix include paths and formatting inconsistencies
Diffstat (limited to 'lib/libc/fcntl/fcntl.c')
| -rw-r--r-- | lib/libc/fcntl/fcntl.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/fcntl/fcntl.c b/lib/libc/fcntl/fcntl.c index ae213df5..6112567d 100644 --- a/lib/libc/fcntl/fcntl.c +++ b/lib/libc/fcntl/fcntl.c @@ -1,6 +1,9 @@ -#include <fcntl.h> -#include <stdarg.h> -#include <syscall.h> +#include "asm/unistd_64.h" // for __NR_fcntl, __NR_close +#include "errno.h" // for EINVAL + +#include <fcntl.h> // for F_DUPFD_CLOEXEC, FD_CLOEXEC, F_SETFD, F_D... +#include <stdarg.h> // for va_arg, va_end, va_list, va_start +#include <syscall.h> // for __syscall_ret, syscall, __syscall_3, __sy... int fcntl(int fildes, int cmd, ...) { |
