Debian Codegraph @

src/internal/runtime/syscall/linux/defs_linux_ppc64x.go

raw
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 linux
8
9 const (
10 SYS_CLOSE = 6
11 SYS_FCNTL = 55
12 SYS_MPROTECT = 125
13 SYS_PRCTL = 171
14 SYS_EPOLL_CTL = 237
15 SYS_EPOLL_PWAIT = 303
16 SYS_EPOLL_CREATE1 = 315
17 SYS_EPOLL_PWAIT2 = 441
18 SYS_EVENTFD2 = 314
19 SYS_OPENAT = 286
20 SYS_PREAD64 = 179
21 SYS_READ = 3
22 SYS_UNAME = 122
23
24 EFD_NONBLOCK = 0x800
25
26 O_LARGEFILE = 0x0
27 )
28
29 type EpollEvent struct {
30 Events uint32
31 pad_cgo_0 [4]byte
32 Data [8]byte // unaligned uintptr
33 }