...
1
2
3
4
5
6
7 package syscall
8
9 const (
10 SYS_FCNTL = 4055
11 SYS_EPOLL_CTL = 4249
12 SYS_EPOLL_PWAIT = 4313
13 SYS_EPOLL_CREATE1 = 4326
14 SYS_EPOLL_PWAIT2 = 4441
15
16 EPOLLIN = 0x1
17 EPOLLOUT = 0x4
18 EPOLLERR = 0x8
19 EPOLLHUP = 0x10
20 EPOLLRDHUP = 0x2000
21 EPOLLET = 0x80000000
22 EPOLL_CLOEXEC = 0x80000
23 EPOLL_CTL_ADD = 0x1
24 EPOLL_CTL_DEL = 0x2
25 EPOLL_CTL_MOD = 0x3
26 )
27
28 type EpollEvent struct {
29 Events uint32
30 pad_cgo_0 [4]byte
31 Data uint64
32 }
33
View as plain text