summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/remove.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/stdio/remove.c
parent119aed5bc787ccbf23d2f151759ec1f3a80977e1 (diff)
Fix include paths and formatting inconsistencies
Diffstat (limited to 'lib/libc/stdio/remove.c')
-rw-r--r--lib/libc/stdio/remove.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/stdio/remove.c b/lib/libc/stdio/remove.c
index 9aec52e9..25bbd3bd 100644
--- a/lib/libc/stdio/remove.c
+++ b/lib/libc/stdio/remove.c
@@ -1,6 +1,9 @@
-#include <stdio.h>
-#include <fcntl.h>
-#include <syscall.h>
+#include "asm/unistd_64.h" // for __NR_unlinkat
+#include "errno.h" // for EISDIR, errno
+
+#include <fcntl.h> // for AT_FDCWD, AT_REMOVEDIR
+#include <stdio.h> // for remove
+#include <syscall.h> // for __syscall_3, syscall
int remove(const char *path)
{