| ... | ... | @@ -244,6 +244,12 @@ pub const KERN_MAXID = 37; |
| 244 | 244 | |
| 245 | 245 | pub const HOST_NAME_MAX = 255; |
| 246 | 246 | |
| 247 | // access function |
| 248 | pub const F_OK = 0; // test for existence of file |
| 249 | pub const X_OK = 1; // test for execute or search permission |
| 250 | pub const W_OK = 2; // test for write permission |
| 251 | pub const R_OK = 4; // test for read permission |
| 252 | |
| 247 | 253 | pub const O_RDONLY = 0; |
| 248 | 254 | pub const O_NDELAY = O_NONBLOCK; |
| 249 | 255 | pub const O_WRONLY = 1; |
| ... | ... | @@ -277,7 +283,6 @@ pub const SEEK_END = 2; |
| 277 | 283 | pub const SEEK_DATA = 3; |
| 278 | 284 | pub const SEEK_HOLE = 4; |
| 279 | 285 | |
| 280 | | pub const F_OK = 0; |
| 281 | 286 | pub const F_ULOCK = 0; |
| 282 | 287 | pub const F_LOCK = 1; |
| 283 | 288 | pub const F_TLOCK = 2; |