summaryrefslogtreecommitdiff
path: root/lib/libc/stat/fstatat.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/stat/fstatat.c
parent119aed5bc787ccbf23d2f151759ec1f3a80977e1 (diff)
Fix include paths and formatting inconsistencies
Diffstat (limited to 'lib/libc/stat/fstatat.c')
-rw-r--r--lib/libc/stat/fstatat.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/stat/fstatat.c b/lib/libc/stat/fstatat.c
index d7aecbc5..c36ba3e3 100644
--- a/lib/libc/stat/fstatat.c
+++ b/lib/libc/stat/fstatat.c
@@ -1,8 +1,12 @@
-#include <linux/stat.h>
+#include <linux/stat.h> // for statx, statx_timestamp, STATX_BASIC_STATS
+#include <time.h> // for timespec
+
#define __BITS_STAT_H_
-#include <bits/stat.h>
-#undef __BITS_STAT_H_
-#include <syscall.h>
+
+#include "asm/unistd_64.h" // for __NR_statx
+
+#include <bits/stat.h> // for stat
+#include <syscall.h> // for __syscall_5, syscall
#define makedev(major, minor) \
((((major) & 0xfffff000ULL) << 32) | \