Second Extended Filesystem (ext2) and other improvements (#33)
[lunaix-os.git] / lunaix-os / includes / usr / lunaix / fcntl_defs.h
index 7659a3200c9c879e5f6c1fd68f52e1b5e2d2ac3c..186f5f48fa20f24c57a3bbdae2173ff747550a3a 100644 (file)
@@ -4,12 +4,13 @@
 #include "fstypes.h"
 #include "types.h"
 
-#define FO_CREATE 0x1
-#define FO_APPEND 0x2
-#define FO_DIRECT 0x4
-#define FO_WRONLY 0x8
-#define FO_RDONLY 0x10
-#define FO_RDWR 0x20
+#define FO_CREATE   0x1
+#define FO_APPEND   0x2
+#define FO_DIRECT   0x4
+#define FO_WRONLY   0x8
+#define FO_RDONLY   0x10
+#define FO_RDWR     0x20
+#define FO_TRUNC    0x40
 
 #define FO_NOFOLLOW 0x10000
 
 #define O_WRONLY FO_WRONLY
 #define O_RDONLY FO_RDONLY
 #define O_RDWR FO_RDWR
+#define O_TRUNC FO_TRUNC
 
-#define MNT_RO 0x1
+/* Mount with read-only flag */
+#define MNT_RO (1 << 0)
+
+/* Mount with block-cache-disabled flag */
+#define MNT_NC (1 << 1)
 
 struct file_stat
 {