xref: /relibc/src/header/fcntl/dragonos.rs (revision be35961d82cd98f2a2e61c4f1869271b9f4af571)
1 use crate::platform::types::*;
2 
3 pub const O_RDONLY: c_int = 0x0000;
4 pub const O_WRONLY: c_int = 0x0001;
5 pub const O_RDWR: c_int = 0x0002;
6 pub const O_ACCMODE: c_int = 0x0003;
7 pub const O_CREAT: c_int = 0x0040;
8 pub const O_EXCL: c_int = 0x0080;
9 pub const O_TRUNC: c_int = 0x0200;
10 pub const O_APPEND: c_int = 0x0400;
11 pub const O_NONBLOCK: c_int = 0x0800;
12 pub const O_DIRECTORY: c_int = 0x1_0000;
13 pub const O_NOFOLLOW: c_int = 0x2_0000;
14 pub const O_CLOEXEC: c_int = 0x8_0000;
15 pub const O_PATH: c_int = 0x20_0000;
16 
17 pub const FD_CLOEXEC: c_int = 0x8_0000;
18