...
1
2
3
4
5
6
7 package syscall
8
9 const (
10 SYS_FCNTL = 5070
11 SYS_EPOLL_CTL = 5208
12 SYS_EPOLL_PWAIT = 5272
13 SYS_EPOLL_CREATE1 = 5285
14 SYS_EPOLL_PWAIT2 = 5441
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 [8]byte
32 }
33
View as plain text