1 // Copyright 2022 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package syscall 6 7 const ( 8 SYS_FCNTL = 55 9 SYS_EPOLL_CTL = 250 10 SYS_EPOLL_PWAIT = 312 11 SYS_EPOLL_CREATE1 = 327 12 SYS_EPOLL_PWAIT2 = 441 13 14 EPOLLIN = 0x1 15 EPOLLOUT = 0x4 16 EPOLLERR = 0x8 17 EPOLLHUP = 0x10 18 EPOLLRDHUP = 0x2000 19 EPOLLET = 0x80000000 20 EPOLL_CLOEXEC = 0x80000 21 EPOLL_CTL_ADD = 0x1 22 EPOLL_CTL_DEL = 0x2 23 EPOLL_CTL_MOD = 0x3 24 ) 25 26 type EpollEvent struct { 27 Events uint32 28 pad_cgo_0 [4]byte 29 Data [8]byte // unaligned uintptr 30 } 31