git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Menuconfig Implementation and auto-qemu refactoring (#44)
[lunaix-os.git]
/
lunaix-os
/
includes
/
usr
/
lunaix
/
fcntl_defs.h
diff --git
a/lunaix-os/includes/usr/lunaix/fcntl_defs.h
b/lunaix-os/includes/usr/lunaix/fcntl_defs.h
index 7659a3200c9c879e5f6c1fd68f52e1b5e2d2ac3c..186f5f48fa20f24c57a3bbdae2173ff747550a3a 100644
(file)
--- a/
lunaix-os/includes/usr/lunaix/fcntl_defs.h
+++ b/
lunaix-os/includes/usr/lunaix/fcntl_defs.h
@@
-4,12
+4,13
@@
#include "fstypes.h"
#include "types.h"
#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 FO_NOFOLLOW 0x10000
@@
-23,8
+24,13
@@
#define O_WRONLY FO_WRONLY
#define O_RDONLY FO_RDONLY
#define O_RDWR FO_RDWR
#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
{
struct file_stat
{