diff options
Diffstat (limited to 'lib/libc/sys')
| -rw-r--r-- | lib/libc/sys/ioctl.c | 6 | ||||
| -rw-r--r-- | lib/libc/sys/mount.c | 6 | ||||
| -rw-r--r-- | lib/libc/sys/umount.c | 4 | ||||
| -rw-r--r-- | lib/libc/sys/umount2.c | 4 |
4 files changed, 14 insertions, 6 deletions
diff --git a/lib/libc/sys/ioctl.c b/lib/libc/sys/ioctl.c index 9d7cde36..45fbdca7 100644 --- a/lib/libc/sys/ioctl.c +++ b/lib/libc/sys/ioctl.c @@ -1,5 +1,7 @@ -#include <stdarg.h> -#include <syscall.h> +#include "asm/unistd_64.h" // for __NR_ioctl + +#include <stdarg.h> // for va_arg, va_end, va_list, va_start +#include <syscall.h> // for __syscall_3, syscall int ioctl(int fildes, unsigned long request, ...) { diff --git a/lib/libc/sys/mount.c b/lib/libc/sys/mount.c index 0cb95fcf..4ef617b9 100644 --- a/lib/libc/sys/mount.c +++ b/lib/libc/sys/mount.c @@ -1,5 +1,7 @@ -#include <syscall.h> -#include <sys/mount.h> +#include "asm/unistd_64.h" // for __NR_mount + +#include <sys/mount.h> // for mount +#include <syscall.h> // for __syscall_5, syscall int mount(const char *source, const char *target, const char *filesystemtype, unsigned long mountflags, const void *_Nullable data) diff --git a/lib/libc/sys/umount.c b/lib/libc/sys/umount.c index ae1ecf8a..91ce5a77 100644 --- a/lib/libc/sys/umount.c +++ b/lib/libc/sys/umount.c @@ -1,4 +1,6 @@ -#include <syscall.h> +#include "asm/unistd_64.h" // for __NR_umount2 + +#include <syscall.h> // for __syscall_2, syscall int umount(const char *target) { diff --git a/lib/libc/sys/umount2.c b/lib/libc/sys/umount2.c index a75588a8..12f37f98 100644 --- a/lib/libc/sys/umount2.c +++ b/lib/libc/sys/umount2.c @@ -1,4 +1,6 @@ -#include <syscall.h> +#include "asm/unistd_64.h" // for __NR_umount2 + +#include <syscall.h> // for __syscall_2, syscall int umount2(const char *target, int flags) { |
