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
use super::fcntl::*;
use super::types::*;
pub const EPOLL_CLOEXEC: i32 = O_CLOEXEC;
pub const EPOLL_CTL_ADD: i32 = 1;
pub const EPOLL_CTL_DEL: i32 = 2;
pub const EPOLL_CTL_MOD: i32 = 3;
pub const EPOLLIN: poll_t = 0x00000001;
pub const EPOLLPRI: poll_t = 0x00000002;
pub const EPOLLOUT: poll_t = 0x00000004;
pub const EPOLLERR: poll_t = 0x00000008;
pub const EPOLLHUP: poll_t = 0x00000010;
pub const EPOLLNVAL: poll_t = 0x00000020;
pub const EPOLLRDNORM: poll_t = 0x00000040;
pub const EPOLLRDBAND: poll_t = 0x00000080;
pub const EPOLLWRNORM: poll_t = 0x00000100;
pub const EPOLLWRBAND: poll_t = 0x00000200;
pub const EPOLLMSG: poll_t = 0x00000400;
pub const EPOLLRDHUP: poll_t = 0x00002000;
pub const EPOLLEXCLUSIVE: poll_t = (1 << 28);
pub const EPOLLWAKEUP: poll_t = (1 << 29);
pub const EPOLLONESHOT: poll_t = (1 << 30);
pub const EPOLLET: poll_t = (1 << 31);
#[repr(C)]
pub struct epoll_event_t {
pub events: poll_t,
data: u64,
}