summaryrefslogtreecommitdiff
path: root/include/sys/stat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sys/stat.h')
-rw-r--r--include/sys/stat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sys/stat.h b/include/sys/stat.h
index 9f3dfe9..e33b14e 100644
--- a/include/sys/stat.h
+++ b/include/sys/stat.h
@@ -5,6 +5,11 @@
#define STAT_REG (1 << 0)
#define STAT_DIR (1 << 1)
+#define STAT_FIFO (1 << 2)
+
+#define S_ISREG(_v) (((_v) >> 0) & 1)
+#define S_ISDIR(_v) (((_v) >> 1) & 1)
+#define S_ISFIFO(_v) (((_v) >> 2) & 1)
struct stat {
dev_t st_dev; // Device ID of device containing file.