summaryrefslogtreecommitdiff
path: root/include
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 /include
parentf3c7d7fbdea1f2bac81909116ddb747a1f8abdf5 (diff)
Kernel/LibC: Change file type detection
Diffstat (limited to 'include')
-rw-r--r--include/sys/stat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sys/stat.h b/include/sys/stat.h
index 8fc5f25..cf4a805 100644
--- a/include/sys/stat.h
+++ b/include/sys/stat.h
@@ -3,8 +3,8 @@
#include <sys/types.h>
#include <time.h>
-#define STAT_REG 0
-#define STAT_DIR 1
+#define STAT_REG (1 << 0)
+#define STAT_DIR (1 << 1)
struct stat {
dev_t st_dev; // Device ID of device containing file.