diff options
| author | [email protected] <[email protected]> | 2011-04-20 15:09:28 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2011-04-20 15:09:28 +0000 |
| commit | ea009132a2088be2bf10f37988a744abe579a48e (patch) | |
| tree | 709ee8be4e61de37d2d55d945335f3ee90c0230a /components/libc/newlib | |
| parent | cfa485f20aa568b991a0e19a0fca4d57d173c765 (diff) | |
modify micro definition of file Operation flags
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1383 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/libc/newlib')
| -rw-r--r-- | components/libc/newlib/sys/fcntl.h | 18 |
1 files changed, 9 insertions, 9 deletions
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
|
