| 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_CLOSE = 3 |
| 9 |
SYS_MPROTECT = 10 |
| 10 |
SYS_FCNTL = 72 |
| 11 |
SYS_PRCTL = 157 |
| 12 |
SYS_EPOLL_CTL = 233 |
| 13 |
SYS_EPOLL_PWAIT = 281 |
| 14 |
SYS_EPOLL_CREATE1 = 291 |
| 15 |
SYS_EPOLL_PWAIT2 = 441 |
| 16 |
SYS_EVENTFD2 = 290 |
| 17 |
SYS_OPENAT = 257 |
| 18 |
SYS_PREAD64 = 17 |
| 19 |
SYS_READ = 0 |
| 20 |
|
| 21 |
EFD_NONBLOCK = 0x800 |
| 22 |
|
| 23 |
O_LARGEFILE = 0x0 |
| 24 |
) |
| 25 |
|
| 26 |
type EpollEvent struct { |
| 27 |
Events uint32 |
| 28 |
Data [8]byte // unaligned uintptr |
| 29 |
} |