| ... | ... | @@ -105,26 +105,26 @@ pub const W_OK = 2; // test for write permission |
| 105 | 105 | pub const R_OK = 4; // test for read permission |
| 106 | 106 | |
| 107 | 107 | |
| 108 | | pub const O_RDONLY = 0o0; |
| 109 | | pub const O_WRONLY = 0o1; |
| 110 | | pub const O_RDWR = 0o2; |
| 111 | | pub const O_ACCMODE = 0o3; |
| 112 | | |
| 113 | | pub const O_CREAT = 0o100; |
| 114 | | pub const O_EXCL = 0o200; |
| 115 | | pub const O_NOCTTY = 0o400; |
| 116 | | pub const O_TRUNC = 0o1000; |
| 117 | | pub const O_APPEND = 0o2000; |
| 118 | | pub const O_NONBLOCK = 0o4000; |
| 108 | pub const O_RDONLY = 0x0000; |
| 109 | pub const O_WRONLY = 0x0001; |
| 110 | pub const O_RDWR = 0x0002; |
| 111 | pub const O_ACCMODE = 0x0003; |
| 112 | |
| 113 | pub const O_CREAT = 0x0200; |
| 114 | pub const O_EXCL = 0x0800; |
| 115 | pub const O_NOCTTY = 0x8000; |
| 116 | pub const O_TRUNC = 0x0400; |
| 117 | pub const O_APPEND = 0x0008; |
| 118 | pub const O_NONBLOCK = 0x0004; |
| 119 | 119 | pub const O_DSYNC = 0o10000; |
| 120 | | pub const O_SYNC = 0o4010000; |
| 120 | pub const O_SYNC = 0x0080; |
| 121 | 121 | pub const O_RSYNC = 0o4010000; |
| 122 | 122 | pub const O_DIRECTORY = 0o200000; |
| 123 | | pub const O_NOFOLLOW = 0o400000; |
| 124 | | pub const O_CLOEXEC = 0o2000000; |
| 123 | pub const O_NOFOLLOW = 0x0100; |
| 124 | pub const O_CLOEXEC = 0x00100000; |
| 125 | 125 | |
| 126 | | pub const O_ASYNC = 0o20000; |
| 127 | | pub const O_DIRECT = 0o40000; |
| 126 | pub const O_ASYNC = 0x0040; |
| 127 | pub const O_DIRECT = 0x00010000; |
| 128 | 128 | pub const O_LARGEFILE = 0; |
| 129 | 129 | pub const O_NOATIME = 0o1000000; |
| 130 | 130 | pub const O_PATH = 0o10000000; |