diff options
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, ...) { |
