Remove 04-add-linux-ppc-support-for-use-with-gccgo.patch
which was previously cherry-picked from upstream.
This reverts commit 3f41899d2a78d3e10260711128fa34bc30b3228a.
Anthony Fok
2 years ago
0 | From 9680a8a2820ec32e72afee55784d0a3f5c4625d0 Mon Sep 17 00:00:00 2001 | |
1 | From: Ian Lance Taylor <iant@golang.org> | |
2 | Date: Wed, 07 Oct 2020 16:45:25 -0700 | |
3 | Subject: [PATCH] x/sys/unix: add linux/ppc support, for use with gccgo | |
4 | ||
5 | Update scripts slightly to work with an unsupported GOARCH. | |
6 | ||
7 | For golang/go#18031 | |
8 | Fixes golang/go#37443 | |
9 | ||
10 | Fixes golang/go# | |
11 | ||
12 | Change-Id: I1a1f7b4be8bf8974b2b627331cbe93416ef21bf3 | |
13 | --- | |
14 | ||
15 | diff --git a/unix/linux/Dockerfile b/unix/linux/Dockerfile | |
16 | index 3878110..2acb179 100644 | |
17 | --- a/unix/linux/Dockerfile | |
18 | +++ b/unix/linux/Dockerfile | |
19 | @@ -45,6 +45,7 @@ | |
20 | gcc-aarch64-linux-gnu gcc-arm-linux-gnueabi \ | |
21 | gcc-mips-linux-gnu gcc-mips64-linux-gnuabi64 \ | |
22 | gcc-mips64el-linux-gnuabi64 gcc-mipsel-linux-gnu \ | |
23 | + gcc-powerpc-linux-gnu \ | |
24 | gcc-powerpc64-linux-gnu gcc-powerpc64le-linux-gnu \ | |
25 | gcc-riscv64-linux-gnu \ | |
26 | gcc-s390x-linux-gnu gcc-sparc64-linux-gnu \ | |
27 | diff --git a/unix/linux/mkall.go b/unix/linux/mkall.go | |
28 | index 69825db..df0f019 100644 | |
29 | --- a/unix/linux/mkall.go | |
30 | +++ b/unix/linux/mkall.go | |
31 | @@ -108,6 +108,13 @@ | |
32 | Bits: 64, | |
33 | }, | |
34 | { | |
35 | + GoArch: "ppc", | |
36 | + LinuxArch: "powerpc", | |
37 | + GNUArch: "powerpc-linux-gnu", | |
38 | + BigEndian: true, | |
39 | + Bits: 32, | |
40 | + }, | |
41 | + { | |
42 | GoArch: "ppc64", | |
43 | LinuxArch: "powerpc", | |
44 | GNUArch: "powerpc64-linux-gnu", | |
45 | @@ -517,10 +524,20 @@ | |
46 | func (t *target) makeZTypesFile() error { | |
47 | ztypesFile := fmt.Sprintf("ztypes_linux_%s.go", t.GoArch) | |
48 | ||
49 | - args := []string{"tool", "cgo", "-godefs", "--"} | |
50 | + // Run the cgo command directly, rather than using "go tool cgo", | |
51 | + // so that we can use GOARCH values that cmd/go does not support. | |
52 | + cmd := makeCommand("go", "tool", "-n", "cgo") | |
53 | + t.setTargetBuildArch(cmd) | |
54 | + cgob, err := cmd.Output() | |
55 | + if err != nil { | |
56 | + return err | |
57 | + } | |
58 | + cgo := strings.TrimSpace(string(cgob)) | |
59 | + | |
60 | + args := []string{"-godefs", "--"} | |
61 | args = append(args, t.cFlags()...) | |
62 | args = append(args, "linux/types.go") | |
63 | - return t.commandFormatOutput("mkpost", ztypesFile, "go", args...) | |
64 | + return t.commandFormatOutput("mkpost", ztypesFile, cgo, args...) | |
65 | } | |
66 | ||
67 | // Flags that should be given to gcc and cgo for this target | |
68 | diff --git a/unix/linux/types.go b/unix/linux/types.go | |
69 | index 92f940a..0cb46d5 100644 | |
70 | --- a/unix/linux/types.go | |
71 | +++ b/unix/linux/types.go | |
72 | @@ -253,7 +253,7 @@ | |
73 | // copied from /usr/include/linux/un.h | |
74 | struct my_sockaddr_un { | |
75 | sa_family_t sun_family; | |
76 | -#if defined(__ARM_EABI__) || defined(__powerpc64__) || defined(__riscv) | |
77 | +#if defined(__ARM_EABI__) || defined(__powerpc__) || defined(__powerpc64__) || defined(__riscv) | |
78 | // on some platforms char is unsigned by default | |
79 | signed char sun_path[108]; | |
80 | #else | |
81 | @@ -275,7 +275,7 @@ | |
82 | typedef struct user_regs PtraceRegs; | |
83 | #elif defined(__aarch64__) | |
84 | typedef struct user_pt_regs PtraceRegs; | |
85 | -#elif defined(__mips__) || defined(__powerpc64__) | |
86 | +#elif defined(__mips__) || defined(__powerpc__) || defined(__powerpc64__) | |
87 | typedef struct pt_regs PtraceRegs; | |
88 | #elif defined(__s390x__) | |
89 | typedef struct _user_regs_struct PtraceRegs; | |
90 | diff --git a/unix/mkerrors.sh b/unix/mkerrors.sh | |
91 | index 467c03d..690c2b6 100755 | |
92 | --- a/unix/mkerrors.sh | |
93 | +++ b/unix/mkerrors.sh | |
94 | @@ -600,7 +600,8 @@ | |
95 | echo | |
96 | echo "// +build ${GOARCH},${GOOS}" | |
97 | echo | |
98 | -go tool cgo -godefs -- "$@" _const.go >_error.out | |
99 | +cgo=$(GOARCH=amd64 go tool -n cgo) | |
100 | +${cgo} -godefs -- "$@" _const.go >_error.out | |
101 | cat _error.out | grep -vf _error.grep | grep -vf _signal.grep | |
102 | echo | |
103 | echo '// Errors' | |
104 | diff --git a/unix/syscall_linux_ppc.go b/unix/syscall_linux_ppc.go | |
105 | new file mode 100644 | |
106 | index 0000000..81f14c1 | |
107 | --- /dev/null | |
108 | +++ b/unix/syscall_linux_ppc.go | |
109 | @@ -0,0 +1,156 @@ | |
110 | +// Copyright 2020 The Go Authors. All rights reserved. | |
111 | +// Use of this source code is governed by a BSD-style | |
112 | +// license that can be found in the LICENSE file. | |
113 | + | |
114 | +// +build linux | |
115 | +// +build ppc | |
116 | + | |
117 | +package unix | |
118 | + | |
119 | +//sys dup2(oldfd int, newfd int) (err error) | |
120 | +//sysnb EpollCreate(size int) (fd int, err error) | |
121 | +//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) | |
122 | +//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 | |
123 | +//sys Fchown(fd int, uid int, gid int) (err error) | |
124 | +//sys Fstat(fd int, stat *Stat_t) (err error) | |
125 | +//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_NEWFSTATAT | |
126 | +//sys Fstatfs(fd int, buf *Statfs_t) (err error) | |
127 | +//sys Ftruncate(fd int, length int64) (err error) | |
128 | +//sysnb Getegid() (egid int) | |
129 | +//sysnb Geteuid() (euid int) | |
130 | +//sysnb Getgid() (gid int) | |
131 | +//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) = SYS_UGETRLIMIT | |
132 | +//sysnb Getuid() (uid int) | |
133 | +//sysnb InotifyInit() (fd int, err error) | |
134 | +//sys Ioperm(from int, num int, on int) (err error) | |
135 | +//sys Iopl(level int) (err error) | |
136 | +//sys Lchown(path string, uid int, gid int) (err error) | |
137 | +//sys Listen(s int, n int) (err error) | |
138 | +//sys Lstat(path string, stat *Stat_t) (err error) | |
139 | +//sys Pause() (err error) | |
140 | +//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 | |
141 | +//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 | |
142 | +//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) | |
143 | +//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK | |
144 | +//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT | |
145 | +//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) | |
146 | +//sys setfsgid(gid int) (prev int, err error) | |
147 | +//sys setfsuid(uid int) (prev int, err error) | |
148 | +//sysnb Setregid(rgid int, egid int) (err error) | |
149 | +//sysnb Setresgid(rgid int, egid int, sgid int) (err error) | |
150 | +//sysnb Setresuid(ruid int, euid int, suid int) (err error) | |
151 | +//sysnb Setrlimit(resource int, rlim *Rlimit) (err error) | |
152 | +//sysnb Setreuid(ruid int, euid int) (err error) | |
153 | +//sys Shutdown(fd int, how int) (err error) | |
154 | +//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) | |
155 | +//sys Stat(path string, stat *Stat_t) (err error) | |
156 | +//sys Statfs(path string, buf *Statfs_t) (err error) | |
157 | +//sys Truncate(path string, length int64) (err error) | |
158 | +//sys Ustat(dev int, ubuf *Ustat_t) (err error) | |
159 | +//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) | |
160 | +//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) | |
161 | +//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) | |
162 | +//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) | |
163 | +//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) | |
164 | +//sysnb setgroups(n int, list *_Gid_t) (err error) | |
165 | +//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) | |
166 | +//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) | |
167 | +//sysnb socket(domain int, typ int, proto int) (fd int, err error) | |
168 | +//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) | |
169 | +//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) | |
170 | +//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) | |
171 | +//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) | |
172 | +//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) | |
173 | +//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) | |
174 | +//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) | |
175 | +//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) | |
176 | + | |
177 | +//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error) | |
178 | +//sysnb Gettimeofday(tv *Timeval) (err error) | |
179 | +//sysnb Time(t *Time_t) (tt Time_t, err error) | |
180 | +//sys Utime(path string, buf *Utimbuf) (err error) | |
181 | +//sys utimes(path string, times *[2]Timeval) (err error) | |
182 | + | |
183 | +func setTimespec(sec, nsec int64) Timespec { | |
184 | + return Timespec{Sec: sec, Nsec: nsec} | |
185 | +} | |
186 | + | |
187 | +func setTimeval(sec, usec int64) Timeval { | |
188 | + return Timeval{Sec: sec, Usec: usec} | |
189 | +} | |
190 | + | |
191 | +func (r *PtraceRegs) PC() uint64 { return r.Nip } | |
192 | + | |
193 | +func (r *PtraceRegs) SetPC(pc uint64) { r.Nip = pc } | |
194 | + | |
195 | +func (iov *Iovec) SetLen(length int) { | |
196 | + iov.Len = uint64(length) | |
197 | +} | |
198 | + | |
199 | +func (msghdr *Msghdr) SetControllen(length int) { | |
200 | + msghdr.Controllen = uint64(length) | |
201 | +} | |
202 | + | |
203 | +func (msghdr *Msghdr) SetIovlen(length int) { | |
204 | + msghdr.Iovlen = uint64(length) | |
205 | +} | |
206 | + | |
207 | +func (cmsg *Cmsghdr) SetLen(length int) { | |
208 | + cmsg.Len = uint64(length) | |
209 | +} | |
210 | + | |
211 | +//sysnb pipe(p *[2]_C_int) (err error) | |
212 | + | |
213 | +func Pipe(p []int) (err error) { | |
214 | + if len(p) != 2 { | |
215 | + return EINVAL | |
216 | + } | |
217 | + var pp [2]_C_int | |
218 | + err = pipe(&pp) | |
219 | + p[0] = int(pp[0]) | |
220 | + p[1] = int(pp[1]) | |
221 | + return | |
222 | +} | |
223 | + | |
224 | +//sysnb pipe2(p *[2]_C_int, flags int) (err error) | |
225 | + | |
226 | +func Pipe2(p []int, flags int) (err error) { | |
227 | + if len(p) != 2 { | |
228 | + return EINVAL | |
229 | + } | |
230 | + var pp [2]_C_int | |
231 | + err = pipe2(&pp, flags) | |
232 | + p[0] = int(pp[0]) | |
233 | + p[1] = int(pp[1]) | |
234 | + return | |
235 | +} | |
236 | + | |
237 | +//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error) | |
238 | + | |
239 | +func Poll(fds []PollFd, timeout int) (n int, err error) { | |
240 | + if len(fds) == 0 { | |
241 | + return poll(nil, 0, timeout) | |
242 | + } | |
243 | + return poll(&fds[0], len(fds), timeout) | |
244 | +} | |
245 | + | |
246 | +//sys syncFileRange2(fd int, flags int, off int64, n int64) (err error) = SYS_SYNC_FILE_RANGE2 | |
247 | + | |
248 | +func SyncFileRange(fd int, off int64, n int64, flags int) error { | |
249 | + // The sync_file_range and sync_file_range2 syscalls differ only in the | |
250 | + // order of their arguments. | |
251 | + return syncFileRange2(fd, flags, off, n) | |
252 | +} | |
253 | + | |
254 | +//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) | |
255 | + | |
256 | +func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error { | |
257 | + cmdlineLen := len(cmdline) | |
258 | + if cmdlineLen > 0 { | |
259 | + // Account for the additional NULL byte added by | |
260 | + // BytePtrFromString in kexecFileLoad. The kexec_file_load | |
261 | + // syscall expects a NULL-terminated string. | |
262 | + cmdlineLen++ | |
263 | + } | |
264 | + return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags) | |
265 | +} | |
266 | diff --git a/unix/zerrors_linux_ppc.go b/unix/zerrors_linux_ppc.go | |
267 | new file mode 100644 | |
268 | index 0000000..1779cbf | |
269 | --- /dev/null | |
270 | +++ b/unix/zerrors_linux_ppc.go | |
271 | @@ -0,0 +1,849 @@ | |
272 | +// mkerrors.sh -Wall -Werror -static -I/tmp/include | |
273 | +// Code generated by the command above; see README.md. DO NOT EDIT. | |
274 | + | |
275 | +// +build ppc,linux | |
276 | + | |
277 | +// Code generated by cmd/cgo -godefs; DO NOT EDIT. | |
278 | +// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go | |
279 | + | |
280 | +package unix | |
281 | + | |
282 | +import "syscall" | |
283 | + | |
284 | +const ( | |
285 | + B1000000 = 0x17 | |
286 | + B115200 = 0x11 | |
287 | + B1152000 = 0x18 | |
288 | + B1500000 = 0x19 | |
289 | + B2000000 = 0x1a | |
290 | + B230400 = 0x12 | |
291 | + B2500000 = 0x1b | |
292 | + B3000000 = 0x1c | |
293 | + B3500000 = 0x1d | |
294 | + B4000000 = 0x1e | |
295 | + B460800 = 0x13 | |
296 | + B500000 = 0x14 | |
297 | + B57600 = 0x10 | |
298 | + B576000 = 0x15 | |
299 | + B921600 = 0x16 | |
300 | + BLKBSZGET = 0x40041270 | |
301 | + BLKBSZSET = 0x80041271 | |
302 | + BLKFLSBUF = 0x20001261 | |
303 | + BLKFRAGET = 0x20001265 | |
304 | + BLKFRASET = 0x20001264 | |
305 | + BLKGETSIZE = 0x20001260 | |
306 | + BLKGETSIZE64 = 0x40041272 | |
307 | + BLKPBSZGET = 0x2000127b | |
308 | + BLKRAGET = 0x20001263 | |
309 | + BLKRASET = 0x20001262 | |
310 | + BLKROGET = 0x2000125e | |
311 | + BLKROSET = 0x2000125d | |
312 | + BLKRRPART = 0x2000125f | |
313 | + BLKSECTGET = 0x20001267 | |
314 | + BLKSECTSET = 0x20001266 | |
315 | + BLKSSZGET = 0x20001268 | |
316 | + BOTHER = 0x1f | |
317 | + BS1 = 0x8000 | |
318 | + BSDLY = 0x8000 | |
319 | + CBAUD = 0xff | |
320 | + CBAUDEX = 0x0 | |
321 | + CIBAUD = 0xff0000 | |
322 | + CLOCAL = 0x8000 | |
323 | + CR1 = 0x1000 | |
324 | + CR2 = 0x2000 | |
325 | + CR3 = 0x3000 | |
326 | + CRDLY = 0x3000 | |
327 | + CREAD = 0x800 | |
328 | + CS6 = 0x100 | |
329 | + CS7 = 0x200 | |
330 | + CS8 = 0x300 | |
331 | + CSIZE = 0x300 | |
332 | + CSTOPB = 0x400 | |
333 | + ECHOCTL = 0x40 | |
334 | + ECHOE = 0x2 | |
335 | + ECHOK = 0x4 | |
336 | + ECHOKE = 0x1 | |
337 | + ECHONL = 0x10 | |
338 | + ECHOPRT = 0x20 | |
339 | + EFD_CLOEXEC = 0x80000 | |
340 | + EFD_NONBLOCK = 0x800 | |
341 | + EPOLL_CLOEXEC = 0x80000 | |
342 | + EXTPROC = 0x10000000 | |
343 | + FF1 = 0x4000 | |
344 | + FFDLY = 0x4000 | |
345 | + FICLONE = 0x80049409 | |
346 | + FICLONERANGE = 0x8020940d | |
347 | + FLUSHO = 0x800000 | |
348 | + FS_IOC_ENABLE_VERITY = 0x80806685 | |
349 | + FS_IOC_GETFLAGS = 0x40046601 | |
350 | + FS_IOC_GET_ENCRYPTION_NONCE = 0x4010661b | |
351 | + FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 | |
352 | + FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 | |
353 | + FS_IOC_SETFLAGS = 0x80046602 | |
354 | + FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 | |
355 | + F_GETLK = 0xc | |
356 | + F_GETLK64 = 0xc | |
357 | + F_GETOWN = 0x9 | |
358 | + F_RDLCK = 0x0 | |
359 | + F_SETLK = 0xd | |
360 | + F_SETLK64 = 0xd | |
361 | + F_SETLKW = 0xe | |
362 | + F_SETLKW64 = 0xe | |
363 | + F_SETOWN = 0x8 | |
364 | + F_UNLCK = 0x2 | |
365 | + F_WRLCK = 0x1 | |
366 | + HUPCL = 0x4000 | |
367 | + ICANON = 0x100 | |
368 | + IEXTEN = 0x400 | |
369 | + IN_CLOEXEC = 0x80000 | |
370 | + IN_NONBLOCK = 0x800 | |
371 | + IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 | |
372 | + ISIG = 0x80 | |
373 | + IUCLC = 0x1000 | |
374 | + IXOFF = 0x400 | |
375 | + IXON = 0x200 | |
376 | + MAP_ANON = 0x20 | |
377 | + MAP_ANONYMOUS = 0x20 | |
378 | + MAP_DENYWRITE = 0x800 | |
379 | + MAP_EXECUTABLE = 0x1000 | |
380 | + MAP_GROWSDOWN = 0x100 | |
381 | + MAP_HUGETLB = 0x40000 | |
382 | + MAP_LOCKED = 0x80 | |
383 | + MAP_NONBLOCK = 0x10000 | |
384 | + MAP_NORESERVE = 0x40 | |
385 | + MAP_POPULATE = 0x8000 | |
386 | + MAP_STACK = 0x20000 | |
387 | + MAP_SYNC = 0x80000 | |
388 | + MCL_CURRENT = 0x2000 | |
389 | + MCL_FUTURE = 0x4000 | |
390 | + MCL_ONFAULT = 0x8000 | |
391 | + NFDBITS = 0x20 | |
392 | + NL2 = 0x200 | |
393 | + NL3 = 0x300 | |
394 | + NLDLY = 0x300 | |
395 | + NOFLSH = 0x80000000 | |
396 | + NS_GET_NSTYPE = 0x2000b703 | |
397 | + NS_GET_OWNER_UID = 0x2000b704 | |
398 | + NS_GET_PARENT = 0x2000b702 | |
399 | + NS_GET_USERNS = 0x2000b701 | |
400 | + OLCUC = 0x4 | |
401 | + ONLCR = 0x2 | |
402 | + O_APPEND = 0x400 | |
403 | + O_ASYNC = 0x2000 | |
404 | + O_CLOEXEC = 0x80000 | |
405 | + O_CREAT = 0x40 | |
406 | + O_DIRECT = 0x20000 | |
407 | + O_DIRECTORY = 0x4000 | |
408 | + O_DSYNC = 0x1000 | |
409 | + O_EXCL = 0x80 | |
410 | + O_FSYNC = 0x101000 | |
411 | + O_LARGEFILE = 0x10000 | |
412 | + O_NDELAY = 0x800 | |
413 | + O_NOATIME = 0x40000 | |
414 | + O_NOCTTY = 0x100 | |
415 | + O_NOFOLLOW = 0x8000 | |
416 | + O_NONBLOCK = 0x800 | |
417 | + O_PATH = 0x200000 | |
418 | + O_RSYNC = 0x101000 | |
419 | + O_SYNC = 0x101000 | |
420 | + O_TMPFILE = 0x404000 | |
421 | + O_TRUNC = 0x200 | |
422 | + PARENB = 0x1000 | |
423 | + PARODD = 0x2000 | |
424 | + PENDIN = 0x20000000 | |
425 | + PERF_EVENT_IOC_DISABLE = 0x20002401 | |
426 | + PERF_EVENT_IOC_ENABLE = 0x20002400 | |
427 | + PERF_EVENT_IOC_ID = 0x40042407 | |
428 | + PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8004240b | |
429 | + PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 | |
430 | + PERF_EVENT_IOC_PERIOD = 0x80082404 | |
431 | + PERF_EVENT_IOC_QUERY_BPF = 0xc004240a | |
432 | + PERF_EVENT_IOC_REFRESH = 0x20002402 | |
433 | + PERF_EVENT_IOC_RESET = 0x20002403 | |
434 | + PERF_EVENT_IOC_SET_BPF = 0x80042408 | |
435 | + PERF_EVENT_IOC_SET_FILTER = 0x80042406 | |
436 | + PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 | |
437 | + PPPIOCATTACH = 0x8004743d | |
438 | + PPPIOCATTCHAN = 0x80047438 | |
439 | + PPPIOCCONNECT = 0x8004743a | |
440 | + PPPIOCDETACH = 0x8004743c | |
441 | + PPPIOCDISCONN = 0x20007439 | |
442 | + PPPIOCGASYNCMAP = 0x40047458 | |
443 | + PPPIOCGCHAN = 0x40047437 | |
444 | + PPPIOCGDEBUG = 0x40047441 | |
445 | + PPPIOCGFLAGS = 0x4004745a | |
446 | + PPPIOCGIDLE = 0x4008743f | |
447 | + PPPIOCGIDLE32 = 0x4008743f | |
448 | + PPPIOCGIDLE64 = 0x4010743f | |
449 | + PPPIOCGL2TPSTATS = 0x40487436 | |
450 | + PPPIOCGMRU = 0x40047453 | |
451 | + PPPIOCGRASYNCMAP = 0x40047455 | |
452 | + PPPIOCGUNIT = 0x40047456 | |
453 | + PPPIOCGXASYNCMAP = 0x40207450 | |
454 | + PPPIOCSACTIVE = 0x80087446 | |
455 | + PPPIOCSASYNCMAP = 0x80047457 | |
456 | + PPPIOCSCOMPRESS = 0x800c744d | |
457 | + PPPIOCSDEBUG = 0x80047440 | |
458 | + PPPIOCSFLAGS = 0x80047459 | |
459 | + PPPIOCSMAXCID = 0x80047451 | |
460 | + PPPIOCSMRRU = 0x8004743b | |
461 | + PPPIOCSMRU = 0x80047452 | |
462 | + PPPIOCSNPMODE = 0x8008744b | |
463 | + PPPIOCSPASS = 0x80087447 | |
464 | + PPPIOCSRASYNCMAP = 0x80047454 | |
465 | + PPPIOCSXASYNCMAP = 0x8020744f | |
466 | + PPPIOCXFERUNIT = 0x2000744e | |
467 | + PROT_SAO = 0x10 | |
468 | + PR_SET_PTRACER_ANY = 0xffffffff | |
469 | + PTRACE_GETEVRREGS = 0x14 | |
470 | + PTRACE_GETFPREGS = 0xe | |
471 | + PTRACE_GETREGS64 = 0x16 | |
472 | + PTRACE_GETVRREGS = 0x12 | |
473 | + PTRACE_GETVSRREGS = 0x1b | |
474 | + PTRACE_GET_DEBUGREG = 0x19 | |
475 | + PTRACE_SETEVRREGS = 0x15 | |
476 | + PTRACE_SETFPREGS = 0xf | |
477 | + PTRACE_SETREGS64 = 0x17 | |
478 | + PTRACE_SETVRREGS = 0x13 | |
479 | + PTRACE_SETVSRREGS = 0x1c | |
480 | + PTRACE_SET_DEBUGREG = 0x1a | |
481 | + PTRACE_SINGLEBLOCK = 0x100 | |
482 | + PTRACE_SYSEMU = 0x1d | |
483 | + PTRACE_SYSEMU_SINGLESTEP = 0x1e | |
484 | + PT_CCR = 0x26 | |
485 | + PT_CTR = 0x23 | |
486 | + PT_DAR = 0x29 | |
487 | + PT_DSCR = 0x2c | |
488 | + PT_DSISR = 0x2a | |
489 | + PT_FPR0 = 0x30 | |
490 | + PT_FPR31 = 0x6e | |
491 | + PT_FPSCR = 0x71 | |
492 | + PT_LNK = 0x24 | |
493 | + PT_MQ = 0x27 | |
494 | + PT_MSR = 0x21 | |
495 | + PT_NIP = 0x20 | |
496 | + PT_ORIG_R3 = 0x22 | |
497 | + PT_R0 = 0x0 | |
498 | + PT_R1 = 0x1 | |
499 | + PT_R10 = 0xa | |
500 | + PT_R11 = 0xb | |
501 | + PT_R12 = 0xc | |
502 | + PT_R13 = 0xd | |
503 | + PT_R14 = 0xe | |
504 | + PT_R15 = 0xf | |
505 | + PT_R16 = 0x10 | |
506 | + PT_R17 = 0x11 | |
507 | + PT_R18 = 0x12 | |
508 | + PT_R19 = 0x13 | |
509 | + PT_R2 = 0x2 | |
510 | + PT_R20 = 0x14 | |
511 | + PT_R21 = 0x15 | |
512 | + PT_R22 = 0x16 | |
513 | + PT_R23 = 0x17 | |
514 | + PT_R24 = 0x18 | |
515 | + PT_R25 = 0x19 | |
516 | + PT_R26 = 0x1a | |
517 | + PT_R27 = 0x1b | |
518 | + PT_R28 = 0x1c | |
519 | + PT_R29 = 0x1d | |
520 | + PT_R3 = 0x3 | |
521 | + PT_R30 = 0x1e | |
522 | + PT_R31 = 0x1f | |
523 | + PT_R4 = 0x4 | |
524 | + PT_R5 = 0x5 | |
525 | + PT_R6 = 0x6 | |
526 | + PT_R7 = 0x7 | |
527 | + PT_R8 = 0x8 | |
528 | + PT_R9 = 0x9 | |
529 | + PT_REGS_COUNT = 0x2c | |
530 | + PT_RESULT = 0x2b | |
531 | + PT_TRAP = 0x28 | |
532 | + PT_XER = 0x25 | |
533 | + RLIMIT_AS = 0x9 | |
534 | + RLIMIT_MEMLOCK = 0x8 | |
535 | + RLIMIT_NOFILE = 0x7 | |
536 | + RLIMIT_NPROC = 0x6 | |
537 | + RLIMIT_RSS = 0x5 | |
538 | + RNDADDENTROPY = 0x80085203 | |
539 | + RNDADDTOENTCNT = 0x80045201 | |
540 | + RNDCLEARPOOL = 0x20005206 | |
541 | + RNDGETENTCNT = 0x40045200 | |
542 | + RNDGETPOOL = 0x40085202 | |
543 | + RNDRESEEDCRNG = 0x20005207 | |
544 | + RNDZAPENTCNT = 0x20005204 | |
545 | + RTC_AIE_OFF = 0x20007002 | |
546 | + RTC_AIE_ON = 0x20007001 | |
547 | + RTC_ALM_READ = 0x40247008 | |
548 | + RTC_ALM_SET = 0x80247007 | |
549 | + RTC_EPOCH_READ = 0x4004700d | |
550 | + RTC_EPOCH_SET = 0x8004700e | |
551 | + RTC_IRQP_READ = 0x4004700b | |
552 | + RTC_IRQP_SET = 0x8004700c | |
553 | + RTC_PIE_OFF = 0x20007006 | |
554 | + RTC_PIE_ON = 0x20007005 | |
555 | + RTC_PLL_GET = 0x401c7011 | |
556 | + RTC_PLL_SET = 0x801c7012 | |
557 | + RTC_RD_TIME = 0x40247009 | |
558 | + RTC_SET_TIME = 0x8024700a | |
559 | + RTC_UIE_OFF = 0x20007004 | |
560 | + RTC_UIE_ON = 0x20007003 | |
561 | + RTC_VL_CLR = 0x20007014 | |
562 | + RTC_VL_READ = 0x40047013 | |
563 | + RTC_WIE_OFF = 0x20007010 | |
564 | + RTC_WIE_ON = 0x2000700f | |
565 | + RTC_WKALM_RD = 0x40287010 | |
566 | + RTC_WKALM_SET = 0x8028700f | |
567 | + SCM_TIMESTAMPING = 0x25 | |
568 | + SCM_TIMESTAMPING_OPT_STATS = 0x36 | |
569 | + SCM_TIMESTAMPING_PKTINFO = 0x3a | |
570 | + SCM_TIMESTAMPNS = 0x23 | |
571 | + SCM_TXTIME = 0x3d | |
572 | + SCM_WIFI_STATUS = 0x29 | |
573 | + SFD_CLOEXEC = 0x80000 | |
574 | + SFD_NONBLOCK = 0x800 | |
575 | + SIOCATMARK = 0x8905 | |
576 | + SIOCGPGRP = 0x8904 | |
577 | + SIOCGSTAMPNS_NEW = 0x40108907 | |
578 | + SIOCGSTAMP_NEW = 0x40108906 | |
579 | + SIOCINQ = 0x4004667f | |
580 | + SIOCOUTQ = 0x40047473 | |
581 | + SIOCSPGRP = 0x8902 | |
582 | + SOCK_CLOEXEC = 0x80000 | |
583 | + SOCK_DGRAM = 0x2 | |
584 | + SOCK_NONBLOCK = 0x800 | |
585 | + SOCK_STREAM = 0x1 | |
586 | + SOL_SOCKET = 0x1 | |
587 | + SO_ACCEPTCONN = 0x1e | |
588 | + SO_ATTACH_BPF = 0x32 | |
589 | + SO_ATTACH_REUSEPORT_CBPF = 0x33 | |
590 | + SO_ATTACH_REUSEPORT_EBPF = 0x34 | |
591 | + SO_BINDTODEVICE = 0x19 | |
592 | + SO_BINDTOIFINDEX = 0x3e | |
593 | + SO_BPF_EXTENSIONS = 0x30 | |
594 | + SO_BROADCAST = 0x6 | |
595 | + SO_BSDCOMPAT = 0xe | |
596 | + SO_BUSY_POLL = 0x2e | |
597 | + SO_CNX_ADVICE = 0x35 | |
598 | + SO_COOKIE = 0x39 | |
599 | + SO_DETACH_REUSEPORT_BPF = 0x44 | |
600 | + SO_DOMAIN = 0x27 | |
601 | + SO_DONTROUTE = 0x5 | |
602 | + SO_ERROR = 0x4 | |
603 | + SO_INCOMING_CPU = 0x31 | |
604 | + SO_INCOMING_NAPI_ID = 0x38 | |
605 | + SO_KEEPALIVE = 0x9 | |
606 | + SO_LINGER = 0xd | |
607 | + SO_LOCK_FILTER = 0x2c | |
608 | + SO_MARK = 0x24 | |
609 | + SO_MAX_PACING_RATE = 0x2f | |
610 | + SO_MEMINFO = 0x37 | |
611 | + SO_NOFCS = 0x2b | |
612 | + SO_OOBINLINE = 0xa | |
613 | + SO_PASSCRED = 0x14 | |
614 | + SO_PASSSEC = 0x22 | |
615 | + SO_PEEK_OFF = 0x2a | |
616 | + SO_PEERCRED = 0x15 | |
617 | + SO_PEERGROUPS = 0x3b | |
618 | + SO_PEERSEC = 0x1f | |
619 | + SO_PROTOCOL = 0x26 | |
620 | + SO_RCVBUF = 0x8 | |
621 | + SO_RCVBUFFORCE = 0x21 | |
622 | + SO_RCVLOWAT = 0x10 | |
623 | + SO_RCVTIMEO = 0x12 | |
624 | + SO_RCVTIMEO_NEW = 0x42 | |
625 | + SO_RCVTIMEO_OLD = 0x12 | |
626 | + SO_REUSEADDR = 0x2 | |
627 | + SO_REUSEPORT = 0xf | |
628 | + SO_RXQ_OVFL = 0x28 | |
629 | + SO_SECURITY_AUTHENTICATION = 0x16 | |
630 | + SO_SECURITY_ENCRYPTION_NETWORK = 0x18 | |
631 | + SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 | |
632 | + SO_SELECT_ERR_QUEUE = 0x2d | |
633 | + SO_SNDBUF = 0x7 | |
634 | + SO_SNDBUFFORCE = 0x20 | |
635 | + SO_SNDLOWAT = 0x11 | |
636 | + SO_SNDTIMEO = 0x13 | |
637 | + SO_SNDTIMEO_NEW = 0x43 | |
638 | + SO_SNDTIMEO_OLD = 0x13 | |
639 | + SO_TIMESTAMPING = 0x25 | |
640 | + SO_TIMESTAMPING_NEW = 0x41 | |
641 | + SO_TIMESTAMPING_OLD = 0x25 | |
642 | + SO_TIMESTAMPNS = 0x23 | |
643 | + SO_TIMESTAMPNS_NEW = 0x40 | |
644 | + SO_TIMESTAMPNS_OLD = 0x23 | |
645 | + SO_TIMESTAMP_NEW = 0x3f | |
646 | + SO_TXTIME = 0x3d | |
647 | + SO_TYPE = 0x3 | |
648 | + SO_WIFI_STATUS = 0x29 | |
649 | + SO_ZEROCOPY = 0x3c | |
650 | + TAB1 = 0x400 | |
651 | + TAB2 = 0x800 | |
652 | + TAB3 = 0xc00 | |
653 | + TABDLY = 0xc00 | |
654 | + TCFLSH = 0x2000741f | |
655 | + TCGETA = 0x40147417 | |
656 | + TCGETS = 0x402c7413 | |
657 | + TCSAFLUSH = 0x2 | |
658 | + TCSBRK = 0x2000741d | |
659 | + TCSBRKP = 0x5425 | |
660 | + TCSETA = 0x80147418 | |
661 | + TCSETAF = 0x8014741c | |
662 | + TCSETAW = 0x80147419 | |
663 | + TCSETS = 0x802c7414 | |
664 | + TCSETSF = 0x802c7416 | |
665 | + TCSETSW = 0x802c7415 | |
666 | + TCXONC = 0x2000741e | |
667 | + TFD_CLOEXEC = 0x80000 | |
668 | + TFD_NONBLOCK = 0x800 | |
669 | + TIOCCBRK = 0x5428 | |
670 | + TIOCCONS = 0x541d | |
671 | + TIOCEXCL = 0x540c | |
672 | + TIOCGDEV = 0x40045432 | |
673 | + TIOCGETC = 0x40067412 | |
674 | + TIOCGETD = 0x5424 | |
675 | + TIOCGETP = 0x40067408 | |
676 | + TIOCGEXCL = 0x40045440 | |
677 | + TIOCGICOUNT = 0x545d | |
678 | + TIOCGISO7816 = 0x40285442 | |
679 | + TIOCGLCKTRMIOS = 0x5456 | |
680 | + TIOCGLTC = 0x40067474 | |
681 | + TIOCGPGRP = 0x40047477 | |
682 | + TIOCGPKT = 0x40045438 | |
683 | + TIOCGPTLCK = 0x40045439 | |
684 | + TIOCGPTN = 0x40045430 | |
685 | + TIOCGPTPEER = 0x20005441 | |
686 | + TIOCGRS485 = 0x542e | |
687 | + TIOCGSERIAL = 0x541e | |
688 | + TIOCGSID = 0x5429 | |
689 | + TIOCGSOFTCAR = 0x5419 | |
690 | + TIOCGWINSZ = 0x40087468 | |
691 | + TIOCINQ = 0x4004667f | |
692 | + TIOCLINUX = 0x541c | |
693 | + TIOCMBIC = 0x5417 | |
694 | + TIOCMBIS = 0x5416 | |
695 | + TIOCMGET = 0x5415 | |
696 | + TIOCMIWAIT = 0x545c | |
697 | + TIOCMSET = 0x5418 | |
698 | + TIOCM_CAR = 0x40 | |
699 | + TIOCM_CD = 0x40 | |
700 | + TIOCM_CTS = 0x20 | |
701 | + TIOCM_DSR = 0x100 | |
702 | + TIOCM_LOOP = 0x8000 | |
703 | + TIOCM_OUT1 = 0x2000 | |
704 | + TIOCM_OUT2 = 0x4000 | |
705 | + TIOCM_RI = 0x80 | |
706 | + TIOCM_RNG = 0x80 | |
707 | + TIOCM_SR = 0x10 | |
708 | + TIOCM_ST = 0x8 | |
709 | + TIOCNOTTY = 0x5422 | |
710 | + TIOCNXCL = 0x540d | |
711 | + TIOCOUTQ = 0x40047473 | |
712 | + TIOCPKT = 0x5420 | |
713 | + TIOCSBRK = 0x5427 | |
714 | + TIOCSCTTY = 0x540e | |
715 | + TIOCSERCONFIG = 0x5453 | |
716 | + TIOCSERGETLSR = 0x5459 | |
717 | + TIOCSERGETMULTI = 0x545a | |
718 | + TIOCSERGSTRUCT = 0x5458 | |
719 | + TIOCSERGWILD = 0x5454 | |
720 | + TIOCSERSETMULTI = 0x545b | |
721 | + TIOCSERSWILD = 0x5455 | |
722 | + TIOCSER_TEMT = 0x1 | |
723 | + TIOCSETC = 0x80067411 | |
724 | + TIOCSETD = 0x5423 | |
725 | + TIOCSETN = 0x8006740a | |
726 | + TIOCSETP = 0x80067409 | |
727 | + TIOCSIG = 0x80045436 | |
728 | + TIOCSISO7816 = 0xc0285443 | |
729 | + TIOCSLCKTRMIOS = 0x5457 | |
730 | + TIOCSLTC = 0x80067475 | |
731 | + TIOCSPGRP = 0x80047476 | |
732 | + TIOCSPTLCK = 0x80045431 | |
733 | + TIOCSRS485 = 0x542f | |
734 | + TIOCSSERIAL = 0x541f | |
735 | + TIOCSSOFTCAR = 0x541a | |
736 | + TIOCSTART = 0x2000746e | |
737 | + TIOCSTI = 0x5412 | |
738 | + TIOCSTOP = 0x2000746f | |
739 | + TIOCSWINSZ = 0x80087467 | |
740 | + TIOCVHANGUP = 0x5437 | |
741 | + TOSTOP = 0x400000 | |
742 | + TUNATTACHFILTER = 0x800854d5 | |
743 | + TUNDETACHFILTER = 0x800854d6 | |
744 | + TUNGETDEVNETNS = 0x200054e3 | |
745 | + TUNGETFEATURES = 0x400454cf | |
746 | + TUNGETFILTER = 0x400854db | |
747 | + TUNGETIFF = 0x400454d2 | |
748 | + TUNGETSNDBUF = 0x400454d3 | |
749 | + TUNGETVNETBE = 0x400454df | |
750 | + TUNGETVNETHDRSZ = 0x400454d7 | |
751 | + TUNGETVNETLE = 0x400454dd | |
752 | + TUNSETCARRIER = 0x800454e2 | |
753 | + TUNSETDEBUG = 0x800454c9 | |
754 | + TUNSETFILTEREBPF = 0x400454e1 | |
755 | + TUNSETGROUP = 0x800454ce | |
756 | + TUNSETIFF = 0x800454ca | |
757 | + TUNSETIFINDEX = 0x800454da | |
758 | + TUNSETLINK = 0x800454cd | |
759 | + TUNSETNOCSUM = 0x800454c8 | |
760 | + TUNSETOFFLOAD = 0x800454d0 | |
761 | + TUNSETOWNER = 0x800454cc | |
762 | + TUNSETPERSIST = 0x800454cb | |
763 | + TUNSETQUEUE = 0x800454d9 | |
764 | + TUNSETSNDBUF = 0x800454d4 | |
765 | + TUNSETSTEERINGEBPF = 0x400454e0 | |
766 | + TUNSETTXFILTER = 0x800454d1 | |
767 | + TUNSETVNETBE = 0x800454de | |
768 | + TUNSETVNETHDRSZ = 0x800454d8 | |
769 | + TUNSETVNETLE = 0x800454dc | |
770 | + UBI_IOCATT = 0x80186f40 | |
771 | + UBI_IOCDET = 0x80046f41 | |
772 | + UBI_IOCEBCH = 0x80044f02 | |
773 | + UBI_IOCEBER = 0x80044f01 | |
774 | + UBI_IOCEBISMAP = 0x40044f05 | |
775 | + UBI_IOCEBMAP = 0x80084f03 | |
776 | + UBI_IOCEBUNMAP = 0x80044f04 | |
777 | + UBI_IOCMKVOL = 0x80986f00 | |
778 | + UBI_IOCRMVOL = 0x80046f01 | |
779 | + UBI_IOCRNVOL = 0x91106f03 | |
780 | + UBI_IOCRPEB = 0x80046f04 | |
781 | + UBI_IOCRSVOL = 0x800c6f02 | |
782 | + UBI_IOCSETVOLPROP = 0x80104f06 | |
783 | + UBI_IOCSPEB = 0x80046f05 | |
784 | + UBI_IOCVOLCRBLK = 0x80804f07 | |
785 | + UBI_IOCVOLRMBLK = 0x20004f08 | |
786 | + UBI_IOCVOLUP = 0x80084f00 | |
787 | + VDISCARD = 0x10 | |
788 | + VEOF = 0x4 | |
789 | + VEOL = 0x6 | |
790 | + VEOL2 = 0x8 | |
791 | + VMIN = 0x5 | |
792 | + VREPRINT = 0xb | |
793 | + VSTART = 0xd | |
794 | + VSTOP = 0xe | |
795 | + VSUSP = 0xc | |
796 | + VSWTC = 0x9 | |
797 | + VT1 = 0x10000 | |
798 | + VTDLY = 0x10000 | |
799 | + VTIME = 0x7 | |
800 | + VWERASE = 0xa | |
801 | + WDIOC_GETBOOTSTATUS = 0x40045702 | |
802 | + WDIOC_GETPRETIMEOUT = 0x40045709 | |
803 | + WDIOC_GETSTATUS = 0x40045701 | |
804 | + WDIOC_GETSUPPORT = 0x40285700 | |
805 | + WDIOC_GETTEMP = 0x40045703 | |
806 | + WDIOC_GETTIMELEFT = 0x4004570a | |
807 | + WDIOC_GETTIMEOUT = 0x40045707 | |
808 | + WDIOC_KEEPALIVE = 0x40045705 | |
809 | + WDIOC_SETOPTIONS = 0x40045704 | |
810 | + WORDSIZE = 0x20 | |
811 | + XCASE = 0x4000 | |
812 | + XTABS = 0xc00 | |
813 | +) | |
814 | + | |
815 | +// Errors | |
816 | +const ( | |
817 | + EADDRINUSE = syscall.Errno(0x62) | |
818 | + EADDRNOTAVAIL = syscall.Errno(0x63) | |
819 | + EADV = syscall.Errno(0x44) | |
820 | + EAFNOSUPPORT = syscall.Errno(0x61) | |
821 | + EALREADY = syscall.Errno(0x72) | |
822 | + EBADE = syscall.Errno(0x34) | |
823 | + EBADFD = syscall.Errno(0x4d) | |
824 | + EBADMSG = syscall.Errno(0x4a) | |
825 | + EBADR = syscall.Errno(0x35) | |
826 | + EBADRQC = syscall.Errno(0x38) | |
827 | + EBADSLT = syscall.Errno(0x39) | |
828 | + EBFONT = syscall.Errno(0x3b) | |
829 | + ECANCELED = syscall.Errno(0x7d) | |
830 | + ECHRNG = syscall.Errno(0x2c) | |
831 | + ECOMM = syscall.Errno(0x46) | |
832 | + ECONNABORTED = syscall.Errno(0x67) | |
833 | + ECONNREFUSED = syscall.Errno(0x6f) | |
834 | + ECONNRESET = syscall.Errno(0x68) | |
835 | + EDEADLK = syscall.Errno(0x23) | |
836 | + EDEADLOCK = syscall.Errno(0x3a) | |
837 | + EDESTADDRREQ = syscall.Errno(0x59) | |
838 | + EDOTDOT = syscall.Errno(0x49) | |
839 | + EDQUOT = syscall.Errno(0x7a) | |
840 | + EHOSTDOWN = syscall.Errno(0x70) | |
841 | + EHOSTUNREACH = syscall.Errno(0x71) | |
842 | + EHWPOISON = syscall.Errno(0x85) | |
843 | + EIDRM = syscall.Errno(0x2b) | |
844 | + EILSEQ = syscall.Errno(0x54) | |
845 | + EINPROGRESS = syscall.Errno(0x73) | |
846 | + EISCONN = syscall.Errno(0x6a) | |
847 | + EISNAM = syscall.Errno(0x78) | |
848 | + EKEYEXPIRED = syscall.Errno(0x7f) | |
849 | + EKEYREJECTED = syscall.Errno(0x81) | |
850 | + EKEYREVOKED = syscall.Errno(0x80) | |
851 | + EL2HLT = syscall.Errno(0x33) | |
852 | + EL2NSYNC = syscall.Errno(0x2d) | |
853 | + EL3HLT = syscall.Errno(0x2e) | |
854 | + EL3RST = syscall.Errno(0x2f) | |
855 | + ELIBACC = syscall.Errno(0x4f) | |
856 | + ELIBBAD = syscall.Errno(0x50) | |
857 | + ELIBEXEC = syscall.Errno(0x53) | |
858 | + ELIBMAX = syscall.Errno(0x52) | |
859 | + ELIBSCN = syscall.Errno(0x51) | |
860 | + ELNRNG = syscall.Errno(0x30) | |
861 | + ELOOP = syscall.Errno(0x28) | |
862 | + EMEDIUMTYPE = syscall.Errno(0x7c) | |
863 | + EMSGSIZE = syscall.Errno(0x5a) | |
864 | + EMULTIHOP = syscall.Errno(0x48) | |
865 | + ENAMETOOLONG = syscall.Errno(0x24) | |
866 | + ENAVAIL = syscall.Errno(0x77) | |
867 | + ENETDOWN = syscall.Errno(0x64) | |
868 | + ENETRESET = syscall.Errno(0x66) | |
869 | + ENETUNREACH = syscall.Errno(0x65) | |
870 | + ENOANO = syscall.Errno(0x37) | |
871 | + ENOBUFS = syscall.Errno(0x69) | |
872 | + ENOCSI = syscall.Errno(0x32) | |
873 | + ENODATA = syscall.Errno(0x3d) | |
874 | + ENOKEY = syscall.Errno(0x7e) | |
875 | + ENOLCK = syscall.Errno(0x25) | |
876 | + ENOLINK = syscall.Errno(0x43) | |
877 | + ENOMEDIUM = syscall.Errno(0x7b) | |
878 | + ENOMSG = syscall.Errno(0x2a) | |
879 | + ENONET = syscall.Errno(0x40) | |
880 | + ENOPKG = syscall.Errno(0x41) | |
881 | + ENOPROTOOPT = syscall.Errno(0x5c) | |
882 | + ENOSR = syscall.Errno(0x3f) | |
883 | + ENOSTR = syscall.Errno(0x3c) | |
884 | + ENOSYS = syscall.Errno(0x26) | |
885 | + ENOTCONN = syscall.Errno(0x6b) | |
886 | + ENOTEMPTY = syscall.Errno(0x27) | |
887 | + ENOTNAM = syscall.Errno(0x76) | |
888 | + ENOTRECOVERABLE = syscall.Errno(0x83) | |
889 | + ENOTSOCK = syscall.Errno(0x58) | |
890 | + ENOTSUP = syscall.Errno(0x5f) | |
891 | + ENOTUNIQ = syscall.Errno(0x4c) | |
892 | + EOPNOTSUPP = syscall.Errno(0x5f) | |
893 | + EOVERFLOW = syscall.Errno(0x4b) | |
894 | + EOWNERDEAD = syscall.Errno(0x82) | |
895 | + EPFNOSUPPORT = syscall.Errno(0x60) | |
896 | + EPROTO = syscall.Errno(0x47) | |
897 | + EPROTONOSUPPORT = syscall.Errno(0x5d) | |
898 | + EPROTOTYPE = syscall.Errno(0x5b) | |
899 | + EREMCHG = syscall.Errno(0x4e) | |
900 | + EREMOTE = syscall.Errno(0x42) | |
901 | + EREMOTEIO = syscall.Errno(0x79) | |
902 | + ERESTART = syscall.Errno(0x55) | |
903 | + ERFKILL = syscall.Errno(0x84) | |
904 | + ESHUTDOWN = syscall.Errno(0x6c) | |
905 | + ESOCKTNOSUPPORT = syscall.Errno(0x5e) | |
906 | + ESRMNT = syscall.Errno(0x45) | |
907 | + ESTALE = syscall.Errno(0x74) | |
908 | + ESTRPIPE = syscall.Errno(0x56) | |
909 | + ETIME = syscall.Errno(0x3e) | |
910 | + ETIMEDOUT = syscall.Errno(0x6e) | |
911 | + ETOOMANYREFS = syscall.Errno(0x6d) | |
912 | + EUCLEAN = syscall.Errno(0x75) | |
913 | + EUNATCH = syscall.Errno(0x31) | |
914 | + EUSERS = syscall.Errno(0x57) | |
915 | + EXFULL = syscall.Errno(0x36) | |
916 | +) | |
917 | + | |
918 | +// Signals | |
919 | +const ( | |
920 | + SIGBUS = syscall.Signal(0x7) | |
921 | + SIGCHLD = syscall.Signal(0x11) | |
922 | + SIGCLD = syscall.Signal(0x11) | |
923 | + SIGCONT = syscall.Signal(0x12) | |
924 | + SIGIO = syscall.Signal(0x1d) | |
925 | + SIGPOLL = syscall.Signal(0x1d) | |
926 | + SIGPROF = syscall.Signal(0x1b) | |
927 | + SIGPWR = syscall.Signal(0x1e) | |
928 | + SIGSTKFLT = syscall.Signal(0x10) | |
929 | + SIGSTOP = syscall.Signal(0x13) | |
930 | + SIGSYS = syscall.Signal(0x1f) | |
931 | + SIGTSTP = syscall.Signal(0x14) | |
932 | + SIGTTIN = syscall.Signal(0x15) | |
933 | + SIGTTOU = syscall.Signal(0x16) | |
934 | + SIGURG = syscall.Signal(0x17) | |
935 | + SIGUSR1 = syscall.Signal(0xa) | |
936 | + SIGUSR2 = syscall.Signal(0xc) | |
937 | + SIGVTALRM = syscall.Signal(0x1a) | |
938 | + SIGWINCH = syscall.Signal(0x1c) | |
939 | + SIGXCPU = syscall.Signal(0x18) | |
940 | + SIGXFSZ = syscall.Signal(0x19) | |
941 | +) | |
942 | + | |
943 | +// Error table | |
944 | +var errorList = [...]struct { | |
945 | + num syscall.Errno | |
946 | + name string | |
947 | + desc string | |
948 | +}{ | |
949 | + {1, "EPERM", "operation not permitted"}, | |
950 | + {2, "ENOENT", "no such file or directory"}, | |
951 | + {3, "ESRCH", "no such process"}, | |
952 | + {4, "EINTR", "interrupted system call"}, | |
953 | + {5, "EIO", "input/output error"}, | |
954 | + {6, "ENXIO", "no such device or address"}, | |
955 | + {7, "E2BIG", "argument list too long"}, | |
956 | + {8, "ENOEXEC", "exec format error"}, | |
957 | + {9, "EBADF", "bad file descriptor"}, | |
958 | + {10, "ECHILD", "no child processes"}, | |
959 | + {11, "EAGAIN", "resource temporarily unavailable"}, | |
960 | + {12, "ENOMEM", "cannot allocate memory"}, | |
961 | + {13, "EACCES", "permission denied"}, | |
962 | + {14, "EFAULT", "bad address"}, | |
963 | + {15, "ENOTBLK", "block device required"}, | |
964 | + {16, "EBUSY", "device or resource busy"}, | |
965 | + {17, "EEXIST", "file exists"}, | |
966 | + {18, "EXDEV", "invalid cross-device link"}, | |
967 | + {19, "ENODEV", "no such device"}, | |
968 | + {20, "ENOTDIR", "not a directory"}, | |
969 | + {21, "EISDIR", "is a directory"}, | |
970 | + {22, "EINVAL", "invalid argument"}, | |
971 | + {23, "ENFILE", "too many open files in system"}, | |
972 | + {24, "EMFILE", "too many open files"}, | |
973 | + {25, "ENOTTY", "inappropriate ioctl for device"}, | |
974 | + {26, "ETXTBSY", "text file busy"}, | |
975 | + {27, "EFBIG", "file too large"}, | |
976 | + {28, "ENOSPC", "no space left on device"}, | |
977 | + {29, "ESPIPE", "illegal seek"}, | |
978 | + {30, "EROFS", "read-only file system"}, | |
979 | + {31, "EMLINK", "too many links"}, | |
980 | + {32, "EPIPE", "broken pipe"}, | |
981 | + {33, "EDOM", "numerical argument out of domain"}, | |
982 | + {34, "ERANGE", "numerical result out of range"}, | |
983 | + {35, "EDEADLK", "resource deadlock avoided"}, | |
984 | + {36, "ENAMETOOLONG", "file name too long"}, | |
985 | + {37, "ENOLCK", "no locks available"}, | |
986 | + {38, "ENOSYS", "function not implemented"}, | |
987 | + {39, "ENOTEMPTY", "directory not empty"}, | |
988 | + {40, "ELOOP", "too many levels of symbolic links"}, | |
989 | + {42, "ENOMSG", "no message of desired type"}, | |
990 | + {43, "EIDRM", "identifier removed"}, | |
991 | + {44, "ECHRNG", "channel number out of range"}, | |
992 | + {45, "EL2NSYNC", "level 2 not synchronized"}, | |
993 | + {46, "EL3HLT", "level 3 halted"}, | |
994 | + {47, "EL3RST", "level 3 reset"}, | |
995 | + {48, "ELNRNG", "link number out of range"}, | |
996 | + {49, "EUNATCH", "protocol driver not attached"}, | |
997 | + {50, "ENOCSI", "no CSI structure available"}, | |
998 | + {51, "EL2HLT", "level 2 halted"}, | |
999 | + {52, "EBADE", "invalid exchange"}, | |
1000 | + {53, "EBADR", "invalid request descriptor"}, | |
1001 | + {54, "EXFULL", "exchange full"}, | |
1002 | + {55, "ENOANO", "no anode"}, | |
1003 | + {56, "EBADRQC", "invalid request code"}, | |
1004 | + {57, "EBADSLT", "invalid slot"}, | |
1005 | + {58, "EDEADLOCK", "file locking deadlock error"}, | |
1006 | + {59, "EBFONT", "bad font file format"}, | |
1007 | + {60, "ENOSTR", "device not a stream"}, | |
1008 | + {61, "ENODATA", "no data available"}, | |
1009 | + {62, "ETIME", "timer expired"}, | |
1010 | + {63, "ENOSR", "out of streams resources"}, | |
1011 | + {64, "ENONET", "machine is not on the network"}, | |
1012 | + {65, "ENOPKG", "package not installed"}, | |
1013 | + {66, "EREMOTE", "object is remote"}, | |
1014 | + {67, "ENOLINK", "link has been severed"}, | |
1015 | + {68, "EADV", "advertise error"}, | |
1016 | + {69, "ESRMNT", "srmount error"}, | |
1017 | + {70, "ECOMM", "communication error on send"}, | |
1018 | + {71, "EPROTO", "protocol error"}, | |
1019 | + {72, "EMULTIHOP", "multihop attempted"}, | |
1020 | + {73, "EDOTDOT", "RFS specific error"}, | |
1021 | + {74, "EBADMSG", "bad message"}, | |
1022 | + {75, "EOVERFLOW", "value too large for defined data type"}, | |
1023 | + {76, "ENOTUNIQ", "name not unique on network"}, | |
1024 | + {77, "EBADFD", "file descriptor in bad state"}, | |
1025 | + {78, "EREMCHG", "remote address changed"}, | |
1026 | + {79, "ELIBACC", "can not access a needed shared library"}, | |
1027 | + {80, "ELIBBAD", "accessing a corrupted shared library"}, | |
1028 | + {81, "ELIBSCN", ".lib section in a.out corrupted"}, | |
1029 | + {82, "ELIBMAX", "attempting to link in too many shared libraries"}, | |
1030 | + {83, "ELIBEXEC", "cannot exec a shared library directly"}, | |
1031 | + {84, "EILSEQ", "invalid or incomplete multibyte or wide character"}, | |
1032 | + {85, "ERESTART", "interrupted system call should be restarted"}, | |
1033 | + {86, "ESTRPIPE", "streams pipe error"}, | |
1034 | + {87, "EUSERS", "too many users"}, | |
1035 | + {88, "ENOTSOCK", "socket operation on non-socket"}, | |
1036 | + {89, "EDESTADDRREQ", "destination address required"}, | |
1037 | + {90, "EMSGSIZE", "message too long"}, | |
1038 | + {91, "EPROTOTYPE", "protocol wrong type for socket"}, | |
1039 | + {92, "ENOPROTOOPT", "protocol not available"}, | |
1040 | + {93, "EPROTONOSUPPORT", "protocol not supported"}, | |
1041 | + {94, "ESOCKTNOSUPPORT", "socket type not supported"}, | |
1042 | + {95, "ENOTSUP", "operation not supported"}, | |
1043 | + {96, "EPFNOSUPPORT", "protocol family not supported"}, | |
1044 | + {97, "EAFNOSUPPORT", "address family not supported by protocol"}, | |
1045 | + {98, "EADDRINUSE", "address already in use"}, | |
1046 | + {99, "EADDRNOTAVAIL", "cannot assign requested address"}, | |
1047 | + {100, "ENETDOWN", "network is down"}, | |
1048 | + {101, "ENETUNREACH", "network is unreachable"}, | |
1049 | + {102, "ENETRESET", "network dropped connection on reset"}, | |
1050 | + {103, "ECONNABORTED", "software caused connection abort"}, | |
1051 | + {104, "ECONNRESET", "connection reset by peer"}, | |
1052 | + {105, "ENOBUFS", "no buffer space available"}, | |
1053 | + {106, "EISCONN", "transport endpoint is already connected"}, | |
1054 | + {107, "ENOTCONN", "transport endpoint is not connected"}, | |
1055 | + {108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"}, | |
1056 | + {109, "ETOOMANYREFS", "too many references: cannot splice"}, | |
1057 | + {110, "ETIMEDOUT", "connection timed out"}, | |
1058 | + {111, "ECONNREFUSED", "connection refused"}, | |
1059 | + {112, "EHOSTDOWN", "host is down"}, | |
1060 | + {113, "EHOSTUNREACH", "no route to host"}, | |
1061 | + {114, "EALREADY", "operation already in progress"}, | |
1062 | + {115, "EINPROGRESS", "operation now in progress"}, | |
1063 | + {116, "ESTALE", "stale file handle"}, | |
1064 | + {117, "EUCLEAN", "structure needs cleaning"}, | |
1065 | + {118, "ENOTNAM", "not a XENIX named type file"}, | |
1066 | + {119, "ENAVAIL", "no XENIX semaphores available"}, | |
1067 | + {120, "EISNAM", "is a named type file"}, | |
1068 | + {121, "EREMOTEIO", "remote I/O error"}, | |
1069 | + {122, "EDQUOT", "disk quota exceeded"}, | |
1070 | + {123, "ENOMEDIUM", "no medium found"}, | |
1071 | + {124, "EMEDIUMTYPE", "wrong medium type"}, | |
1072 | + {125, "ECANCELED", "operation canceled"}, | |
1073 | + {126, "ENOKEY", "required key not available"}, | |
1074 | + {127, "EKEYEXPIRED", "key has expired"}, | |
1075 | + {128, "EKEYREVOKED", "key has been revoked"}, | |
1076 | + {129, "EKEYREJECTED", "key was rejected by service"}, | |
1077 | + {130, "EOWNERDEAD", "owner died"}, | |
1078 | + {131, "ENOTRECOVERABLE", "state not recoverable"}, | |
1079 | + {132, "ERFKILL", "operation not possible due to RF-kill"}, | |
1080 | + {133, "EHWPOISON", "memory page has hardware error"}, | |
1081 | +} | |
1082 | + | |
1083 | +// Signal table | |
1084 | +var signalList = [...]struct { | |
1085 | + num syscall.Signal | |
1086 | + name string | |
1087 | + desc string | |
1088 | +}{ | |
1089 | + {1, "SIGHUP", "hangup"}, | |
1090 | + {2, "SIGINT", "interrupt"}, | |
1091 | + {3, "SIGQUIT", "quit"}, | |
1092 | + {4, "SIGILL", "illegal instruction"}, | |
1093 | + {5, "SIGTRAP", "trace/breakpoint trap"}, | |
1094 | + {6, "SIGABRT", "aborted"}, | |
1095 | + {7, "SIGBUS", "bus error"}, | |
1096 | + {8, "SIGFPE", "floating point exception"}, | |
1097 | + {9, "SIGKILL", "killed"}, | |
1098 | + {10, "SIGUSR1", "user defined signal 1"}, | |
1099 | + {11, "SIGSEGV", "segmentation fault"}, | |
1100 | + {12, "SIGUSR2", "user defined signal 2"}, | |
1101 | + {13, "SIGPIPE", "broken pipe"}, | |
1102 | + {14, "SIGALRM", "alarm clock"}, | |
1103 | + {15, "SIGTERM", "terminated"}, | |
1104 | + {16, "SIGSTKFLT", "stack fault"}, | |
1105 | + {17, "SIGCHLD", "child exited"}, | |
1106 | + {18, "SIGCONT", "continued"}, | |
1107 | + {19, "SIGSTOP", "stopped (signal)"}, | |
1108 | + {20, "SIGTSTP", "stopped"}, | |
1109 | + {21, "SIGTTIN", "stopped (tty input)"}, | |
1110 | + {22, "SIGTTOU", "stopped (tty output)"}, | |
1111 | + {23, "SIGURG", "urgent I/O condition"}, | |
1112 | + {24, "SIGXCPU", "CPU time limit exceeded"}, | |
1113 | + {25, "SIGXFSZ", "file size limit exceeded"}, | |
1114 | + {26, "SIGVTALRM", "virtual timer expired"}, | |
1115 | + {27, "SIGPROF", "profiling timer expired"}, | |
1116 | + {28, "SIGWINCH", "window changed"}, | |
1117 | + {29, "SIGIO", "I/O possible"}, | |
1118 | + {30, "SIGPWR", "power failure"}, | |
1119 | + {31, "SIGSYS", "bad system call"}, | |
1120 | +} | |
1121 | diff --git a/unix/zsyscall_linux_ppc.go b/unix/zsyscall_linux_ppc.go | |
1122 | new file mode 100644 | |
1123 | index 0000000..9974c64 | |
1124 | --- /dev/null | |
1125 | +++ b/unix/zsyscall_linux_ppc.go | |
1126 | @@ -0,0 +1,807 @@ | |
1127 | +// go run mksyscall.go -b32 -tags linux,ppc syscall_linux.go syscall_linux_ppc.go | |
1128 | +// Code generated by the command above; see README.md. DO NOT EDIT. | |
1129 | + | |
1130 | +// +build linux,ppc | |
1131 | + | |
1132 | +package unix | |
1133 | + | |
1134 | +import ( | |
1135 | + "syscall" | |
1136 | + "unsafe" | |
1137 | +) | |
1138 | + | |
1139 | +var _ syscall.Errno | |
1140 | + | |
1141 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1142 | + | |
1143 | +func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) { | |
1144 | + _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask>>32), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname))) | |
1145 | + if e1 != 0 { | |
1146 | + err = errnoErr(e1) | |
1147 | + } | |
1148 | + return | |
1149 | +} | |
1150 | + | |
1151 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1152 | + | |
1153 | +func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { | |
1154 | + _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off>>32), uintptr(off), uintptr(len>>32), uintptr(len)) | |
1155 | + if e1 != 0 { | |
1156 | + err = errnoErr(e1) | |
1157 | + } | |
1158 | + return | |
1159 | +} | |
1160 | + | |
1161 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1162 | + | |
1163 | +func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { | |
1164 | + r0, r1, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) | |
1165 | + n = int64(int64(r0)<<32 | int64(r1)) | |
1166 | + if e1 != 0 { | |
1167 | + err = errnoErr(e1) | |
1168 | + } | |
1169 | + return | |
1170 | +} | |
1171 | + | |
1172 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1173 | + | |
1174 | +func dup2(oldfd int, newfd int) (err error) { | |
1175 | + _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) | |
1176 | + if e1 != 0 { | |
1177 | + err = errnoErr(e1) | |
1178 | + } | |
1179 | + return | |
1180 | +} | |
1181 | + | |
1182 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1183 | + | |
1184 | +func EpollCreate(size int) (fd int, err error) { | |
1185 | + r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0) | |
1186 | + fd = int(r0) | |
1187 | + if e1 != 0 { | |
1188 | + err = errnoErr(e1) | |
1189 | + } | |
1190 | + return | |
1191 | +} | |
1192 | + | |
1193 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1194 | + | |
1195 | +func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { | |
1196 | + var _p0 unsafe.Pointer | |
1197 | + if len(events) > 0 { | |
1198 | + _p0 = unsafe.Pointer(&events[0]) | |
1199 | + } else { | |
1200 | + _p0 = unsafe.Pointer(&_zero) | |
1201 | + } | |
1202 | + r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) | |
1203 | + n = int(r0) | |
1204 | + if e1 != 0 { | |
1205 | + err = errnoErr(e1) | |
1206 | + } | |
1207 | + return | |
1208 | +} | |
1209 | + | |
1210 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1211 | + | |
1212 | +func Fadvise(fd int, offset int64, length int64, advice int) (err error) { | |
1213 | + _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset>>32), uintptr(offset), uintptr(length>>32), uintptr(length), uintptr(advice)) | |
1214 | + if e1 != 0 { | |
1215 | + err = errnoErr(e1) | |
1216 | + } | |
1217 | + return | |
1218 | +} | |
1219 | + | |
1220 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1221 | + | |
1222 | +func Fchown(fd int, uid int, gid int) (err error) { | |
1223 | + _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) | |
1224 | + if e1 != 0 { | |
1225 | + err = errnoErr(e1) | |
1226 | + } | |
1227 | + return | |
1228 | +} | |
1229 | + | |
1230 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1231 | + | |
1232 | +func Fstat(fd int, stat *Stat_t) (err error) { | |
1233 | + _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) | |
1234 | + if e1 != 0 { | |
1235 | + err = errnoErr(e1) | |
1236 | + } | |
1237 | + return | |
1238 | +} | |
1239 | + | |
1240 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1241 | + | |
1242 | +func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { | |
1243 | + var _p0 *byte | |
1244 | + _p0, err = BytePtrFromString(path) | |
1245 | + if err != nil { | |
1246 | + return | |
1247 | + } | |
1248 | + _, _, e1 := Syscall6(SYS_NEWFSTATAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) | |
1249 | + if e1 != 0 { | |
1250 | + err = errnoErr(e1) | |
1251 | + } | |
1252 | + return | |
1253 | +} | |
1254 | + | |
1255 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1256 | + | |
1257 | +func Fstatfs(fd int, buf *Statfs_t) (err error) { | |
1258 | + _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0) | |
1259 | + if e1 != 0 { | |
1260 | + err = errnoErr(e1) | |
1261 | + } | |
1262 | + return | |
1263 | +} | |
1264 | + | |
1265 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1266 | + | |
1267 | +func Ftruncate(fd int, length int64) (err error) { | |
1268 | + _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length>>32), uintptr(length)) | |
1269 | + if e1 != 0 { | |
1270 | + err = errnoErr(e1) | |
1271 | + } | |
1272 | + return | |
1273 | +} | |
1274 | + | |
1275 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1276 | + | |
1277 | +func Getegid() (egid int) { | |
1278 | + r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) | |
1279 | + egid = int(r0) | |
1280 | + return | |
1281 | +} | |
1282 | + | |
1283 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1284 | + | |
1285 | +func Geteuid() (euid int) { | |
1286 | + r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) | |
1287 | + euid = int(r0) | |
1288 | + return | |
1289 | +} | |
1290 | + | |
1291 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1292 | + | |
1293 | +func Getgid() (gid int) { | |
1294 | + r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) | |
1295 | + gid = int(r0) | |
1296 | + return | |
1297 | +} | |
1298 | + | |
1299 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1300 | + | |
1301 | +func Getrlimit(resource int, rlim *Rlimit) (err error) { | |
1302 | + _, _, e1 := RawSyscall(SYS_UGETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) | |
1303 | + if e1 != 0 { | |
1304 | + err = errnoErr(e1) | |
1305 | + } | |
1306 | + return | |
1307 | +} | |
1308 | + | |
1309 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1310 | + | |
1311 | +func Getuid() (uid int) { | |
1312 | + r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) | |
1313 | + uid = int(r0) | |
1314 | + return | |
1315 | +} | |
1316 | + | |
1317 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1318 | + | |
1319 | +func InotifyInit() (fd int, err error) { | |
1320 | + r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0) | |
1321 | + fd = int(r0) | |
1322 | + if e1 != 0 { | |
1323 | + err = errnoErr(e1) | |
1324 | + } | |
1325 | + return | |
1326 | +} | |
1327 | + | |
1328 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1329 | + | |
1330 | +func Ioperm(from int, num int, on int) (err error) { | |
1331 | + _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on)) | |
1332 | + if e1 != 0 { | |
1333 | + err = errnoErr(e1) | |
1334 | + } | |
1335 | + return | |
1336 | +} | |
1337 | + | |
1338 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1339 | + | |
1340 | +func Iopl(level int) (err error) { | |
1341 | + _, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0) | |
1342 | + if e1 != 0 { | |
1343 | + err = errnoErr(e1) | |
1344 | + } | |
1345 | + return | |
1346 | +} | |
1347 | + | |
1348 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1349 | + | |
1350 | +func Lchown(path string, uid int, gid int) (err error) { | |
1351 | + var _p0 *byte | |
1352 | + _p0, err = BytePtrFromString(path) | |
1353 | + if err != nil { | |
1354 | + return | |
1355 | + } | |
1356 | + _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) | |
1357 | + if e1 != 0 { | |
1358 | + err = errnoErr(e1) | |
1359 | + } | |
1360 | + return | |
1361 | +} | |
1362 | + | |
1363 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1364 | + | |
1365 | +func Listen(s int, n int) (err error) { | |
1366 | + _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) | |
1367 | + if e1 != 0 { | |
1368 | + err = errnoErr(e1) | |
1369 | + } | |
1370 | + return | |
1371 | +} | |
1372 | + | |
1373 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1374 | + | |
1375 | +func Lstat(path string, stat *Stat_t) (err error) { | |
1376 | + var _p0 *byte | |
1377 | + _p0, err = BytePtrFromString(path) | |
1378 | + if err != nil { | |
1379 | + return | |
1380 | + } | |
1381 | + _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) | |
1382 | + if e1 != 0 { | |
1383 | + err = errnoErr(e1) | |
1384 | + } | |
1385 | + return | |
1386 | +} | |
1387 | + | |
1388 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1389 | + | |
1390 | +func Pause() (err error) { | |
1391 | + _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) | |
1392 | + if e1 != 0 { | |
1393 | + err = errnoErr(e1) | |
1394 | + } | |
1395 | + return | |
1396 | +} | |
1397 | + | |
1398 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1399 | + | |
1400 | +func Pread(fd int, p []byte, offset int64) (n int, err error) { | |
1401 | + var _p0 unsafe.Pointer | |
1402 | + if len(p) > 0 { | |
1403 | + _p0 = unsafe.Pointer(&p[0]) | |
1404 | + } else { | |
1405 | + _p0 = unsafe.Pointer(&_zero) | |
1406 | + } | |
1407 | + r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset>>32), uintptr(offset), 0) | |
1408 | + n = int(r0) | |
1409 | + if e1 != 0 { | |
1410 | + err = errnoErr(e1) | |
1411 | + } | |
1412 | + return | |
1413 | +} | |
1414 | + | |
1415 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1416 | + | |
1417 | +func Pwrite(fd int, p []byte, offset int64) (n int, err error) { | |
1418 | + var _p0 unsafe.Pointer | |
1419 | + if len(p) > 0 { | |
1420 | + _p0 = unsafe.Pointer(&p[0]) | |
1421 | + } else { | |
1422 | + _p0 = unsafe.Pointer(&_zero) | |
1423 | + } | |
1424 | + r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset>>32), uintptr(offset), 0) | |
1425 | + n = int(r0) | |
1426 | + if e1 != 0 { | |
1427 | + err = errnoErr(e1) | |
1428 | + } | |
1429 | + return | |
1430 | +} | |
1431 | + | |
1432 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1433 | + | |
1434 | +func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { | |
1435 | + var _p0 *byte | |
1436 | + _p0, err = BytePtrFromString(oldpath) | |
1437 | + if err != nil { | |
1438 | + return | |
1439 | + } | |
1440 | + var _p1 *byte | |
1441 | + _p1, err = BytePtrFromString(newpath) | |
1442 | + if err != nil { | |
1443 | + return | |
1444 | + } | |
1445 | + _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) | |
1446 | + if e1 != 0 { | |
1447 | + err = errnoErr(e1) | |
1448 | + } | |
1449 | + return | |
1450 | +} | |
1451 | + | |
1452 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1453 | + | |
1454 | +func Seek(fd int, offset int64, whence int) (off int64, err error) { | |
1455 | + r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), uintptr(offset>>32), uintptr(offset), uintptr(whence), 0, 0) | |
1456 | + off = int64(int64(r0)<<32 | int64(r1)) | |
1457 | + if e1 != 0 { | |
1458 | + err = errnoErr(e1) | |
1459 | + } | |
1460 | + return | |
1461 | +} | |
1462 | + | |
1463 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1464 | + | |
1465 | +func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { | |
1466 | + r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) | |
1467 | + n = int(r0) | |
1468 | + if e1 != 0 { | |
1469 | + err = errnoErr(e1) | |
1470 | + } | |
1471 | + return | |
1472 | +} | |
1473 | + | |
1474 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1475 | + | |
1476 | +func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { | |
1477 | + r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) | |
1478 | + written = int(r0) | |
1479 | + if e1 != 0 { | |
1480 | + err = errnoErr(e1) | |
1481 | + } | |
1482 | + return | |
1483 | +} | |
1484 | + | |
1485 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1486 | + | |
1487 | +func setfsgid(gid int) (prev int, err error) { | |
1488 | + r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) | |
1489 | + prev = int(r0) | |
1490 | + if e1 != 0 { | |
1491 | + err = errnoErr(e1) | |
1492 | + } | |
1493 | + return | |
1494 | +} | |
1495 | + | |
1496 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1497 | + | |
1498 | +func setfsuid(uid int) (prev int, err error) { | |
1499 | + r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) | |
1500 | + prev = int(r0) | |
1501 | + if e1 != 0 { | |
1502 | + err = errnoErr(e1) | |
1503 | + } | |
1504 | + return | |
1505 | +} | |
1506 | + | |
1507 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1508 | + | |
1509 | +func Setregid(rgid int, egid int) (err error) { | |
1510 | + _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) | |
1511 | + if e1 != 0 { | |
1512 | + err = errnoErr(e1) | |
1513 | + } | |
1514 | + return | |
1515 | +} | |
1516 | + | |
1517 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1518 | + | |
1519 | +func Setresgid(rgid int, egid int, sgid int) (err error) { | |
1520 | + _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) | |
1521 | + if e1 != 0 { | |
1522 | + err = errnoErr(e1) | |
1523 | + } | |
1524 | + return | |
1525 | +} | |
1526 | + | |
1527 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1528 | + | |
1529 | +func Setresuid(ruid int, euid int, suid int) (err error) { | |
1530 | + _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) | |
1531 | + if e1 != 0 { | |
1532 | + err = errnoErr(e1) | |
1533 | + } | |
1534 | + return | |
1535 | +} | |
1536 | + | |
1537 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1538 | + | |
1539 | +func Setrlimit(resource int, rlim *Rlimit) (err error) { | |
1540 | + _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) | |
1541 | + if e1 != 0 { | |
1542 | + err = errnoErr(e1) | |
1543 | + } | |
1544 | + return | |
1545 | +} | |
1546 | + | |
1547 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1548 | + | |
1549 | +func Setreuid(ruid int, euid int) (err error) { | |
1550 | + _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) | |
1551 | + if e1 != 0 { | |
1552 | + err = errnoErr(e1) | |
1553 | + } | |
1554 | + return | |
1555 | +} | |
1556 | + | |
1557 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1558 | + | |
1559 | +func Shutdown(fd int, how int) (err error) { | |
1560 | + _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) | |
1561 | + if e1 != 0 { | |
1562 | + err = errnoErr(e1) | |
1563 | + } | |
1564 | + return | |
1565 | +} | |
1566 | + | |
1567 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1568 | + | |
1569 | +func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { | |
1570 | + r0, r1, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) | |
1571 | + n = int64(int64(r0)<<32 | int64(r1)) | |
1572 | + if e1 != 0 { | |
1573 | + err = errnoErr(e1) | |
1574 | + } | |
1575 | + return | |
1576 | +} | |
1577 | + | |
1578 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1579 | + | |
1580 | +func Stat(path string, stat *Stat_t) (err error) { | |
1581 | + var _p0 *byte | |
1582 | + _p0, err = BytePtrFromString(path) | |
1583 | + if err != nil { | |
1584 | + return | |
1585 | + } | |
1586 | + _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) | |
1587 | + if e1 != 0 { | |
1588 | + err = errnoErr(e1) | |
1589 | + } | |
1590 | + return | |
1591 | +} | |
1592 | + | |
1593 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1594 | + | |
1595 | +func Statfs(path string, buf *Statfs_t) (err error) { | |
1596 | + var _p0 *byte | |
1597 | + _p0, err = BytePtrFromString(path) | |
1598 | + if err != nil { | |
1599 | + return | |
1600 | + } | |
1601 | + _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) | |
1602 | + if e1 != 0 { | |
1603 | + err = errnoErr(e1) | |
1604 | + } | |
1605 | + return | |
1606 | +} | |
1607 | + | |
1608 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1609 | + | |
1610 | +func Truncate(path string, length int64) (err error) { | |
1611 | + var _p0 *byte | |
1612 | + _p0, err = BytePtrFromString(path) | |
1613 | + if err != nil { | |
1614 | + return | |
1615 | + } | |
1616 | + _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length>>32), uintptr(length)) | |
1617 | + if e1 != 0 { | |
1618 | + err = errnoErr(e1) | |
1619 | + } | |
1620 | + return | |
1621 | +} | |
1622 | + | |
1623 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1624 | + | |
1625 | +func Ustat(dev int, ubuf *Ustat_t) (err error) { | |
1626 | + _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) | |
1627 | + if e1 != 0 { | |
1628 | + err = errnoErr(e1) | |
1629 | + } | |
1630 | + return | |
1631 | +} | |
1632 | + | |
1633 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1634 | + | |
1635 | +func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { | |
1636 | + r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) | |
1637 | + fd = int(r0) | |
1638 | + if e1 != 0 { | |
1639 | + err = errnoErr(e1) | |
1640 | + } | |
1641 | + return | |
1642 | +} | |
1643 | + | |
1644 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1645 | + | |
1646 | +func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { | |
1647 | + r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) | |
1648 | + fd = int(r0) | |
1649 | + if e1 != 0 { | |
1650 | + err = errnoErr(e1) | |
1651 | + } | |
1652 | + return | |
1653 | +} | |
1654 | + | |
1655 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1656 | + | |
1657 | +func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { | |
1658 | + _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) | |
1659 | + if e1 != 0 { | |
1660 | + err = errnoErr(e1) | |
1661 | + } | |
1662 | + return | |
1663 | +} | |
1664 | + | |
1665 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1666 | + | |
1667 | +func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { | |
1668 | + _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) | |
1669 | + if e1 != 0 { | |
1670 | + err = errnoErr(e1) | |
1671 | + } | |
1672 | + return | |
1673 | +} | |
1674 | + | |
1675 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1676 | + | |
1677 | +func getgroups(n int, list *_Gid_t) (nn int, err error) { | |
1678 | + r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) | |
1679 | + nn = int(r0) | |
1680 | + if e1 != 0 { | |
1681 | + err = errnoErr(e1) | |
1682 | + } | |
1683 | + return | |
1684 | +} | |
1685 | + | |
1686 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1687 | + | |
1688 | +func setgroups(n int, list *_Gid_t) (err error) { | |
1689 | + _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) | |
1690 | + if e1 != 0 { | |
1691 | + err = errnoErr(e1) | |
1692 | + } | |
1693 | + return | |
1694 | +} | |
1695 | + | |
1696 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1697 | + | |
1698 | +func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { | |
1699 | + _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) | |
1700 | + if e1 != 0 { | |
1701 | + err = errnoErr(e1) | |
1702 | + } | |
1703 | + return | |
1704 | +} | |
1705 | + | |
1706 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1707 | + | |
1708 | +func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { | |
1709 | + _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) | |
1710 | + if e1 != 0 { | |
1711 | + err = errnoErr(e1) | |
1712 | + } | |
1713 | + return | |
1714 | +} | |
1715 | + | |
1716 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1717 | + | |
1718 | +func socket(domain int, typ int, proto int) (fd int, err error) { | |
1719 | + r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) | |
1720 | + fd = int(r0) | |
1721 | + if e1 != 0 { | |
1722 | + err = errnoErr(e1) | |
1723 | + } | |
1724 | + return | |
1725 | +} | |
1726 | + | |
1727 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1728 | + | |
1729 | +func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { | |
1730 | + _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) | |
1731 | + if e1 != 0 { | |
1732 | + err = errnoErr(e1) | |
1733 | + } | |
1734 | + return | |
1735 | +} | |
1736 | + | |
1737 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1738 | + | |
1739 | +func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { | |
1740 | + _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) | |
1741 | + if e1 != 0 { | |
1742 | + err = errnoErr(e1) | |
1743 | + } | |
1744 | + return | |
1745 | +} | |
1746 | + | |
1747 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1748 | + | |
1749 | +func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { | |
1750 | + _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) | |
1751 | + if e1 != 0 { | |
1752 | + err = errnoErr(e1) | |
1753 | + } | |
1754 | + return | |
1755 | +} | |
1756 | + | |
1757 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1758 | + | |
1759 | +func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { | |
1760 | + var _p0 unsafe.Pointer | |
1761 | + if len(p) > 0 { | |
1762 | + _p0 = unsafe.Pointer(&p[0]) | |
1763 | + } else { | |
1764 | + _p0 = unsafe.Pointer(&_zero) | |
1765 | + } | |
1766 | + r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) | |
1767 | + n = int(r0) | |
1768 | + if e1 != 0 { | |
1769 | + err = errnoErr(e1) | |
1770 | + } | |
1771 | + return | |
1772 | +} | |
1773 | + | |
1774 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1775 | + | |
1776 | +func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { | |
1777 | + var _p0 unsafe.Pointer | |
1778 | + if len(buf) > 0 { | |
1779 | + _p0 = unsafe.Pointer(&buf[0]) | |
1780 | + } else { | |
1781 | + _p0 = unsafe.Pointer(&_zero) | |
1782 | + } | |
1783 | + _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) | |
1784 | + if e1 != 0 { | |
1785 | + err = errnoErr(e1) | |
1786 | + } | |
1787 | + return | |
1788 | +} | |
1789 | + | |
1790 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1791 | + | |
1792 | +func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { | |
1793 | + r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) | |
1794 | + n = int(r0) | |
1795 | + if e1 != 0 { | |
1796 | + err = errnoErr(e1) | |
1797 | + } | |
1798 | + return | |
1799 | +} | |
1800 | + | |
1801 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1802 | + | |
1803 | +func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { | |
1804 | + r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) | |
1805 | + n = int(r0) | |
1806 | + if e1 != 0 { | |
1807 | + err = errnoErr(e1) | |
1808 | + } | |
1809 | + return | |
1810 | +} | |
1811 | + | |
1812 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1813 | + | |
1814 | +func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { | |
1815 | + r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset>>32), uintptr(offset), 0, 0) | |
1816 | + xaddr = uintptr(r0) | |
1817 | + if e1 != 0 { | |
1818 | + err = errnoErr(e1) | |
1819 | + } | |
1820 | + return | |
1821 | +} | |
1822 | + | |
1823 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1824 | + | |
1825 | +func futimesat(dirfd int, path string, times *[2]Timeval) (err error) { | |
1826 | + var _p0 *byte | |
1827 | + _p0, err = BytePtrFromString(path) | |
1828 | + if err != nil { | |
1829 | + return | |
1830 | + } | |
1831 | + _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times))) | |
1832 | + if e1 != 0 { | |
1833 | + err = errnoErr(e1) | |
1834 | + } | |
1835 | + return | |
1836 | +} | |
1837 | + | |
1838 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1839 | + | |
1840 | +func Gettimeofday(tv *Timeval) (err error) { | |
1841 | + _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) | |
1842 | + if e1 != 0 { | |
1843 | + err = errnoErr(e1) | |
1844 | + } | |
1845 | + return | |
1846 | +} | |
1847 | + | |
1848 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1849 | + | |
1850 | +func Time(t *Time_t) (tt Time_t, err error) { | |
1851 | + r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0) | |
1852 | + tt = Time_t(r0) | |
1853 | + if e1 != 0 { | |
1854 | + err = errnoErr(e1) | |
1855 | + } | |
1856 | + return | |
1857 | +} | |
1858 | + | |
1859 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1860 | + | |
1861 | +func Utime(path string, buf *Utimbuf) (err error) { | |
1862 | + var _p0 *byte | |
1863 | + _p0, err = BytePtrFromString(path) | |
1864 | + if err != nil { | |
1865 | + return | |
1866 | + } | |
1867 | + _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) | |
1868 | + if e1 != 0 { | |
1869 | + err = errnoErr(e1) | |
1870 | + } | |
1871 | + return | |
1872 | +} | |
1873 | + | |
1874 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1875 | + | |
1876 | +func utimes(path string, times *[2]Timeval) (err error) { | |
1877 | + var _p0 *byte | |
1878 | + _p0, err = BytePtrFromString(path) | |
1879 | + if err != nil { | |
1880 | + return | |
1881 | + } | |
1882 | + _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) | |
1883 | + if e1 != 0 { | |
1884 | + err = errnoErr(e1) | |
1885 | + } | |
1886 | + return | |
1887 | +} | |
1888 | + | |
1889 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1890 | + | |
1891 | +func pipe(p *[2]_C_int) (err error) { | |
1892 | + _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) | |
1893 | + if e1 != 0 { | |
1894 | + err = errnoErr(e1) | |
1895 | + } | |
1896 | + return | |
1897 | +} | |
1898 | + | |
1899 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1900 | + | |
1901 | +func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { | |
1902 | + r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) | |
1903 | + n = int(r0) | |
1904 | + if e1 != 0 { | |
1905 | + err = errnoErr(e1) | |
1906 | + } | |
1907 | + return | |
1908 | +} | |
1909 | + | |
1910 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1911 | + | |
1912 | +func syncFileRange2(fd int, flags int, off int64, n int64) (err error) { | |
1913 | + _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE2, uintptr(fd), uintptr(flags), uintptr(off>>32), uintptr(off), uintptr(n>>32), uintptr(n)) | |
1914 | + if e1 != 0 { | |
1915 | + err = errnoErr(e1) | |
1916 | + } | |
1917 | + return | |
1918 | +} | |
1919 | + | |
1920 | +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | |
1921 | + | |
1922 | +func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) { | |
1923 | + var _p0 *byte | |
1924 | + _p0, err = BytePtrFromString(cmdline) | |
1925 | + if err != nil { | |
1926 | + return | |
1927 | + } | |
1928 | + _, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) | |
1929 | + if e1 != 0 { | |
1930 | + err = errnoErr(e1) | |
1931 | + } | |
1932 | + return | |
1933 | +} | |
1934 | diff --git a/unix/zsysnum_linux_ppc.go b/unix/zsysnum_linux_ppc.go | |
1935 | new file mode 100644 | |
1936 | index 0000000..ab4f0fb | |
1937 | --- /dev/null | |
1938 | +++ b/unix/zsysnum_linux_ppc.go | |
1939 | @@ -0,0 +1,430 @@ | |
1940 | +// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/include /tmp/include/asm/unistd.h | |
1941 | +// Code generated by the command above; see README.md. DO NOT EDIT. | |
1942 | + | |
1943 | +// +build ppc,linux | |
1944 | + | |
1945 | +package unix | |
1946 | + | |
1947 | +const ( | |
1948 | + SYS_RESTART_SYSCALL = 0 | |
1949 | + SYS_EXIT = 1 | |
1950 | + SYS_FORK = 2 | |
1951 | + SYS_READ = 3 | |
1952 | + SYS_WRITE = 4 | |
1953 | + SYS_OPEN = 5 | |
1954 | + SYS_CLOSE = 6 | |
1955 | + SYS_WAITPID = 7 | |
1956 | + SYS_CREAT = 8 | |
1957 | + SYS_LINK = 9 | |
1958 | + SYS_UNLINK = 10 | |
1959 | + SYS_EXECVE = 11 | |
1960 | + SYS_CHDIR = 12 | |
1961 | + SYS_TIME = 13 | |
1962 | + SYS_MKNOD = 14 | |
1963 | + SYS_CHMOD = 15 | |
1964 | + SYS_LCHOWN = 16 | |
1965 | + SYS_BREAK = 17 | |
1966 | + SYS_OLDSTAT = 18 | |
1967 | + SYS_LSEEK = 19 | |
1968 | + SYS_GETPID = 20 | |
1969 | + SYS_MOUNT = 21 | |
1970 | + SYS_UMOUNT = 22 | |
1971 | + SYS_SETUID = 23 | |
1972 | + SYS_GETUID = 24 | |
1973 | + SYS_STIME = 25 | |
1974 | + SYS_PTRACE = 26 | |
1975 | + SYS_ALARM = 27 | |
1976 | + SYS_OLDFSTAT = 28 | |
1977 | + SYS_PAUSE = 29 | |
1978 | + SYS_UTIME = 30 | |
1979 | + SYS_STTY = 31 | |
1980 | + SYS_GTTY = 32 | |
1981 | + SYS_ACCESS = 33 | |
1982 | + SYS_NICE = 34 | |
1983 | + SYS_FTIME = 35 | |
1984 | + SYS_SYNC = 36 | |
1985 | + SYS_KILL = 37 | |
1986 | + SYS_RENAME = 38 | |
1987 | + SYS_MKDIR = 39 | |
1988 | + SYS_RMDIR = 40 | |
1989 | + SYS_DUP = 41 | |
1990 | + SYS_PIPE = 42 | |
1991 | + SYS_TIMES = 43 | |
1992 | + SYS_PROF = 44 | |
1993 | + SYS_BRK = 45 | |
1994 | + SYS_SETGID = 46 | |
1995 | + SYS_GETGID = 47 | |
1996 | + SYS_SIGNAL = 48 | |
1997 | + SYS_GETEUID = 49 | |
1998 | + SYS_GETEGID = 50 | |
1999 | + SYS_ACCT = 51 | |
2000 | + SYS_UMOUNT2 = 52 | |
2001 | + SYS_LOCK = 53 | |
2002 | + SYS_IOCTL = 54 | |
2003 | + SYS_FCNTL = 55 | |
2004 | + SYS_MPX = 56 | |
2005 | + SYS_SETPGID = 57 | |
2006 | + SYS_ULIMIT = 58 | |
2007 | + SYS_OLDOLDUNAME = 59 | |
2008 | + SYS_UMASK = 60 | |
2009 | + SYS_CHROOT = 61 | |
2010 | + SYS_USTAT = 62 | |
2011 | + SYS_DUP2 = 63 | |
2012 | + SYS_GETPPID = 64 | |
2013 | + SYS_GETPGRP = 65 | |
2014 | + SYS_SETSID = 66 | |
2015 | + SYS_SIGACTION = 67 | |
2016 | + SYS_SGETMASK = 68 | |
2017 | + SYS_SSETMASK = 69 | |
2018 | + SYS_SETREUID = 70 | |
2019 | + SYS_SETREGID = 71 | |
2020 | + SYS_SIGSUSPEND = 72 | |
2021 | + SYS_SIGPENDING = 73 | |
2022 | + SYS_SETHOSTNAME = 74 | |
2023 | + SYS_SETRLIMIT = 75 | |
2024 | + SYS_GETRLIMIT = 76 | |
2025 | + SYS_GETRUSAGE = 77 | |
2026 | + SYS_GETTIMEOFDAY = 78 | |
2027 | + SYS_SETTIMEOFDAY = 79 | |
2028 | + SYS_GETGROUPS = 80 | |
2029 | + SYS_SETGROUPS = 81 | |
2030 | + SYS_SELECT = 82 | |
2031 | + SYS_SYMLINK = 83 | |
2032 | + SYS_OLDLSTAT = 84 | |
2033 | + SYS_READLINK = 85 | |
2034 | + SYS_USELIB = 86 | |
2035 | + SYS_SWAPON = 87 | |
2036 | + SYS_REBOOT = 88 | |
2037 | + SYS_READDIR = 89 | |
2038 | + SYS_MMAP = 90 | |
2039 | + SYS_MUNMAP = 91 | |
2040 | + SYS_TRUNCATE = 92 | |
2041 | + SYS_FTRUNCATE = 93 | |
2042 | + SYS_FCHMOD = 94 | |
2043 | + SYS_FCHOWN = 95 | |
2044 | + SYS_GETPRIORITY = 96 | |
2045 | + SYS_SETPRIORITY = 97 | |
2046 | + SYS_PROFIL = 98 | |
2047 | + SYS_STATFS = 99 | |
2048 | + SYS_FSTATFS = 100 | |
2049 | + SYS_IOPERM = 101 | |
2050 | + SYS_SOCKETCALL = 102 | |
2051 | + SYS_SYSLOG = 103 | |
2052 | + SYS_SETITIMER = 104 | |
2053 | + SYS_GETITIMER = 105 | |
2054 | + SYS_STAT = 106 | |
2055 | + SYS_LSTAT = 107 | |
2056 | + SYS_FSTAT = 108 | |
2057 | + SYS_OLDUNAME = 109 | |
2058 | + SYS_IOPL = 110 | |
2059 | + SYS_VHANGUP = 111 | |
2060 | + SYS_IDLE = 112 | |
2061 | + SYS_VM86 = 113 | |
2062 | + SYS_WAIT4 = 114 | |
2063 | + SYS_SWAPOFF = 115 | |
2064 | + SYS_SYSINFO = 116 | |
2065 | + SYS_IPC = 117 | |
2066 | + SYS_FSYNC = 118 | |
2067 | + SYS_SIGRETURN = 119 | |
2068 | + SYS_CLONE = 120 | |
2069 | + SYS_SETDOMAINNAME = 121 | |
2070 | + SYS_UNAME = 122 | |
2071 | + SYS_MODIFY_LDT = 123 | |
2072 | + SYS_ADJTIMEX = 124 | |
2073 | + SYS_MPROTECT = 125 | |
2074 | + SYS_SIGPROCMASK = 126 | |
2075 | + SYS_CREATE_MODULE = 127 | |
2076 | + SYS_INIT_MODULE = 128 | |
2077 | + SYS_DELETE_MODULE = 129 | |
2078 | + SYS_GET_KERNEL_SYMS = 130 | |
2079 | + SYS_QUOTACTL = 131 | |
2080 | + SYS_GETPGID = 132 | |
2081 | + SYS_FCHDIR = 133 | |
2082 | + SYS_BDFLUSH = 134 | |
2083 | + SYS_SYSFS = 135 | |
2084 | + SYS_PERSONALITY = 136 | |
2085 | + SYS_AFS_SYSCALL = 137 | |
2086 | + SYS_SETFSUID = 138 | |
2087 | + SYS_SETFSGID = 139 | |
2088 | + SYS__LLSEEK = 140 | |
2089 | + SYS_GETDENTS = 141 | |
2090 | + SYS__NEWSELECT = 142 | |
2091 | + SYS_FLOCK = 143 | |
2092 | + SYS_MSYNC = 144 | |
2093 | + SYS_READV = 145 | |
2094 | + SYS_WRITEV = 146 | |
2095 | + SYS_GETSID = 147 | |
2096 | + SYS_FDATASYNC = 148 | |
2097 | + SYS__SYSCTL = 149 | |
2098 | + SYS_MLOCK = 150 | |
2099 | + SYS_MUNLOCK = 151 | |
2100 | + SYS_MLOCKALL = 152 | |
2101 | + SYS_MUNLOCKALL = 153 | |
2102 | + SYS_SCHED_SETPARAM = 154 | |
2103 | + SYS_SCHED_GETPARAM = 155 | |
2104 | + SYS_SCHED_SETSCHEDULER = 156 | |
2105 | + SYS_SCHED_GETSCHEDULER = 157 | |
2106 | + SYS_SCHED_YIELD = 158 | |
2107 | + SYS_SCHED_GET_PRIORITY_MAX = 159 | |
2108 | + SYS_SCHED_GET_PRIORITY_MIN = 160 | |
2109 | + SYS_SCHED_RR_GET_INTERVAL = 161 | |
2110 | + SYS_NANOSLEEP = 162 | |
2111 | + SYS_MREMAP = 163 | |
2112 | + SYS_SETRESUID = 164 | |
2113 | + SYS_GETRESUID = 165 | |
2114 | + SYS_QUERY_MODULE = 166 | |
2115 | + SYS_POLL = 167 | |
2116 | + SYS_NFSSERVCTL = 168 | |
2117 | + SYS_SETRESGID = 169 | |
2118 | + SYS_GETRESGID = 170 | |
2119 | + SYS_PRCTL = 171 | |
2120 | + SYS_RT_SIGRETURN = 172 | |
2121 | + SYS_RT_SIGACTION = 173 | |
2122 | + SYS_RT_SIGPROCMASK = 174 | |
2123 | + SYS_RT_SIGPENDING = 175 | |
2124 | + SYS_RT_SIGTIMEDWAIT = 176 | |
2125 | + SYS_RT_SIGQUEUEINFO = 177 | |
2126 | + SYS_RT_SIGSUSPEND = 178 | |
2127 | + SYS_PREAD64 = 179 | |
2128 | + SYS_PWRITE64 = 180 | |
2129 | + SYS_CHOWN = 181 | |
2130 | + SYS_GETCWD = 182 | |
2131 | + SYS_CAPGET = 183 | |
2132 | + SYS_CAPSET = 184 | |
2133 | + SYS_SIGALTSTACK = 185 | |
2134 | + SYS_SENDFILE = 186 | |
2135 | + SYS_GETPMSG = 187 | |
2136 | + SYS_PUTPMSG = 188 | |
2137 | + SYS_VFORK = 189 | |
2138 | + SYS_UGETRLIMIT = 190 | |
2139 | + SYS_READAHEAD = 191 | |
2140 | + SYS_MMAP2 = 192 | |
2141 | + SYS_TRUNCATE64 = 193 | |
2142 | + SYS_FTRUNCATE64 = 194 | |
2143 | + SYS_STAT64 = 195 | |
2144 | + SYS_LSTAT64 = 196 | |
2145 | + SYS_FSTAT64 = 197 | |
2146 | + SYS_PCICONFIG_READ = 198 | |
2147 | + SYS_PCICONFIG_WRITE = 199 | |
2148 | + SYS_PCICONFIG_IOBASE = 200 | |
2149 | + SYS_MULTIPLEXER = 201 | |
2150 | + SYS_GETDENTS64 = 202 | |
2151 | + SYS_PIVOT_ROOT = 203 | |
2152 | + SYS_FCNTL64 = 204 | |
2153 | + SYS_MADVISE = 205 | |
2154 | + SYS_MINCORE = 206 | |
2155 | + SYS_GETTID = 207 | |
2156 | + SYS_TKILL = 208 | |
2157 | + SYS_SETXATTR = 209 | |
2158 | + SYS_LSETXATTR = 210 | |
2159 | + SYS_FSETXATTR = 211 | |
2160 | + SYS_GETXATTR = 212 | |
2161 | + SYS_LGETXATTR = 213 | |
2162 | + SYS_FGETXATTR = 214 | |
2163 | + SYS_LISTXATTR = 215 | |
2164 | + SYS_LLISTXATTR = 216 | |
2165 | + SYS_FLISTXATTR = 217 | |
2166 | + SYS_REMOVEXATTR = 218 | |
2167 | + SYS_LREMOVEXATTR = 219 | |
2168 | + SYS_FREMOVEXATTR = 220 | |
2169 | + SYS_FUTEX = 221 | |
2170 | + SYS_SCHED_SETAFFINITY = 222 | |
2171 | + SYS_SCHED_GETAFFINITY = 223 | |
2172 | + SYS_TUXCALL = 225 | |
2173 | + SYS_SENDFILE64 = 226 | |
2174 | + SYS_IO_SETUP = 227 | |
2175 | + SYS_IO_DESTROY = 228 | |
2176 | + SYS_IO_GETEVENTS = 229 | |
2177 | + SYS_IO_SUBMIT = 230 | |
2178 | + SYS_IO_CANCEL = 231 | |
2179 | + SYS_SET_TID_ADDRESS = 232 | |
2180 | + SYS_FADVISE64 = 233 | |
2181 | + SYS_EXIT_GROUP = 234 | |
2182 | + SYS_LOOKUP_DCOOKIE = 235 | |
2183 | + SYS_EPOLL_CREATE = 236 | |
2184 | + SYS_EPOLL_CTL = 237 | |
2185 | + SYS_EPOLL_WAIT = 238 | |
2186 | + SYS_REMAP_FILE_PAGES = 239 | |
2187 | + SYS_TIMER_CREATE = 240 | |
2188 | + SYS_TIMER_SETTIME = 241 | |
2189 | + SYS_TIMER_GETTIME = 242 | |
2190 | + SYS_TIMER_GETOVERRUN = 243 | |
2191 | + SYS_TIMER_DELETE = 244 | |
2192 | + SYS_CLOCK_SETTIME = 245 | |
2193 | + SYS_CLOCK_GETTIME = 246 | |
2194 | + SYS_CLOCK_GETRES = 247 | |
2195 | + SYS_CLOCK_NANOSLEEP = 248 | |
2196 | + SYS_SWAPCONTEXT = 249 | |
2197 | + SYS_TGKILL = 250 | |
2198 | + SYS_UTIMES = 251 | |
2199 | + SYS_STATFS64 = 252 | |
2200 | + SYS_FSTATFS64 = 253 | |
2201 | + SYS_FADVISE64_64 = 254 | |
2202 | + SYS_RTAS = 255 | |
2203 | + SYS_SYS_DEBUG_SETCONTEXT = 256 | |
2204 | + SYS_MIGRATE_PAGES = 258 | |
2205 | + SYS_MBIND = 259 | |
2206 | + SYS_GET_MEMPOLICY = 260 | |
2207 | + SYS_SET_MEMPOLICY = 261 | |
2208 | + SYS_MQ_OPEN = 262 | |
2209 | + SYS_MQ_UNLINK = 263 | |
2210 | + SYS_MQ_TIMEDSEND = 264 | |
2211 | + SYS_MQ_TIMEDRECEIVE = 265 | |
2212 | + SYS_MQ_NOTIFY = 266 | |
2213 | + SYS_MQ_GETSETATTR = 267 | |
2214 | + SYS_KEXEC_LOAD = 268 | |
2215 | + SYS_ADD_KEY = 269 | |
2216 | + SYS_REQUEST_KEY = 270 | |
2217 | + SYS_KEYCTL = 271 | |
2218 | + SYS_WAITID = 272 | |
2219 | + SYS_IOPRIO_SET = 273 | |
2220 | + SYS_IOPRIO_GET = 274 | |
2221 | + SYS_INOTIFY_INIT = 275 | |
2222 | + SYS_INOTIFY_ADD_WATCH = 276 | |
2223 | + SYS_INOTIFY_RM_WATCH = 277 | |
2224 | + SYS_SPU_RUN = 278 | |
2225 | + SYS_SPU_CREATE = 279 | |
2226 | + SYS_PSELECT6 = 280 | |
2227 | + SYS_PPOLL = 281 | |
2228 | + SYS_UNSHARE = 282 | |
2229 | + SYS_SPLICE = 283 | |
2230 | + SYS_TEE = 284 | |
2231 | + SYS_VMSPLICE = 285 | |
2232 | + SYS_OPENAT = 286 | |
2233 | + SYS_MKDIRAT = 287 | |
2234 | + SYS_MKNODAT = 288 | |
2235 | + SYS_FCHOWNAT = 289 | |
2236 | + SYS_FUTIMESAT = 290 | |
2237 | + SYS_FSTATAT64 = 291 | |
2238 | + SYS_UNLINKAT = 292 | |
2239 | + SYS_RENAMEAT = 293 | |
2240 | + SYS_LINKAT = 294 | |
2241 | + SYS_SYMLINKAT = 295 | |
2242 | + SYS_READLINKAT = 296 | |
2243 | + SYS_FCHMODAT = 297 | |
2244 | + SYS_FACCESSAT = 298 | |
2245 | + SYS_GET_ROBUST_LIST = 299 | |
2246 | + SYS_SET_ROBUST_LIST = 300 | |
2247 | + SYS_MOVE_PAGES = 301 | |
2248 | + SYS_GETCPU = 302 | |
2249 | + SYS_EPOLL_PWAIT = 303 | |
2250 | + SYS_UTIMENSAT = 304 | |
2251 | + SYS_SIGNALFD = 305 | |
2252 | + SYS_TIMERFD_CREATE = 306 | |
2253 | + SYS_EVENTFD = 307 | |
2254 | + SYS_SYNC_FILE_RANGE2 = 308 | |
2255 | + SYS_FALLOCATE = 309 | |
2256 | + SYS_SUBPAGE_PROT = 310 | |
2257 | + SYS_TIMERFD_SETTIME = 311 | |
2258 | + SYS_TIMERFD_GETTIME = 312 | |
2259 | + SYS_SIGNALFD4 = 313 | |
2260 | + SYS_EVENTFD2 = 314 | |
2261 | + SYS_EPOLL_CREATE1 = 315 | |
2262 | + SYS_DUP3 = 316 | |
2263 | + SYS_PIPE2 = 317 | |
2264 | + SYS_INOTIFY_INIT1 = 318 | |
2265 | + SYS_PERF_EVENT_OPEN = 319 | |
2266 | + SYS_PREADV = 320 | |
2267 | + SYS_PWRITEV = 321 | |
2268 | + SYS_RT_TGSIGQUEUEINFO = 322 | |
2269 | + SYS_FANOTIFY_INIT = 323 | |
2270 | + SYS_FANOTIFY_MARK = 324 | |
2271 | + SYS_PRLIMIT64 = 325 | |
2272 | + SYS_SOCKET = 326 | |
2273 | + SYS_BIND = 327 | |
2274 | + SYS_CONNECT = 328 | |
2275 | + SYS_LISTEN = 329 | |
2276 | + SYS_ACCEPT = 330 | |
2277 | + SYS_GETSOCKNAME = 331 | |
2278 | + SYS_GETPEERNAME = 332 | |
2279 | + SYS_SOCKETPAIR = 333 | |
2280 | + SYS_SEND = 334 | |
2281 | + SYS_SENDTO = 335 | |
2282 | + SYS_RECV = 336 | |
2283 | + SYS_RECVFROM = 337 | |
2284 | + SYS_SHUTDOWN = 338 | |
2285 | + SYS_SETSOCKOPT = 339 | |
2286 | + SYS_GETSOCKOPT = 340 | |
2287 | + SYS_SENDMSG = 341 | |
2288 | + SYS_RECVMSG = 342 | |
2289 | + SYS_RECVMMSG = 343 | |
2290 | + SYS_ACCEPT4 = 344 | |
2291 | + SYS_NAME_TO_HANDLE_AT = 345 | |
2292 | + SYS_OPEN_BY_HANDLE_AT = 346 | |
2293 | + SYS_CLOCK_ADJTIME = 347 | |
2294 | + SYS_SYNCFS = 348 | |
2295 | + SYS_SENDMMSG = 349 | |
2296 | + SYS_SETNS = 350 | |
2297 | + SYS_PROCESS_VM_READV = 351 | |
2298 | + SYS_PROCESS_VM_WRITEV = 352 | |
2299 | + SYS_FINIT_MODULE = 353 | |
2300 | + SYS_KCMP = 354 | |
2301 | + SYS_SCHED_SETATTR = 355 | |
2302 | + SYS_SCHED_GETATTR = 356 | |
2303 | + SYS_RENAMEAT2 = 357 | |
2304 | + SYS_SECCOMP = 358 | |
2305 | + SYS_GETRANDOM = 359 | |
2306 | + SYS_MEMFD_CREATE = 360 | |
2307 | + SYS_BPF = 361 | |
2308 | + SYS_EXECVEAT = 362 | |
2309 | + SYS_SWITCH_ENDIAN = 363 | |
2310 | + SYS_USERFAULTFD = 364 | |
2311 | + SYS_MEMBARRIER = 365 | |
2312 | + SYS_MLOCK2 = 378 | |
2313 | + SYS_COPY_FILE_RANGE = 379 | |
2314 | + SYS_PREADV2 = 380 | |
2315 | + SYS_PWRITEV2 = 381 | |
2316 | + SYS_KEXEC_FILE_LOAD = 382 | |
2317 | + SYS_STATX = 383 | |
2318 | + SYS_PKEY_ALLOC = 384 | |
2319 | + SYS_PKEY_FREE = 385 | |
2320 | + SYS_PKEY_MPROTECT = 386 | |
2321 | + SYS_RSEQ = 387 | |
2322 | + SYS_IO_PGETEVENTS = 388 | |
2323 | + SYS_SEMGET = 393 | |
2324 | + SYS_SEMCTL = 394 | |
2325 | + SYS_SHMGET = 395 | |
2326 | + SYS_SHMCTL = 396 | |
2327 | + SYS_SHMAT = 397 | |
2328 | + SYS_SHMDT = 398 | |
2329 | + SYS_MSGGET = 399 | |
2330 | + SYS_MSGSND = 400 | |
2331 | + SYS_MSGRCV = 401 | |
2332 | + SYS_MSGCTL = 402 | |
2333 | + SYS_CLOCK_GETTIME64 = 403 | |
2334 | + SYS_CLOCK_SETTIME64 = 404 | |
2335 | + SYS_CLOCK_ADJTIME64 = 405 | |
2336 | + SYS_CLOCK_GETRES_TIME64 = 406 | |
2337 | + SYS_CLOCK_NANOSLEEP_TIME64 = 407 | |
2338 | + SYS_TIMER_GETTIME64 = 408 | |
2339 | + SYS_TIMER_SETTIME64 = 409 | |
2340 | + SYS_TIMERFD_GETTIME64 = 410 | |
2341 | + SYS_TIMERFD_SETTIME64 = 411 | |
2342 | + SYS_UTIMENSAT_TIME64 = 412 | |
2343 | + SYS_PSELECT6_TIME64 = 413 | |
2344 | + SYS_PPOLL_TIME64 = 414 | |
2345 | + SYS_IO_PGETEVENTS_TIME64 = 416 | |
2346 | + SYS_RECVMMSG_TIME64 = 417 | |
2347 | + SYS_MQ_TIMEDSEND_TIME64 = 418 | |
2348 | + SYS_MQ_TIMEDRECEIVE_TIME64 = 419 | |
2349 | + SYS_SEMTIMEDOP_TIME64 = 420 | |
2350 | + SYS_RT_SIGTIMEDWAIT_TIME64 = 421 | |
2351 | + SYS_FUTEX_TIME64 = 422 | |
2352 | + SYS_SCHED_RR_GET_INTERVAL_TIME64 = 423 | |
2353 | + SYS_PIDFD_SEND_SIGNAL = 424 | |
2354 | + SYS_IO_URING_SETUP = 425 | |
2355 | + SYS_IO_URING_ENTER = 426 | |
2356 | + SYS_IO_URING_REGISTER = 427 | |
2357 | + SYS_OPEN_TREE = 428 | |
2358 | + SYS_MOVE_MOUNT = 429 | |
2359 | + SYS_FSOPEN = 430 | |
2360 | + SYS_FSCONFIG = 431 | |
2361 | + SYS_FSMOUNT = 432 | |
2362 | + SYS_FSPICK = 433 | |
2363 | + SYS_PIDFD_OPEN = 434 | |
2364 | + SYS_CLONE3 = 435 | |
2365 | + SYS_CLOSE_RANGE = 436 | |
2366 | + SYS_OPENAT2 = 437 | |
2367 | + SYS_PIDFD_GETFD = 438 | |
2368 | + SYS_FACCESSAT2 = 439 | |
2369 | +) | |
2370 | diff --git a/unix/ztypes_linux_ppc.go b/unix/ztypes_linux_ppc.go | |
2371 | new file mode 100644 | |
2372 | index 0000000..7f50160 | |
2373 | --- /dev/null | |
2374 | +++ b/unix/ztypes_linux_ppc.go | |
2375 | @@ -0,0 +1,609 @@ | |
2376 | +// cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go | |
2377 | +// Code generated by the command above; see README.md. DO NOT EDIT. | |
2378 | + | |
2379 | +// +build ppc,linux | |
2380 | + | |
2381 | +package unix | |
2382 | + | |
2383 | +const ( | |
2384 | + SizeofPtr = 0x4 | |
2385 | + SizeofLong = 0x4 | |
2386 | +) | |
2387 | + | |
2388 | +type ( | |
2389 | + _C_long int32 | |
2390 | +) | |
2391 | + | |
2392 | +type Timespec struct { | |
2393 | + Sec int32 | |
2394 | + Nsec int32 | |
2395 | +} | |
2396 | + | |
2397 | +type Timeval struct { | |
2398 | + Sec int32 | |
2399 | + Usec int32 | |
2400 | +} | |
2401 | + | |
2402 | +type Timex struct { | |
2403 | + Modes uint32 | |
2404 | + Offset int32 | |
2405 | + Freq int32 | |
2406 | + Maxerror int32 | |
2407 | + Esterror int32 | |
2408 | + Status int32 | |
2409 | + Constant int32 | |
2410 | + Precision int32 | |
2411 | + Tolerance int32 | |
2412 | + Time Timeval | |
2413 | + Tick int32 | |
2414 | + Ppsfreq int32 | |
2415 | + Jitter int32 | |
2416 | + Shift int32 | |
2417 | + Stabil int32 | |
2418 | + Jitcnt int32 | |
2419 | + Calcnt int32 | |
2420 | + Errcnt int32 | |
2421 | + Stbcnt int32 | |
2422 | + Tai int32 | |
2423 | + _ [44]byte | |
2424 | +} | |
2425 | + | |
2426 | +type Time_t int32 | |
2427 | + | |
2428 | +type Tms struct { | |
2429 | + Utime int32 | |
2430 | + Stime int32 | |
2431 | + Cutime int32 | |
2432 | + Cstime int32 | |
2433 | +} | |
2434 | + | |
2435 | +type Utimbuf struct { | |
2436 | + Actime int32 | |
2437 | + Modtime int32 | |
2438 | +} | |
2439 | + | |
2440 | +type Rusage struct { | |
2441 | + Utime Timeval | |
2442 | + Stime Timeval | |
2443 | + Maxrss int32 | |
2444 | + Ixrss int32 | |
2445 | + Idrss int32 | |
2446 | + Isrss int32 | |
2447 | + Minflt int32 | |
2448 | + Majflt int32 | |
2449 | + Nswap int32 | |
2450 | + Inblock int32 | |
2451 | + Oublock int32 | |
2452 | + Msgsnd int32 | |
2453 | + Msgrcv int32 | |
2454 | + Nsignals int32 | |
2455 | + Nvcsw int32 | |
2456 | + Nivcsw int32 | |
2457 | +} | |
2458 | + | |
2459 | +type Stat_t struct { | |
2460 | + Dev uint64 | |
2461 | + Ino uint64 | |
2462 | + Mode uint32 | |
2463 | + Nlink uint32 | |
2464 | + Uid uint32 | |
2465 | + Gid uint32 | |
2466 | + Rdev uint64 | |
2467 | + _ uint16 | |
2468 | + _ [4]byte | |
2469 | + Size int64 | |
2470 | + Blksize int32 | |
2471 | + _ [4]byte | |
2472 | + Blocks int64 | |
2473 | + Atim Timespec | |
2474 | + Mtim Timespec | |
2475 | + Ctim Timespec | |
2476 | + _ uint32 | |
2477 | + _ uint32 | |
2478 | +} | |
2479 | + | |
2480 | +type Dirent struct { | |
2481 | + Ino uint64 | |
2482 | + Off int64 | |
2483 | + Reclen uint16 | |
2484 | + Type uint8 | |
2485 | + Name [256]uint8 | |
2486 | + _ [5]byte | |
2487 | +} | |
2488 | + | |
2489 | +type Flock_t struct { | |
2490 | + Type int16 | |
2491 | + Whence int16 | |
2492 | + _ [4]byte | |
2493 | + Start int64 | |
2494 | + Len int64 | |
2495 | + Pid int32 | |
2496 | + _ [4]byte | |
2497 | +} | |
2498 | + | |
2499 | +type DmNameList struct { | |
2500 | + Dev uint64 | |
2501 | + Next uint32 | |
2502 | + Name [0]byte | |
2503 | + _ [4]byte | |
2504 | +} | |
2505 | + | |
2506 | +const ( | |
2507 | + FADV_DONTNEED = 0x4 | |
2508 | + FADV_NOREUSE = 0x5 | |
2509 | +) | |
2510 | + | |
2511 | +type RawSockaddr struct { | |
2512 | + Family uint16 | |
2513 | + Data [14]uint8 | |
2514 | +} | |
2515 | + | |
2516 | +type RawSockaddrAny struct { | |
2517 | + Addr RawSockaddr | |
2518 | + Pad [96]uint8 | |
2519 | +} | |
2520 | + | |
2521 | +type Iovec struct { | |
2522 | + Base *byte | |
2523 | + Len uint32 | |
2524 | +} | |
2525 | + | |
2526 | +type Msghdr struct { | |
2527 | + Name *byte | |
2528 | + Namelen uint32 | |
2529 | + Iov *Iovec | |
2530 | + Iovlen uint32 | |
2531 | + Control *byte | |
2532 | + Controllen uint32 | |
2533 | + Flags int32 | |
2534 | +} | |
2535 | + | |
2536 | +type Cmsghdr struct { | |
2537 | + Len uint32 | |
2538 | + Level int32 | |
2539 | + Type int32 | |
2540 | +} | |
2541 | + | |
2542 | +const ( | |
2543 | + SizeofIovec = 0x8 | |
2544 | + SizeofMsghdr = 0x1c | |
2545 | + SizeofCmsghdr = 0xc | |
2546 | +) | |
2547 | + | |
2548 | +const ( | |
2549 | + SizeofSockFprog = 0x8 | |
2550 | +) | |
2551 | + | |
2552 | +type PtraceRegs struct { | |
2553 | + Gpr [32]uint32 | |
2554 | + Nip uint32 | |
2555 | + Msr uint32 | |
2556 | + Orig_gpr3 uint32 | |
2557 | + Ctr uint32 | |
2558 | + Link uint32 | |
2559 | + Xer uint32 | |
2560 | + Ccr uint32 | |
2561 | + Mq uint32 | |
2562 | + Trap uint32 | |
2563 | + Dar uint32 | |
2564 | + Dsisr uint32 | |
2565 | + Result uint32 | |
2566 | +} | |
2567 | + | |
2568 | +type FdSet struct { | |
2569 | + Bits [32]int32 | |
2570 | +} | |
2571 | + | |
2572 | +type Sysinfo_t struct { | |
2573 | + Uptime int32 | |
2574 | + Loads [3]uint32 | |
2575 | + Totalram uint32 | |
2576 | + Freeram uint32 | |
2577 | + Sharedram uint32 | |
2578 | + Bufferram uint32 | |
2579 | + Totalswap uint32 | |
2580 | + Freeswap uint32 | |
2581 | + Procs uint16 | |
2582 | + Pad uint16 | |
2583 | + Totalhigh uint32 | |
2584 | + Freehigh uint32 | |
2585 | + Unit uint32 | |
2586 | + _ [8]uint8 | |
2587 | +} | |
2588 | + | |
2589 | +type Ustat_t struct { | |
2590 | + Tfree int32 | |
2591 | + Tinode uint32 | |
2592 | + Fname [6]uint8 | |
2593 | + Fpack [6]uint8 | |
2594 | +} | |
2595 | + | |
2596 | +type EpollEvent struct { | |
2597 | + Events uint32 | |
2598 | + Fd int32 | |
2599 | + Pad int32 | |
2600 | +} | |
2601 | + | |
2602 | +const ( | |
2603 | + POLLRDHUP = 0x2000 | |
2604 | +) | |
2605 | + | |
2606 | +type Sigset_t struct { | |
2607 | + Val [32]uint32 | |
2608 | +} | |
2609 | + | |
2610 | +const _C__NSIG = 0x41 | |
2611 | + | |
2612 | +type Termios struct { | |
2613 | + Iflag uint32 | |
2614 | + Oflag uint32 | |
2615 | + Cflag uint32 | |
2616 | + Lflag uint32 | |
2617 | + Cc [19]uint8 | |
2618 | + Line uint8 | |
2619 | + Ispeed uint32 | |
2620 | + Ospeed uint32 | |
2621 | +} | |
2622 | + | |
2623 | +type Taskstats struct { | |
2624 | + Version uint16 | |
2625 | + Ac_exitcode uint32 | |
2626 | + Ac_flag uint8 | |
2627 | + Ac_nice uint8 | |
2628 | + _ [4]byte | |
2629 | + Cpu_count uint64 | |
2630 | + Cpu_delay_total uint64 | |
2631 | + Blkio_count uint64 | |
2632 | + Blkio_delay_total uint64 | |
2633 | + Swapin_count uint64 | |
2634 | + Swapin_delay_total uint64 | |
2635 | + Cpu_run_real_total uint64 | |
2636 | + Cpu_run_virtual_total uint64 | |
2637 | + Ac_comm [32]uint8 | |
2638 | + Ac_sched uint8 | |
2639 | + Ac_pad [3]uint8 | |
2640 | + _ [4]byte | |
2641 | + Ac_uid uint32 | |
2642 | + Ac_gid uint32 | |
2643 | + Ac_pid uint32 | |
2644 | + Ac_ppid uint32 | |
2645 | + Ac_btime uint32 | |
2646 | + _ [4]byte | |
2647 | + Ac_etime uint64 | |
2648 | + Ac_utime uint64 | |
2649 | + Ac_stime uint64 | |
2650 | + Ac_minflt uint64 | |
2651 | + Ac_majflt uint64 | |
2652 | + Coremem uint64 | |
2653 | + Virtmem uint64 | |
2654 | + Hiwater_rss uint64 | |
2655 | + Hiwater_vm uint64 | |
2656 | + Read_char uint64 | |
2657 | + Write_char uint64 | |
2658 | + Read_syscalls uint64 | |
2659 | + Write_syscalls uint64 | |
2660 | + Read_bytes uint64 | |
2661 | + Write_bytes uint64 | |
2662 | + Cancelled_write_bytes uint64 | |
2663 | + Nvcsw uint64 | |
2664 | + Nivcsw uint64 | |
2665 | + Ac_utimescaled uint64 | |
2666 | + Ac_stimescaled uint64 | |
2667 | + Cpu_scaled_run_real_total uint64 | |
2668 | + Freepages_count uint64 | |
2669 | + Freepages_delay_total uint64 | |
2670 | + Thrashing_count uint64 | |
2671 | + Thrashing_delay_total uint64 | |
2672 | + Ac_btime64 uint64 | |
2673 | +} | |
2674 | + | |
2675 | +type cpuMask uint32 | |
2676 | + | |
2677 | +const ( | |
2678 | + _NCPUBITS = 0x20 | |
2679 | +) | |
2680 | + | |
2681 | +const ( | |
2682 | + CBitFieldMaskBit0 = 0x8000000000000000 | |
2683 | + CBitFieldMaskBit1 = 0x4000000000000000 | |
2684 | + CBitFieldMaskBit2 = 0x2000000000000000 | |
2685 | + CBitFieldMaskBit3 = 0x1000000000000000 | |
2686 | + CBitFieldMaskBit4 = 0x800000000000000 | |
2687 | + CBitFieldMaskBit5 = 0x400000000000000 | |
2688 | + CBitFieldMaskBit6 = 0x200000000000000 | |
2689 | + CBitFieldMaskBit7 = 0x100000000000000 | |
2690 | + CBitFieldMaskBit8 = 0x80000000000000 | |
2691 | + CBitFieldMaskBit9 = 0x40000000000000 | |
2692 | + CBitFieldMaskBit10 = 0x20000000000000 | |
2693 | + CBitFieldMaskBit11 = 0x10000000000000 | |
2694 | + CBitFieldMaskBit12 = 0x8000000000000 | |
2695 | + CBitFieldMaskBit13 = 0x4000000000000 | |
2696 | + CBitFieldMaskBit14 = 0x2000000000000 | |
2697 | + CBitFieldMaskBit15 = 0x1000000000000 | |
2698 | + CBitFieldMaskBit16 = 0x800000000000 | |
2699 | + CBitFieldMaskBit17 = 0x400000000000 | |
2700 | + CBitFieldMaskBit18 = 0x200000000000 | |
2701 | + CBitFieldMaskBit19 = 0x100000000000 | |
2702 | + CBitFieldMaskBit20 = 0x80000000000 | |
2703 | + CBitFieldMaskBit21 = 0x40000000000 | |
2704 | + CBitFieldMaskBit22 = 0x20000000000 | |
2705 | + CBitFieldMaskBit23 = 0x10000000000 | |
2706 | + CBitFieldMaskBit24 = 0x8000000000 | |
2707 | + CBitFieldMaskBit25 = 0x4000000000 | |
2708 | + CBitFieldMaskBit26 = 0x2000000000 | |
2709 | + CBitFieldMaskBit27 = 0x1000000000 | |
2710 | + CBitFieldMaskBit28 = 0x800000000 | |
2711 | + CBitFieldMaskBit29 = 0x400000000 | |
2712 | + CBitFieldMaskBit30 = 0x200000000 | |
2713 | + CBitFieldMaskBit31 = 0x100000000 | |
2714 | + CBitFieldMaskBit32 = 0x80000000 | |
2715 | + CBitFieldMaskBit33 = 0x40000000 | |
2716 | + CBitFieldMaskBit34 = 0x20000000 | |
2717 | + CBitFieldMaskBit35 = 0x10000000 | |
2718 | + CBitFieldMaskBit36 = 0x8000000 | |
2719 | + CBitFieldMaskBit37 = 0x4000000 | |
2720 | + CBitFieldMaskBit38 = 0x2000000 | |
2721 | + CBitFieldMaskBit39 = 0x1000000 | |
2722 | + CBitFieldMaskBit40 = 0x800000 | |
2723 | + CBitFieldMaskBit41 = 0x400000 | |
2724 | + CBitFieldMaskBit42 = 0x200000 | |
2725 | + CBitFieldMaskBit43 = 0x100000 | |
2726 | + CBitFieldMaskBit44 = 0x80000 | |
2727 | + CBitFieldMaskBit45 = 0x40000 | |
2728 | + CBitFieldMaskBit46 = 0x20000 | |
2729 | + CBitFieldMaskBit47 = 0x10000 | |
2730 | + CBitFieldMaskBit48 = 0x8000 | |
2731 | + CBitFieldMaskBit49 = 0x4000 | |
2732 | + CBitFieldMaskBit50 = 0x2000 | |
2733 | + CBitFieldMaskBit51 = 0x1000 | |
2734 | + CBitFieldMaskBit52 = 0x800 | |
2735 | + CBitFieldMaskBit53 = 0x400 | |
2736 | + CBitFieldMaskBit54 = 0x200 | |
2737 | + CBitFieldMaskBit55 = 0x100 | |
2738 | + CBitFieldMaskBit56 = 0x80 | |
2739 | + CBitFieldMaskBit57 = 0x40 | |
2740 | + CBitFieldMaskBit58 = 0x20 | |
2741 | + CBitFieldMaskBit59 = 0x10 | |
2742 | + CBitFieldMaskBit60 = 0x8 | |
2743 | + CBitFieldMaskBit61 = 0x4 | |
2744 | + CBitFieldMaskBit62 = 0x2 | |
2745 | + CBitFieldMaskBit63 = 0x1 | |
2746 | +) | |
2747 | + | |
2748 | +type SockaddrStorage struct { | |
2749 | + Family uint16 | |
2750 | + _ [122]uint8 | |
2751 | + _ uint32 | |
2752 | +} | |
2753 | + | |
2754 | +type HDGeometry struct { | |
2755 | + Heads uint8 | |
2756 | + Sectors uint8 | |
2757 | + Cylinders uint16 | |
2758 | + Start uint32 | |
2759 | +} | |
2760 | + | |
2761 | +type Statfs_t struct { | |
2762 | + Type int32 | |
2763 | + Bsize int32 | |
2764 | + Blocks uint64 | |
2765 | + Bfree uint64 | |
2766 | + Bavail uint64 | |
2767 | + Files uint64 | |
2768 | + Ffree uint64 | |
2769 | + Fsid Fsid | |
2770 | + Namelen int32 | |
2771 | + Frsize int32 | |
2772 | + Flags int32 | |
2773 | + Spare [4]int32 | |
2774 | + _ [4]byte | |
2775 | +} | |
2776 | + | |
2777 | +type TpacketHdr struct { | |
2778 | + Status uint32 | |
2779 | + Len uint32 | |
2780 | + Snaplen uint32 | |
2781 | + Mac uint16 | |
2782 | + Net uint16 | |
2783 | + Sec uint32 | |
2784 | + Usec uint32 | |
2785 | +} | |
2786 | + | |
2787 | +const ( | |
2788 | + SizeofTpacketHdr = 0x18 | |
2789 | +) | |
2790 | + | |
2791 | +type RTCPLLInfo struct { | |
2792 | + Ctrl int32 | |
2793 | + Value int32 | |
2794 | + Max int32 | |
2795 | + Min int32 | |
2796 | + Posmult int32 | |
2797 | + Negmult int32 | |
2798 | + Clock int32 | |
2799 | +} | |
2800 | + | |
2801 | +type BlkpgPartition struct { | |
2802 | + Start int64 | |
2803 | + Length int64 | |
2804 | + Pno int32 | |
2805 | + Devname [64]uint8 | |
2806 | + Volname [64]uint8 | |
2807 | + _ [4]byte | |
2808 | +} | |
2809 | + | |
2810 | +const ( | |
2811 | + BLKPG = 0x20001269 | |
2812 | +) | |
2813 | + | |
2814 | +type XDPUmemReg struct { | |
2815 | + Addr uint64 | |
2816 | + Len uint64 | |
2817 | + Size uint32 | |
2818 | + Headroom uint32 | |
2819 | + Flags uint32 | |
2820 | + _ [4]byte | |
2821 | +} | |
2822 | + | |
2823 | +type CryptoUserAlg struct { | |
2824 | + Name [64]uint8 | |
2825 | + Driver_name [64]uint8 | |
2826 | + Module_name [64]uint8 | |
2827 | + Type uint32 | |
2828 | + Mask uint32 | |
2829 | + Refcnt uint32 | |
2830 | + Flags uint32 | |
2831 | +} | |
2832 | + | |
2833 | +type CryptoStatAEAD struct { | |
2834 | + Type [64]uint8 | |
2835 | + Encrypt_cnt uint64 | |
2836 | + Encrypt_tlen uint64 | |
2837 | + Decrypt_cnt uint64 | |
2838 | + Decrypt_tlen uint64 | |
2839 | + Err_cnt uint64 | |
2840 | +} | |
2841 | + | |
2842 | +type CryptoStatAKCipher struct { | |
2843 | + Type [64]uint8 | |
2844 | + Encrypt_cnt uint64 | |
2845 | + Encrypt_tlen uint64 | |
2846 | + Decrypt_cnt uint64 | |
2847 | + Decrypt_tlen uint64 | |
2848 | + Verify_cnt uint64 | |
2849 | + Sign_cnt uint64 | |
2850 | + Err_cnt uint64 | |
2851 | +} | |
2852 | + | |
2853 | +type CryptoStatCipher struct { | |
2854 | + Type [64]uint8 | |
2855 | + Encrypt_cnt uint64 | |
2856 | + Encrypt_tlen uint64 | |
2857 | + Decrypt_cnt uint64 | |
2858 | + Decrypt_tlen uint64 | |
2859 | + Err_cnt uint64 | |
2860 | +} | |
2861 | + | |
2862 | +type CryptoStatCompress struct { | |
2863 | + Type [64]uint8 | |
2864 | + Compress_cnt uint64 | |
2865 | + Compress_tlen uint64 | |
2866 | + Decompress_cnt uint64 | |
2867 | + Decompress_tlen uint64 | |
2868 | + Err_cnt uint64 | |
2869 | +} | |
2870 | + | |
2871 | +type CryptoStatHash struct { | |
2872 | + Type [64]uint8 | |
2873 | + Hash_cnt uint64 | |
2874 | + Hash_tlen uint64 | |
2875 | + Err_cnt uint64 | |
2876 | +} | |
2877 | + | |
2878 | +type CryptoStatKPP struct { | |
2879 | + Type [64]uint8 | |
2880 | + Setsecret_cnt uint64 | |
2881 | + Generate_public_key_cnt uint64 | |
2882 | + Compute_shared_secret_cnt uint64 | |
2883 | + Err_cnt uint64 | |
2884 | +} | |
2885 | + | |
2886 | +type CryptoStatRNG struct { | |
2887 | + Type [64]uint8 | |
2888 | + Generate_cnt uint64 | |
2889 | + Generate_tlen uint64 | |
2890 | + Seed_cnt uint64 | |
2891 | + Err_cnt uint64 | |
2892 | +} | |
2893 | + | |
2894 | +type CryptoStatLarval struct { | |
2895 | + Type [64]uint8 | |
2896 | +} | |
2897 | + | |
2898 | +type CryptoReportLarval struct { | |
2899 | + Type [64]uint8 | |
2900 | +} | |
2901 | + | |
2902 | +type CryptoReportHash struct { | |
2903 | + Type [64]uint8 | |
2904 | + Blocksize uint32 | |
2905 | + Digestsize uint32 | |
2906 | +} | |
2907 | + | |
2908 | +type CryptoReportCipher struct { | |
2909 | + Type [64]uint8 | |
2910 | + Blocksize uint32 | |
2911 | + Min_keysize uint32 | |
2912 | + Max_keysize uint32 | |
2913 | +} | |
2914 | + | |
2915 | +type CryptoReportBlkCipher struct { | |
2916 | + Type [64]uint8 | |
2917 | + Geniv [64]uint8 | |
2918 | + Blocksize uint32 | |
2919 | + Min_keysize uint32 | |
2920 | + Max_keysize uint32 | |
2921 | + Ivsize uint32 | |
2922 | +} | |
2923 | + | |
2924 | +type CryptoReportAEAD struct { | |
2925 | + Type [64]uint8 | |
2926 | + Geniv [64]uint8 | |
2927 | + Blocksize uint32 | |
2928 | + Maxauthsize uint32 | |
2929 | + Ivsize uint32 | |
2930 | +} | |
2931 | + | |
2932 | +type CryptoReportComp struct { | |
2933 | + Type [64]uint8 | |
2934 | +} | |
2935 | + | |
2936 | +type CryptoReportRNG struct { | |
2937 | + Type [64]uint8 | |
2938 | + Seedsize uint32 | |
2939 | +} | |
2940 | + | |
2941 | +type CryptoReportAKCipher struct { | |
2942 | + Type [64]uint8 | |
2943 | +} | |
2944 | + | |
2945 | +type CryptoReportKPP struct { | |
2946 | + Type [64]uint8 | |
2947 | +} | |
2948 | + | |
2949 | +type CryptoReportAcomp struct { | |
2950 | + Type [64]uint8 | |
2951 | +} | |
2952 | + | |
2953 | +type LoopInfo struct { | |
2954 | + Number int32 | |
2955 | + Device uint32 | |
2956 | + Inode uint32 | |
2957 | + Rdevice uint32 | |
2958 | + Offset int32 | |
2959 | + Encrypt_type int32 | |
2960 | + Encrypt_key_size int32 | |
2961 | + Flags int32 | |
2962 | + Name [64]uint8 | |
2963 | + Encrypt_key [32]uint8 | |
2964 | + Init [2]uint32 | |
2965 | + Reserved [4]uint8 | |
2966 | +} | |
2967 | + | |
2968 | +type TIPCSubscr struct { | |
2969 | + Seq TIPCServiceRange | |
2970 | + Timeout uint32 | |
2971 | + Filter uint32 | |
2972 | + Handle [8]uint8 | |
2973 | +} | |
2974 | + | |
2975 | +type TIPCSIOCLNReq struct { | |
2976 | + Peer uint32 | |
2977 | + Id uint32 | |
2978 | + Linkname [68]uint8 | |
2979 | +} | |
2980 | + | |
2981 | +type TIPCSIOCNodeIDReq struct { | |
2982 | + Peer uint32 | |
2983 | + Id [16]uint8 | |
2984 | +} |