feat: fstat now handle symbolic link
[lunaix-os.git] / lunaix-os / includes / usr / lunaix / fstypes.h
diff --git a/lunaix-os/includes/usr/lunaix/fstypes.h b/lunaix-os/includes/usr/lunaix/fstypes.h
new file mode 100644 (file)
index 0000000..957ede0
--- /dev/null
@@ -0,0 +1,15 @@
+#ifndef __LUNAIX_FSTYPES_H
+#define __LUNAIX_FSTYPES_H
+
+#define F_DIR 0x0
+#define F_FILE 0x1
+#define F_DEV 0x2
+#define F_SEQDEV 0x6
+#define F_VOLDEV 0xa
+#define F_SYMLINK 0x10
+
+#define F_MFILE 0b00001
+#define F_MDEV 0b01110
+#define F_MSLNK 0b10000
+
+#endif /* __LUNAIX_FSTYPES_H */