1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
use super::super::c;
use bitflags::bitflags;
bitflags! {
pub struct ReadWriteFlags: c::c_uint {
const DSYNC = linux_raw_sys::general::RWF_DSYNC;
const HIPRI = linux_raw_sys::general::RWF_HIPRI;
const SYNC = linux_raw_sys::general::RWF_SYNC;
const NOWAIT = linux_raw_sys::general::RWF_NOWAIT;
const APPEND = linux_raw_sys::general::RWF_APPEND;
}
}
bitflags! {
pub struct DupFlags: c::c_uint {
const CLOEXEC = linux_raw_sys::general::O_CLOEXEC;
}
}
bitflags! {
pub struct PipeFlags: c::c_uint {
const CLOEXEC = linux_raw_sys::general::O_CLOEXEC;
const DIRECT = linux_raw_sys::general::O_DIRECT;
const NONBLOCK = linux_raw_sys::general::O_NONBLOCK;
}
}
bitflags! {
pub struct EventfdFlags: c::c_uint {
const CLOEXEC = linux_raw_sys::general::EFD_CLOEXEC;
const NONBLOCK = linux_raw_sys::general::EFD_NONBLOCK;
const SEMAPHORE = linux_raw_sys::general::EFD_SEMAPHORE;
}
}
pub const PIPE_BUF: usize = linux_raw_sys::general::PIPE_BUF as usize;
pub(crate) const AT_FDCWD: c::c_int = linux_raw_sys::general::AT_FDCWD;
pub(crate) const STDIN_FILENO: c::c_uint = linux_raw_sys::general::STDIN_FILENO;
pub(crate) const STDOUT_FILENO: c::c_uint = linux_raw_sys::general::STDOUT_FILENO;
pub(crate) const STDERR_FILENO: c::c_uint = linux_raw_sys::general::STDERR_FILENO;