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 //go:build linux && (ppc64 || ppc64le) 6 7 package syscall 8 9 const ( 10 SYS_FCNTL = 55 11 SYS_EPOLL_CTL = 237 12 SYS_EPOLL_PWAIT = 303 13 SYS_EPOLL_CREATE1 = 315 14 SYS_EPOLL_PWAIT2 = 441 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 // unaligned uintptr 32 } 33