Ready to release 0.6.0
[aya.git] / vendor / golang.org / x / sys / unix / zsyscall_linux.go
blob293cf36804e957c6a29b3df075fa8eba03e95081
1 // Code generated by mkmerge; DO NOT EDIT.
3 //go:build linux
4 // +build linux
6 package unix
8 import (
9 "syscall"
10 "unsafe"
13 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
15 func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
16 r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
17 fd = int(r0)
18 if e1 != 0 {
19 err = errnoErr(e1)
21 return
24 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
26 func fchmodat(dirfd int, path string, mode uint32) (err error) {
27 var _p0 *byte
28 _p0, err = BytePtrFromString(path)
29 if err != nil {
30 return
32 _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
33 if e1 != 0 {
34 err = errnoErr(e1)
36 return
39 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
41 func ioctl(fd int, req uint, arg uintptr) (err error) {
42 _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
43 if e1 != 0 {
44 err = errnoErr(e1)
46 return
49 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
51 func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
52 _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
53 if e1 != 0 {
54 err = errnoErr(e1)
56 return
59 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
61 func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) {
62 var _p0 *byte
63 _p0, err = BytePtrFromString(oldpath)
64 if err != nil {
65 return
67 var _p1 *byte
68 _p1, err = BytePtrFromString(newpath)
69 if err != nil {
70 return
72 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
73 if e1 != 0 {
74 err = errnoErr(e1)
76 return
79 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
81 func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
82 var _p0 *byte
83 _p0, err = BytePtrFromString(path)
84 if err != nil {
85 return
87 r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0)
88 fd = int(r0)
89 if e1 != 0 {
90 err = errnoErr(e1)
92 return
95 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
97 func openat2(dirfd int, path string, open_how *OpenHow, size int) (fd int, err error) {
98 var _p0 *byte
99 _p0, err = BytePtrFromString(path)
100 if err != nil {
101 return
103 r0, _, e1 := Syscall6(SYS_OPENAT2, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(open_how)), uintptr(size), 0, 0)
104 fd = int(r0)
105 if e1 != 0 {
106 err = errnoErr(e1)
108 return
111 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
113 func pipe2(p *[2]_C_int, flags int) (err error) {
114 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
115 if e1 != 0 {
116 err = errnoErr(e1)
118 return
121 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
123 func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
124 r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0)
125 n = int(r0)
126 if e1 != 0 {
127 err = errnoErr(e1)
129 return
132 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
134 func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
135 var _p0 *byte
136 _p0, err = BytePtrFromString(path)
137 if err != nil {
138 return
140 var _p1 unsafe.Pointer
141 if len(buf) > 0 {
142 _p1 = unsafe.Pointer(&buf[0])
143 } else {
144 _p1 = unsafe.Pointer(&_zero)
146 r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
147 n = int(r0)
148 if e1 != 0 {
149 err = errnoErr(e1)
151 return
154 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
156 func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
157 var _p0 *byte
158 _p0, err = BytePtrFromString(oldpath)
159 if err != nil {
160 return
162 var _p1 *byte
163 _p1, err = BytePtrFromString(newpath)
164 if err != nil {
165 return
167 _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
168 if e1 != 0 {
169 err = errnoErr(e1)
171 return
174 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
176 func Unlinkat(dirfd int, path string, flags int) (err error) {
177 var _p0 *byte
178 _p0, err = BytePtrFromString(path)
179 if err != nil {
180 return
182 _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
183 if e1 != 0 {
184 err = errnoErr(e1)
186 return
189 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
191 func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
192 var _p0 *byte
193 _p0, err = BytePtrFromString(path)
194 if err != nil {
195 return
197 _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
198 if e1 != 0 {
199 err = errnoErr(e1)
201 return
204 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
206 func Getcwd(buf []byte) (n int, err error) {
207 var _p0 unsafe.Pointer
208 if len(buf) > 0 {
209 _p0 = unsafe.Pointer(&buf[0])
210 } else {
211 _p0 = unsafe.Pointer(&_zero)
213 r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0)
214 n = int(r0)
215 if e1 != 0 {
216 err = errnoErr(e1)
218 return
221 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
223 func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
224 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
225 wpid = int(r0)
226 if e1 != 0 {
227 err = errnoErr(e1)
229 return
232 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
234 func Waitid(idType int, id int, info *Siginfo, options int, rusage *Rusage) (err error) {
235 _, _, e1 := Syscall6(SYS_WAITID, uintptr(idType), uintptr(id), uintptr(unsafe.Pointer(info)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0)
236 if e1 != 0 {
237 err = errnoErr(e1)
239 return
242 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
244 func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) {
245 r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
246 ret = int(r0)
247 if e1 != 0 {
248 err = errnoErr(e1)
250 return
253 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
255 func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) {
256 var _p0 unsafe.Pointer
257 if len(buf) > 0 {
258 _p0 = unsafe.Pointer(&buf[0])
259 } else {
260 _p0 = unsafe.Pointer(&_zero)
262 r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0)
263 ret = int(r0)
264 if e1 != 0 {
265 err = errnoErr(e1)
267 return
270 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
272 func keyctlJoin(cmd int, arg2 string) (ret int, err error) {
273 var _p0 *byte
274 _p0, err = BytePtrFromString(arg2)
275 if err != nil {
276 return
278 r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0)
279 ret = int(r0)
280 if e1 != 0 {
281 err = errnoErr(e1)
283 return
286 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
288 func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) {
289 var _p0 *byte
290 _p0, err = BytePtrFromString(arg3)
291 if err != nil {
292 return
294 var _p1 *byte
295 _p1, err = BytePtrFromString(arg4)
296 if err != nil {
297 return
299 r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0)
300 ret = int(r0)
301 if e1 != 0 {
302 err = errnoErr(e1)
304 return
307 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
309 func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) {
310 var _p0 unsafe.Pointer
311 if len(payload) > 0 {
312 _p0 = unsafe.Pointer(&payload[0])
313 } else {
314 _p0 = unsafe.Pointer(&_zero)
316 _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0)
317 if e1 != 0 {
318 err = errnoErr(e1)
320 return
323 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
325 func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
326 var _p0 unsafe.Pointer
327 if len(buf) > 0 {
328 _p0 = unsafe.Pointer(&buf[0])
329 } else {
330 _p0 = unsafe.Pointer(&_zero)
332 r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0)
333 ret = int(r0)
334 if e1 != 0 {
335 err = errnoErr(e1)
337 return
340 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
342 func keyctlRestrictKeyringByType(cmd int, arg2 int, keyType string, restriction string) (err error) {
343 var _p0 *byte
344 _p0, err = BytePtrFromString(keyType)
345 if err != nil {
346 return
348 var _p1 *byte
349 _p1, err = BytePtrFromString(restriction)
350 if err != nil {
351 return
353 _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0)
354 if e1 != 0 {
355 err = errnoErr(e1)
357 return
360 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
362 func keyctlRestrictKeyring(cmd int, arg2 int) (err error) {
363 _, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), 0)
364 if e1 != 0 {
365 err = errnoErr(e1)
367 return
370 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
372 func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
373 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
374 if e1 != 0 {
375 err = errnoErr(e1)
377 return
380 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
382 func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) {
383 var _p0 *byte
384 _p0, err = BytePtrFromString(arg)
385 if err != nil {
386 return
388 _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0)
389 if e1 != 0 {
390 err = errnoErr(e1)
392 return
395 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
397 func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) {
398 var _p0 *byte
399 _p0, err = BytePtrFromString(source)
400 if err != nil {
401 return
403 var _p1 *byte
404 _p1, err = BytePtrFromString(target)
405 if err != nil {
406 return
408 var _p2 *byte
409 _p2, err = BytePtrFromString(fstype)
410 if err != nil {
411 return
413 _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0)
414 if e1 != 0 {
415 err = errnoErr(e1)
417 return
420 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
422 func mountSetattr(dirfd int, pathname string, flags uint, attr *MountAttr, size uintptr) (err error) {
423 var _p0 *byte
424 _p0, err = BytePtrFromString(pathname)
425 if err != nil {
426 return
428 _, _, e1 := Syscall6(SYS_MOUNT_SETATTR, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(unsafe.Pointer(attr)), uintptr(size), 0)
429 if e1 != 0 {
430 err = errnoErr(e1)
432 return
435 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
437 func Acct(path string) (err error) {
438 var _p0 *byte
439 _p0, err = BytePtrFromString(path)
440 if err != nil {
441 return
443 _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0)
444 if e1 != 0 {
445 err = errnoErr(e1)
447 return
450 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
452 func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) {
453 var _p0 *byte
454 _p0, err = BytePtrFromString(keyType)
455 if err != nil {
456 return
458 var _p1 *byte
459 _p1, err = BytePtrFromString(description)
460 if err != nil {
461 return
463 var _p2 unsafe.Pointer
464 if len(payload) > 0 {
465 _p2 = unsafe.Pointer(&payload[0])
466 } else {
467 _p2 = unsafe.Pointer(&_zero)
469 r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0)
470 id = int(r0)
471 if e1 != 0 {
472 err = errnoErr(e1)
474 return
477 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
479 func Adjtimex(buf *Timex) (state int, err error) {
480 r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
481 state = int(r0)
482 if e1 != 0 {
483 err = errnoErr(e1)
485 return
488 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
490 func Capget(hdr *CapUserHeader, data *CapUserData) (err error) {
491 _, _, e1 := RawSyscall(SYS_CAPGET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
492 if e1 != 0 {
493 err = errnoErr(e1)
495 return
498 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
500 func Capset(hdr *CapUserHeader, data *CapUserData) (err error) {
501 _, _, e1 := RawSyscall(SYS_CAPSET, uintptr(unsafe.Pointer(hdr)), uintptr(unsafe.Pointer(data)), 0)
502 if e1 != 0 {
503 err = errnoErr(e1)
505 return
508 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
510 func Chdir(path string) (err error) {
511 var _p0 *byte
512 _p0, err = BytePtrFromString(path)
513 if err != nil {
514 return
516 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
517 if e1 != 0 {
518 err = errnoErr(e1)
520 return
523 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
525 func Chroot(path string) (err error) {
526 var _p0 *byte
527 _p0, err = BytePtrFromString(path)
528 if err != nil {
529 return
531 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
532 if e1 != 0 {
533 err = errnoErr(e1)
535 return
538 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
540 func ClockGetres(clockid int32, res *Timespec) (err error) {
541 _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
542 if e1 != 0 {
543 err = errnoErr(e1)
545 return
548 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
550 func ClockGettime(clockid int32, time *Timespec) (err error) {
551 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
552 if e1 != 0 {
553 err = errnoErr(e1)
555 return
558 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
560 func ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) {
561 _, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 0, 0)
562 if e1 != 0 {
563 err = errnoErr(e1)
565 return
568 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
570 func Close(fd int) (err error) {
571 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
572 if e1 != 0 {
573 err = errnoErr(e1)
575 return
578 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
580 func CloseRange(first uint, last uint, flags uint) (err error) {
581 _, _, e1 := Syscall(SYS_CLOSE_RANGE, uintptr(first), uintptr(last), uintptr(flags))
582 if e1 != 0 {
583 err = errnoErr(e1)
585 return
588 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
590 func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) {
591 r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
592 n = int(r0)
593 if e1 != 0 {
594 err = errnoErr(e1)
596 return
599 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
601 func DeleteModule(name string, flags int) (err error) {
602 var _p0 *byte
603 _p0, err = BytePtrFromString(name)
604 if err != nil {
605 return
607 _, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
608 if e1 != 0 {
609 err = errnoErr(e1)
611 return
614 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
616 func Dup(oldfd int) (fd int, err error) {
617 r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
618 fd = int(r0)
619 if e1 != 0 {
620 err = errnoErr(e1)
622 return
625 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
627 func Dup3(oldfd int, newfd int, flags int) (err error) {
628 _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags))
629 if e1 != 0 {
630 err = errnoErr(e1)
632 return
635 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
637 func EpollCreate1(flag int) (fd int, err error) {
638 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
639 fd = int(r0)
640 if e1 != 0 {
641 err = errnoErr(e1)
643 return
646 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
648 func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
649 _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0)
650 if e1 != 0 {
651 err = errnoErr(e1)
653 return
656 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
658 func Eventfd(initval uint, flags int) (fd int, err error) {
659 r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0)
660 fd = int(r0)
661 if e1 != 0 {
662 err = errnoErr(e1)
664 return
667 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
669 func Exit(code int) {
670 SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0)
671 return
674 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
676 func Fchdir(fd int) (err error) {
677 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
678 if e1 != 0 {
679 err = errnoErr(e1)
681 return
684 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
686 func Fchmod(fd int, mode uint32) (err error) {
687 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
688 if e1 != 0 {
689 err = errnoErr(e1)
691 return
694 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
696 func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
697 var _p0 *byte
698 _p0, err = BytePtrFromString(path)
699 if err != nil {
700 return
702 _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
703 if e1 != 0 {
704 err = errnoErr(e1)
706 return
709 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
711 func Fdatasync(fd int) (err error) {
712 _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
713 if e1 != 0 {
714 err = errnoErr(e1)
716 return
719 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
721 func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
722 var _p0 *byte
723 _p0, err = BytePtrFromString(attr)
724 if err != nil {
725 return
727 var _p1 unsafe.Pointer
728 if len(dest) > 0 {
729 _p1 = unsafe.Pointer(&dest[0])
730 } else {
731 _p1 = unsafe.Pointer(&_zero)
733 r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0)
734 sz = int(r0)
735 if e1 != 0 {
736 err = errnoErr(e1)
738 return
741 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
743 func FinitModule(fd int, params string, flags int) (err error) {
744 var _p0 *byte
745 _p0, err = BytePtrFromString(params)
746 if err != nil {
747 return
749 _, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
750 if e1 != 0 {
751 err = errnoErr(e1)
753 return
756 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
758 func Flistxattr(fd int, dest []byte) (sz int, err error) {
759 var _p0 unsafe.Pointer
760 if len(dest) > 0 {
761 _p0 = unsafe.Pointer(&dest[0])
762 } else {
763 _p0 = unsafe.Pointer(&_zero)
765 r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest)))
766 sz = int(r0)
767 if e1 != 0 {
768 err = errnoErr(e1)
770 return
773 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
775 func Flock(fd int, how int) (err error) {
776 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
777 if e1 != 0 {
778 err = errnoErr(e1)
780 return
783 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
785 func Fremovexattr(fd int, attr string) (err error) {
786 var _p0 *byte
787 _p0, err = BytePtrFromString(attr)
788 if err != nil {
789 return
791 _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0)
792 if e1 != 0 {
793 err = errnoErr(e1)
795 return
798 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
800 func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) {
801 var _p0 *byte
802 _p0, err = BytePtrFromString(attr)
803 if err != nil {
804 return
806 var _p1 unsafe.Pointer
807 if len(dest) > 0 {
808 _p1 = unsafe.Pointer(&dest[0])
809 } else {
810 _p1 = unsafe.Pointer(&_zero)
812 _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0)
813 if e1 != 0 {
814 err = errnoErr(e1)
816 return
819 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
821 func Fsync(fd int) (err error) {
822 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
823 if e1 != 0 {
824 err = errnoErr(e1)
826 return
829 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
831 func Fsmount(fd int, flags int, mountAttrs int) (fsfd int, err error) {
832 r0, _, e1 := Syscall(SYS_FSMOUNT, uintptr(fd), uintptr(flags), uintptr(mountAttrs))
833 fsfd = int(r0)
834 if e1 != 0 {
835 err = errnoErr(e1)
837 return
840 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
842 func Fsopen(fsName string, flags int) (fd int, err error) {
843 var _p0 *byte
844 _p0, err = BytePtrFromString(fsName)
845 if err != nil {
846 return
848 r0, _, e1 := Syscall(SYS_FSOPEN, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
849 fd = int(r0)
850 if e1 != 0 {
851 err = errnoErr(e1)
853 return
856 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
858 func Fspick(dirfd int, pathName string, flags int) (fd int, err error) {
859 var _p0 *byte
860 _p0, err = BytePtrFromString(pathName)
861 if err != nil {
862 return
864 r0, _, e1 := Syscall(SYS_FSPICK, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
865 fd = int(r0)
866 if e1 != 0 {
867 err = errnoErr(e1)
869 return
872 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
874 func Getdents(fd int, buf []byte) (n int, err error) {
875 var _p0 unsafe.Pointer
876 if len(buf) > 0 {
877 _p0 = unsafe.Pointer(&buf[0])
878 } else {
879 _p0 = unsafe.Pointer(&_zero)
881 r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
882 n = int(r0)
883 if e1 != 0 {
884 err = errnoErr(e1)
886 return
889 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
891 func Getpgid(pid int) (pgid int, err error) {
892 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
893 pgid = int(r0)
894 if e1 != 0 {
895 err = errnoErr(e1)
897 return
900 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
902 func Getpid() (pid int) {
903 r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0)
904 pid = int(r0)
905 return
908 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
910 func Getppid() (ppid int) {
911 r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0)
912 ppid = int(r0)
913 return
916 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
918 func Getpriority(which int, who int) (prio int, err error) {
919 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
920 prio = int(r0)
921 if e1 != 0 {
922 err = errnoErr(e1)
924 return
927 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
929 func Getrandom(buf []byte, flags int) (n int, err error) {
930 var _p0 unsafe.Pointer
931 if len(buf) > 0 {
932 _p0 = unsafe.Pointer(&buf[0])
933 } else {
934 _p0 = unsafe.Pointer(&_zero)
936 r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags))
937 n = int(r0)
938 if e1 != 0 {
939 err = errnoErr(e1)
941 return
944 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
946 func Getrusage(who int, rusage *Rusage) (err error) {
947 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
948 if e1 != 0 {
949 err = errnoErr(e1)
951 return
954 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
956 func Getsid(pid int) (sid int, err error) {
957 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
958 sid = int(r0)
959 if e1 != 0 {
960 err = errnoErr(e1)
962 return
965 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
967 func Gettid() (tid int) {
968 r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0)
969 tid = int(r0)
970 return
973 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
975 func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
976 var _p0 *byte
977 _p0, err = BytePtrFromString(path)
978 if err != nil {
979 return
981 var _p1 *byte
982 _p1, err = BytePtrFromString(attr)
983 if err != nil {
984 return
986 var _p2 unsafe.Pointer
987 if len(dest) > 0 {
988 _p2 = unsafe.Pointer(&dest[0])
989 } else {
990 _p2 = unsafe.Pointer(&_zero)
992 r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
993 sz = int(r0)
994 if e1 != 0 {
995 err = errnoErr(e1)
997 return
1000 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1002 func InitModule(moduleImage []byte, params string) (err error) {
1003 var _p0 unsafe.Pointer
1004 if len(moduleImage) > 0 {
1005 _p0 = unsafe.Pointer(&moduleImage[0])
1006 } else {
1007 _p0 = unsafe.Pointer(&_zero)
1009 var _p1 *byte
1010 _p1, err = BytePtrFromString(params)
1011 if err != nil {
1012 return
1014 _, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1)))
1015 if e1 != 0 {
1016 err = errnoErr(e1)
1018 return
1021 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1023 func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
1024 var _p0 *byte
1025 _p0, err = BytePtrFromString(pathname)
1026 if err != nil {
1027 return
1029 r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask))
1030 watchdesc = int(r0)
1031 if e1 != 0 {
1032 err = errnoErr(e1)
1034 return
1037 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1039 func InotifyInit1(flags int) (fd int, err error) {
1040 r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0)
1041 fd = int(r0)
1042 if e1 != 0 {
1043 err = errnoErr(e1)
1045 return
1048 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1050 func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) {
1051 r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0)
1052 success = int(r0)
1053 if e1 != 0 {
1054 err = errnoErr(e1)
1056 return
1059 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1061 func Kill(pid int, sig syscall.Signal) (err error) {
1062 _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0)
1063 if e1 != 0 {
1064 err = errnoErr(e1)
1066 return
1069 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1071 func Klogctl(typ int, buf []byte) (n int, err error) {
1072 var _p0 unsafe.Pointer
1073 if len(buf) > 0 {
1074 _p0 = unsafe.Pointer(&buf[0])
1075 } else {
1076 _p0 = unsafe.Pointer(&_zero)
1078 r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf)))
1079 n = int(r0)
1080 if e1 != 0 {
1081 err = errnoErr(e1)
1083 return
1086 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1088 func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) {
1089 var _p0 *byte
1090 _p0, err = BytePtrFromString(path)
1091 if err != nil {
1092 return
1094 var _p1 *byte
1095 _p1, err = BytePtrFromString(attr)
1096 if err != nil {
1097 return
1099 var _p2 unsafe.Pointer
1100 if len(dest) > 0 {
1101 _p2 = unsafe.Pointer(&dest[0])
1102 } else {
1103 _p2 = unsafe.Pointer(&_zero)
1105 r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
1106 sz = int(r0)
1107 if e1 != 0 {
1108 err = errnoErr(e1)
1110 return
1113 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1115 func Listxattr(path string, dest []byte) (sz int, err error) {
1116 var _p0 *byte
1117 _p0, err = BytePtrFromString(path)
1118 if err != nil {
1119 return
1121 var _p1 unsafe.Pointer
1122 if len(dest) > 0 {
1123 _p1 = unsafe.Pointer(&dest[0])
1124 } else {
1125 _p1 = unsafe.Pointer(&_zero)
1127 r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
1128 sz = int(r0)
1129 if e1 != 0 {
1130 err = errnoErr(e1)
1132 return
1135 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1137 func Llistxattr(path string, dest []byte) (sz int, err error) {
1138 var _p0 *byte
1139 _p0, err = BytePtrFromString(path)
1140 if err != nil {
1141 return
1143 var _p1 unsafe.Pointer
1144 if len(dest) > 0 {
1145 _p1 = unsafe.Pointer(&dest[0])
1146 } else {
1147 _p1 = unsafe.Pointer(&_zero)
1149 r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
1150 sz = int(r0)
1151 if e1 != 0 {
1152 err = errnoErr(e1)
1154 return
1157 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1159 func Lremovexattr(path string, attr string) (err error) {
1160 var _p0 *byte
1161 _p0, err = BytePtrFromString(path)
1162 if err != nil {
1163 return
1165 var _p1 *byte
1166 _p1, err = BytePtrFromString(attr)
1167 if err != nil {
1168 return
1170 _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1171 if e1 != 0 {
1172 err = errnoErr(e1)
1174 return
1177 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1179 func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
1180 var _p0 *byte
1181 _p0, err = BytePtrFromString(path)
1182 if err != nil {
1183 return
1185 var _p1 *byte
1186 _p1, err = BytePtrFromString(attr)
1187 if err != nil {
1188 return
1190 var _p2 unsafe.Pointer
1191 if len(data) > 0 {
1192 _p2 = unsafe.Pointer(&data[0])
1193 } else {
1194 _p2 = unsafe.Pointer(&_zero)
1196 _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
1197 if e1 != 0 {
1198 err = errnoErr(e1)
1200 return
1203 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1205 func MemfdCreate(name string, flags int) (fd int, err error) {
1206 var _p0 *byte
1207 _p0, err = BytePtrFromString(name)
1208 if err != nil {
1209 return
1211 r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1212 fd = int(r0)
1213 if e1 != 0 {
1214 err = errnoErr(e1)
1216 return
1219 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1221 func Mkdirat(dirfd int, path string, mode uint32) (err error) {
1222 var _p0 *byte
1223 _p0, err = BytePtrFromString(path)
1224 if err != nil {
1225 return
1227 _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
1228 if e1 != 0 {
1229 err = errnoErr(e1)
1231 return
1234 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1236 func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
1237 var _p0 *byte
1238 _p0, err = BytePtrFromString(path)
1239 if err != nil {
1240 return
1242 _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
1243 if e1 != 0 {
1244 err = errnoErr(e1)
1246 return
1249 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1251 func MoveMount(fromDirfd int, fromPathName string, toDirfd int, toPathName string, flags int) (err error) {
1252 var _p0 *byte
1253 _p0, err = BytePtrFromString(fromPathName)
1254 if err != nil {
1255 return
1257 var _p1 *byte
1258 _p1, err = BytePtrFromString(toPathName)
1259 if err != nil {
1260 return
1262 _, _, e1 := Syscall6(SYS_MOVE_MOUNT, uintptr(fromDirfd), uintptr(unsafe.Pointer(_p0)), uintptr(toDirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
1263 if e1 != 0 {
1264 err = errnoErr(e1)
1266 return
1269 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1271 func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
1272 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
1273 if e1 != 0 {
1274 err = errnoErr(e1)
1276 return
1279 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1281 func OpenTree(dfd int, fileName string, flags uint) (r int, err error) {
1282 var _p0 *byte
1283 _p0, err = BytePtrFromString(fileName)
1284 if err != nil {
1285 return
1287 r0, _, e1 := Syscall(SYS_OPEN_TREE, uintptr(dfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
1288 r = int(r0)
1289 if e1 != 0 {
1290 err = errnoErr(e1)
1292 return
1295 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1297 func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
1298 r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
1299 fd = int(r0)
1300 if e1 != 0 {
1301 err = errnoErr(e1)
1303 return
1306 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1308 func PivotRoot(newroot string, putold string) (err error) {
1309 var _p0 *byte
1310 _p0, err = BytePtrFromString(newroot)
1311 if err != nil {
1312 return
1314 var _p1 *byte
1315 _p1, err = BytePtrFromString(putold)
1316 if err != nil {
1317 return
1319 _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1320 if e1 != 0 {
1321 err = errnoErr(e1)
1323 return
1326 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1328 func Prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {
1329 _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0)
1330 if e1 != 0 {
1331 err = errnoErr(e1)
1333 return
1336 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1338 func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) {
1339 _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
1340 if e1 != 0 {
1341 err = errnoErr(e1)
1343 return
1346 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1348 func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
1349 r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)))
1350 n = int(r0)
1351 if e1 != 0 {
1352 err = errnoErr(e1)
1354 return
1357 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1359 func read(fd int, p []byte) (n int, err error) {
1360 var _p0 unsafe.Pointer
1361 if len(p) > 0 {
1362 _p0 = unsafe.Pointer(&p[0])
1363 } else {
1364 _p0 = unsafe.Pointer(&_zero)
1366 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1367 n = int(r0)
1368 if e1 != 0 {
1369 err = errnoErr(e1)
1371 return
1374 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1376 func Removexattr(path string, attr string) (err error) {
1377 var _p0 *byte
1378 _p0, err = BytePtrFromString(path)
1379 if err != nil {
1380 return
1382 var _p1 *byte
1383 _p1, err = BytePtrFromString(attr)
1384 if err != nil {
1385 return
1387 _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1388 if e1 != 0 {
1389 err = errnoErr(e1)
1391 return
1394 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1396 func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) {
1397 var _p0 *byte
1398 _p0, err = BytePtrFromString(oldpath)
1399 if err != nil {
1400 return
1402 var _p1 *byte
1403 _p1, err = BytePtrFromString(newpath)
1404 if err != nil {
1405 return
1407 _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
1408 if e1 != 0 {
1409 err = errnoErr(e1)
1411 return
1414 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1416 func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
1417 var _p0 *byte
1418 _p0, err = BytePtrFromString(keyType)
1419 if err != nil {
1420 return
1422 var _p1 *byte
1423 _p1, err = BytePtrFromString(description)
1424 if err != nil {
1425 return
1427 var _p2 *byte
1428 _p2, err = BytePtrFromString(callback)
1429 if err != nil {
1430 return
1432 r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0)
1433 id = int(r0)
1434 if e1 != 0 {
1435 err = errnoErr(e1)
1437 return
1440 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1442 func Setdomainname(p []byte) (err error) {
1443 var _p0 unsafe.Pointer
1444 if len(p) > 0 {
1445 _p0 = unsafe.Pointer(&p[0])
1446 } else {
1447 _p0 = unsafe.Pointer(&_zero)
1449 _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0)
1450 if e1 != 0 {
1451 err = errnoErr(e1)
1453 return
1456 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1458 func Sethostname(p []byte) (err error) {
1459 var _p0 unsafe.Pointer
1460 if len(p) > 0 {
1461 _p0 = unsafe.Pointer(&p[0])
1462 } else {
1463 _p0 = unsafe.Pointer(&_zero)
1465 _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0)
1466 if e1 != 0 {
1467 err = errnoErr(e1)
1469 return
1472 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1474 func Setpgid(pid int, pgid int) (err error) {
1475 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
1476 if e1 != 0 {
1477 err = errnoErr(e1)
1479 return
1482 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1484 func Setsid() (pid int, err error) {
1485 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
1486 pid = int(r0)
1487 if e1 != 0 {
1488 err = errnoErr(e1)
1490 return
1493 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1495 func Settimeofday(tv *Timeval) (err error) {
1496 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
1497 if e1 != 0 {
1498 err = errnoErr(e1)
1500 return
1503 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1505 func Setns(fd int, nstype int) (err error) {
1506 _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0)
1507 if e1 != 0 {
1508 err = errnoErr(e1)
1510 return
1513 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1515 func Setpriority(which int, who int, prio int) (err error) {
1516 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
1517 if e1 != 0 {
1518 err = errnoErr(e1)
1520 return
1523 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1525 func Setxattr(path string, attr string, data []byte, flags int) (err error) {
1526 var _p0 *byte
1527 _p0, err = BytePtrFromString(path)
1528 if err != nil {
1529 return
1531 var _p1 *byte
1532 _p1, err = BytePtrFromString(attr)
1533 if err != nil {
1534 return
1536 var _p2 unsafe.Pointer
1537 if len(data) > 0 {
1538 _p2 = unsafe.Pointer(&data[0])
1539 } else {
1540 _p2 = unsafe.Pointer(&_zero)
1542 _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
1543 if e1 != 0 {
1544 err = errnoErr(e1)
1546 return
1549 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1551 func signalfd(fd int, sigmask *Sigset_t, maskSize uintptr, flags int) (newfd int, err error) {
1552 r0, _, e1 := Syscall6(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(sigmask)), uintptr(maskSize), uintptr(flags), 0, 0)
1553 newfd = int(r0)
1554 if e1 != 0 {
1555 err = errnoErr(e1)
1557 return
1560 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1562 func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) {
1563 var _p0 *byte
1564 _p0, err = BytePtrFromString(path)
1565 if err != nil {
1566 return
1568 _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0)
1569 if e1 != 0 {
1570 err = errnoErr(e1)
1572 return
1575 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1577 func Sync() {
1578 SyscallNoError(SYS_SYNC, 0, 0, 0)
1579 return
1582 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1584 func Syncfs(fd int) (err error) {
1585 _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0)
1586 if e1 != 0 {
1587 err = errnoErr(e1)
1589 return
1592 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1594 func Sysinfo(info *Sysinfo_t) (err error) {
1595 _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
1596 if e1 != 0 {
1597 err = errnoErr(e1)
1599 return
1602 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1604 func TimerfdCreate(clockid int, flags int) (fd int, err error) {
1605 r0, _, e1 := RawSyscall(SYS_TIMERFD_CREATE, uintptr(clockid), uintptr(flags), 0)
1606 fd = int(r0)
1607 if e1 != 0 {
1608 err = errnoErr(e1)
1610 return
1613 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1615 func TimerfdGettime(fd int, currValue *ItimerSpec) (err error) {
1616 _, _, e1 := RawSyscall(SYS_TIMERFD_GETTIME, uintptr(fd), uintptr(unsafe.Pointer(currValue)), 0)
1617 if e1 != 0 {
1618 err = errnoErr(e1)
1620 return
1623 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1625 func TimerfdSettime(fd int, flags int, newValue *ItimerSpec, oldValue *ItimerSpec) (err error) {
1626 _, _, e1 := RawSyscall6(SYS_TIMERFD_SETTIME, uintptr(fd), uintptr(flags), uintptr(unsafe.Pointer(newValue)), uintptr(unsafe.Pointer(oldValue)), 0, 0)
1627 if e1 != 0 {
1628 err = errnoErr(e1)
1630 return
1633 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1635 func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) {
1636 _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig))
1637 if e1 != 0 {
1638 err = errnoErr(e1)
1640 return
1643 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1645 func Times(tms *Tms) (ticks uintptr, err error) {
1646 r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0)
1647 ticks = uintptr(r0)
1648 if e1 != 0 {
1649 err = errnoErr(e1)
1651 return
1654 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1656 func Umask(mask int) (oldmask int) {
1657 r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0)
1658 oldmask = int(r0)
1659 return
1662 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1664 func Uname(buf *Utsname) (err error) {
1665 _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0)
1666 if e1 != 0 {
1667 err = errnoErr(e1)
1669 return
1672 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1674 func Unmount(target string, flags int) (err error) {
1675 var _p0 *byte
1676 _p0, err = BytePtrFromString(target)
1677 if err != nil {
1678 return
1680 _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1681 if e1 != 0 {
1682 err = errnoErr(e1)
1684 return
1687 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1689 func Unshare(flags int) (err error) {
1690 _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0)
1691 if e1 != 0 {
1692 err = errnoErr(e1)
1694 return
1697 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1699 func write(fd int, p []byte) (n int, err error) {
1700 var _p0 unsafe.Pointer
1701 if len(p) > 0 {
1702 _p0 = unsafe.Pointer(&p[0])
1703 } else {
1704 _p0 = unsafe.Pointer(&_zero)
1706 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1707 n = int(r0)
1708 if e1 != 0 {
1709 err = errnoErr(e1)
1711 return
1714 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1716 func exitThread(code int) (err error) {
1717 _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0)
1718 if e1 != 0 {
1719 err = errnoErr(e1)
1721 return
1724 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1726 func readlen(fd int, p *byte, np int) (n int, err error) {
1727 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
1728 n = int(r0)
1729 if e1 != 0 {
1730 err = errnoErr(e1)
1732 return
1735 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1737 func writelen(fd int, p *byte, np int) (n int, err error) {
1738 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
1739 n = int(r0)
1740 if e1 != 0 {
1741 err = errnoErr(e1)
1743 return
1746 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1748 func readv(fd int, iovs []Iovec) (n int, err error) {
1749 var _p0 unsafe.Pointer
1750 if len(iovs) > 0 {
1751 _p0 = unsafe.Pointer(&iovs[0])
1752 } else {
1753 _p0 = unsafe.Pointer(&_zero)
1755 r0, _, e1 := Syscall(SYS_READV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
1756 n = int(r0)
1757 if e1 != 0 {
1758 err = errnoErr(e1)
1760 return
1763 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1765 func writev(fd int, iovs []Iovec) (n int, err error) {
1766 var _p0 unsafe.Pointer
1767 if len(iovs) > 0 {
1768 _p0 = unsafe.Pointer(&iovs[0])
1769 } else {
1770 _p0 = unsafe.Pointer(&_zero)
1772 r0, _, e1 := Syscall(SYS_WRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)))
1773 n = int(r0)
1774 if e1 != 0 {
1775 err = errnoErr(e1)
1777 return
1780 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1782 func preadv(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
1783 var _p0 unsafe.Pointer
1784 if len(iovs) > 0 {
1785 _p0 = unsafe.Pointer(&iovs[0])
1786 } else {
1787 _p0 = unsafe.Pointer(&_zero)
1789 r0, _, e1 := Syscall6(SYS_PREADV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
1790 n = int(r0)
1791 if e1 != 0 {
1792 err = errnoErr(e1)
1794 return
1797 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1799 func pwritev(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr) (n int, err error) {
1800 var _p0 unsafe.Pointer
1801 if len(iovs) > 0 {
1802 _p0 = unsafe.Pointer(&iovs[0])
1803 } else {
1804 _p0 = unsafe.Pointer(&_zero)
1806 r0, _, e1 := Syscall6(SYS_PWRITEV, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), 0)
1807 n = int(r0)
1808 if e1 != 0 {
1809 err = errnoErr(e1)
1811 return
1814 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1816 func preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
1817 var _p0 unsafe.Pointer
1818 if len(iovs) > 0 {
1819 _p0 = unsafe.Pointer(&iovs[0])
1820 } else {
1821 _p0 = unsafe.Pointer(&_zero)
1823 r0, _, e1 := Syscall6(SYS_PREADV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
1824 n = int(r0)
1825 if e1 != 0 {
1826 err = errnoErr(e1)
1828 return
1831 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1833 func pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) {
1834 var _p0 unsafe.Pointer
1835 if len(iovs) > 0 {
1836 _p0 = unsafe.Pointer(&iovs[0])
1837 } else {
1838 _p0 = unsafe.Pointer(&_zero)
1840 r0, _, e1 := Syscall6(SYS_PWRITEV2, uintptr(fd), uintptr(_p0), uintptr(len(iovs)), uintptr(offs_l), uintptr(offs_h), uintptr(flags))
1841 n = int(r0)
1842 if e1 != 0 {
1843 err = errnoErr(e1)
1845 return
1848 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1850 func munmap(addr uintptr, length uintptr) (err error) {
1851 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1852 if e1 != 0 {
1853 err = errnoErr(e1)
1855 return
1858 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1860 func Madvise(b []byte, advice int) (err error) {
1861 var _p0 unsafe.Pointer
1862 if len(b) > 0 {
1863 _p0 = unsafe.Pointer(&b[0])
1864 } else {
1865 _p0 = unsafe.Pointer(&_zero)
1867 _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice))
1868 if e1 != 0 {
1869 err = errnoErr(e1)
1871 return
1874 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1876 func Mprotect(b []byte, prot int) (err error) {
1877 var _p0 unsafe.Pointer
1878 if len(b) > 0 {
1879 _p0 = unsafe.Pointer(&b[0])
1880 } else {
1881 _p0 = unsafe.Pointer(&_zero)
1883 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
1884 if e1 != 0 {
1885 err = errnoErr(e1)
1887 return
1890 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1892 func Mlock(b []byte) (err error) {
1893 var _p0 unsafe.Pointer
1894 if len(b) > 0 {
1895 _p0 = unsafe.Pointer(&b[0])
1896 } else {
1897 _p0 = unsafe.Pointer(&_zero)
1899 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
1900 if e1 != 0 {
1901 err = errnoErr(e1)
1903 return
1906 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1908 func Mlockall(flags int) (err error) {
1909 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
1910 if e1 != 0 {
1911 err = errnoErr(e1)
1913 return
1916 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1918 func Msync(b []byte, flags int) (err error) {
1919 var _p0 unsafe.Pointer
1920 if len(b) > 0 {
1921 _p0 = unsafe.Pointer(&b[0])
1922 } else {
1923 _p0 = unsafe.Pointer(&_zero)
1925 _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
1926 if e1 != 0 {
1927 err = errnoErr(e1)
1929 return
1932 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1934 func Munlock(b []byte) (err error) {
1935 var _p0 unsafe.Pointer
1936 if len(b) > 0 {
1937 _p0 = unsafe.Pointer(&b[0])
1938 } else {
1939 _p0 = unsafe.Pointer(&_zero)
1941 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
1942 if e1 != 0 {
1943 err = errnoErr(e1)
1945 return
1948 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1950 func Munlockall() (err error) {
1951 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
1952 if e1 != 0 {
1953 err = errnoErr(e1)
1955 return
1958 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1960 func faccessat(dirfd int, path string, mode uint32) (err error) {
1961 var _p0 *byte
1962 _p0, err = BytePtrFromString(path)
1963 if err != nil {
1964 return
1966 _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
1967 if e1 != 0 {
1968 err = errnoErr(e1)
1970 return
1973 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1975 func Faccessat2(dirfd int, path string, mode uint32, flags int) (err error) {
1976 var _p0 *byte
1977 _p0, err = BytePtrFromString(path)
1978 if err != nil {
1979 return
1981 _, _, e1 := Syscall6(SYS_FACCESSAT2, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
1982 if e1 != 0 {
1983 err = errnoErr(e1)
1985 return
1988 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1990 func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) {
1991 var _p0 *byte
1992 _p0, err = BytePtrFromString(pathname)
1993 if err != nil {
1994 return
1996 _, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0)
1997 if e1 != 0 {
1998 err = errnoErr(e1)
2000 return
2003 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2005 func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) {
2006 r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags))
2007 fd = int(r0)
2008 if e1 != 0 {
2009 err = errnoErr(e1)
2011 return
2014 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2016 func ProcessVMReadv(pid int, localIov []Iovec, remoteIov []RemoteIovec, flags uint) (n int, err error) {
2017 var _p0 unsafe.Pointer
2018 if len(localIov) > 0 {
2019 _p0 = unsafe.Pointer(&localIov[0])
2020 } else {
2021 _p0 = unsafe.Pointer(&_zero)
2023 var _p1 unsafe.Pointer
2024 if len(remoteIov) > 0 {
2025 _p1 = unsafe.Pointer(&remoteIov[0])
2026 } else {
2027 _p1 = unsafe.Pointer(&_zero)
2029 r0, _, e1 := Syscall6(SYS_PROCESS_VM_READV, uintptr(pid), uintptr(_p0), uintptr(len(localIov)), uintptr(_p1), uintptr(len(remoteIov)), uintptr(flags))
2030 n = int(r0)
2031 if e1 != 0 {
2032 err = errnoErr(e1)
2034 return
2037 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2039 func ProcessVMWritev(pid int, localIov []Iovec, remoteIov []RemoteIovec, flags uint) (n int, err error) {
2040 var _p0 unsafe.Pointer
2041 if len(localIov) > 0 {
2042 _p0 = unsafe.Pointer(&localIov[0])
2043 } else {
2044 _p0 = unsafe.Pointer(&_zero)
2046 var _p1 unsafe.Pointer
2047 if len(remoteIov) > 0 {
2048 _p1 = unsafe.Pointer(&remoteIov[0])
2049 } else {
2050 _p1 = unsafe.Pointer(&_zero)
2052 r0, _, e1 := Syscall6(SYS_PROCESS_VM_WRITEV, uintptr(pid), uintptr(_p0), uintptr(len(localIov)), uintptr(_p1), uintptr(len(remoteIov)), uintptr(flags))
2053 n = int(r0)
2054 if e1 != 0 {
2055 err = errnoErr(e1)
2057 return
2060 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2062 func PidfdOpen(pid int, flags int) (fd int, err error) {
2063 r0, _, e1 := Syscall(SYS_PIDFD_OPEN, uintptr(pid), uintptr(flags), 0)
2064 fd = int(r0)
2065 if e1 != 0 {
2066 err = errnoErr(e1)
2068 return
2071 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2073 func PidfdGetfd(pidfd int, targetfd int, flags int) (fd int, err error) {
2074 r0, _, e1 := Syscall(SYS_PIDFD_GETFD, uintptr(pidfd), uintptr(targetfd), uintptr(flags))
2075 fd = int(r0)
2076 if e1 != 0 {
2077 err = errnoErr(e1)
2079 return
2082 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2084 func PidfdSendSignal(pidfd int, sig Signal, info *Siginfo, flags int) (err error) {
2085 _, _, e1 := Syscall6(SYS_PIDFD_SEND_SIGNAL, uintptr(pidfd), uintptr(sig), uintptr(unsafe.Pointer(info)), uintptr(flags), 0, 0)
2086 if e1 != 0 {
2087 err = errnoErr(e1)
2089 return
2092 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2094 func shmat(id int, addr uintptr, flag int) (ret uintptr, err error) {
2095 r0, _, e1 := Syscall(SYS_SHMAT, uintptr(id), uintptr(addr), uintptr(flag))
2096 ret = uintptr(r0)
2097 if e1 != 0 {
2098 err = errnoErr(e1)
2100 return
2103 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2105 func shmctl(id int, cmd int, buf *SysvShmDesc) (result int, err error) {
2106 r0, _, e1 := Syscall(SYS_SHMCTL, uintptr(id), uintptr(cmd), uintptr(unsafe.Pointer(buf)))
2107 result = int(r0)
2108 if e1 != 0 {
2109 err = errnoErr(e1)
2111 return
2114 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2116 func shmdt(addr uintptr) (err error) {
2117 _, _, e1 := Syscall(SYS_SHMDT, uintptr(addr), 0, 0)
2118 if e1 != 0 {
2119 err = errnoErr(e1)
2121 return
2124 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2126 func shmget(key int, size int, flag int) (id int, err error) {
2127 r0, _, e1 := Syscall(SYS_SHMGET, uintptr(key), uintptr(size), uintptr(flag))
2128 id = int(r0)
2129 if e1 != 0 {
2130 err = errnoErr(e1)
2132 return
2135 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2137 func getitimer(which int, currValue *Itimerval) (err error) {
2138 _, _, e1 := Syscall(SYS_GETITIMER, uintptr(which), uintptr(unsafe.Pointer(currValue)), 0)
2139 if e1 != 0 {
2140 err = errnoErr(e1)
2142 return
2145 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2147 func setitimer(which int, newValue *Itimerval, oldValue *Itimerval) (err error) {
2148 _, _, e1 := Syscall(SYS_SETITIMER, uintptr(which), uintptr(unsafe.Pointer(newValue)), uintptr(unsafe.Pointer(oldValue)))
2149 if e1 != 0 {
2150 err = errnoErr(e1)
2152 return
2155 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2157 func rtSigprocmask(how int, set *Sigset_t, oldset *Sigset_t, sigsetsize uintptr) (err error) {
2158 _, _, e1 := RawSyscall6(SYS_RT_SIGPROCMASK, uintptr(how), uintptr(unsafe.Pointer(set)), uintptr(unsafe.Pointer(oldset)), uintptr(sigsetsize), 0, 0)
2159 if e1 != 0 {
2160 err = errnoErr(e1)
2162 return