summaryrefslogtreecommitdiff
path: root/userland
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-11-22 18:32:30 +0100
committerAnton Kling <anton@kling.gg>2023-11-22 18:32:30 +0100
commit615fb35efa8b13b7109e6974f86b295238163ebc (patch)
treefd7a4597e33a8e8fbcae05cd38f891b615e47e7d /userland
parentf3c7d7fbdea1f2bac81909116ddb747a1f8abdf5 (diff)
Kernel/LibC: Change file type detection
Diffstat (limited to 'userland')
-rw-r--r--userland/libc/include/dirent.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/userland/libc/include/dirent.h b/userland/libc/include/dirent.h
index eda2b04..9f25cbf 100644
--- a/userland/libc/include/dirent.h
+++ b/userland/libc/include/dirent.h
@@ -7,11 +7,8 @@
#include <sys/types.h>
#include <unistd.h>
-#define STAT_REG 0
-#define STAT_DIR 1
-
-#define S_ISREG(_m) (_m & (1 << STAT_REG))
-#define S_ISDIR(_m) (_m & (1 << STAT_DIR))
+#define S_ISREG(_m) (_m & (STAT_REG))
+#define S_ISDIR(_m) (_m & (STAT_DIR))
struct dirent {
ino_t d_ino; // File serial number.