diff options
Diffstat (limited to 'components')
| -rw-r--r-- | components/dfs/include/dfs_def.h | 18 | ||||
| -rw-r--r-- | components/libc/newlib/sys/fcntl.h | 18 |
2 files changed, 18 insertions, 18 deletions
diff --git a/components/dfs/include/dfs_def.h b/components/dfs/include/dfs_def.h index fed58ac01a..0651813c9e 100644 --- a/components/dfs/include/dfs_def.h +++ b/components/dfs/include/dfs_def.h @@ -174,15 +174,15 @@ #define DFS_STATUS_ENOTEMPTY 39 /* Directory not empty */ /* Operation flags */ -#define DFS_O_RDONLY 0000000 -#define DFS_O_WRONLY 0000001 -#define DFS_O_RDWR 0000002 -#define DFS_O_ACCMODE 0000003 -#define DFS_O_CREAT 0000100 -#define DFS_O_EXCL 0000200 -#define DFS_O_TRUNC 0001000 -#define DFS_O_APPEND 0002000 -#define DFS_O_DIRECTORY 0200000 +#define DFS_O_RDONLY 0x0000000 +#define DFS_O_WRONLY 0x0000001 +#define DFS_O_RDWR 0x0000002 +#define DFS_O_ACCMODE 0x0000003 +#define DFS_O_CREAT 0x0000100 +#define DFS_O_EXCL 0x0000200 +#define DFS_O_TRUNC 0x0001000 +#define DFS_O_APPEND 0x0002000 +#define DFS_O_DIRECTORY 0x0200000 /* File flags */ #define DFS_F_OPEN 0x01000000 diff --git a/components/libc/newlib/sys/fcntl.h b/components/libc/newlib/sys/fcntl.h index 3638029eb2..a65fb5257e 100644 --- a/components/libc/newlib/sys/fcntl.h +++ b/components/libc/newlib/sys/fcntl.h @@ -2,14 +2,14 @@ #define __RTT_FCNTL_H__
/* Operation flags */
-#define O_RDONLY 0000000
-#define O_WRONLY 0000001
-#define O_RDWR 0000002
-#define O_ACCMODE 0000003
-#define O_CREAT 0000100
-#define O_EXCL 0000200
-#define O_TRUNC 0001000
-#define O_APPEND 0002000
-#define O_DIRECTORY 0200000
+#define O_RDONLY 0x0000000
+#define O_WRONLY 0x0000001
+#define O_RDWR 0x0000002
+#define O_ACCMODE 0x0000003
+#define O_CREAT 0x0000100
+#define O_EXCL 0x0000200
+#define O_TRUNC 0x0001000
+#define O_APPEND 0x0002000
+#define O_DIRECTORY 0x0200000
#endif
|
