summaryrefslogtreecommitdiff
path: root/lib/libc/fcntl/posix_fallocate.c
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-09 21:17:12 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-09 21:17:12 +0100
commitb5cd18739a64c8d923a55b61c89ae3900faafd84 (patch)
treed192f7b25257ae9a8a4760c68f5314dcbc0d9b91 /lib/libc/fcntl/posix_fallocate.c
parent119aed5bc787ccbf23d2f151759ec1f3a80977e1 (diff)
Fix include paths and formatting inconsistencies
Diffstat (limited to 'lib/libc/fcntl/posix_fallocate.c')
-rw-r--r--lib/libc/fcntl/posix_fallocate.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/fcntl/posix_fallocate.c b/lib/libc/fcntl/posix_fallocate.c
index 221f2d38..61129c4a 100644
--- a/lib/libc/fcntl/posix_fallocate.c
+++ b/lib/libc/fcntl/posix_fallocate.c
@@ -1,5 +1,8 @@
-#include <fcntl.h>
-#include <syscall.h>
+#include "asm/unistd_64.h" // for __NR_fallocate
+
+#include <fcntl.h> // for posix_fallocate
+#include <sys/types.h> // for off_t
+#include <syscall.h> // for __syscall_4, syscall
int posix_fallocate(int fd, off_t offset, off_t len)
{