1 // go run mksyscall.go -tags linux,mips64le syscall_linux.go syscall_linux_mips64x.go
2 // Code generated by the command above; see README.md. DO NOT EDIT.
4 // +build linux,mips64le
15 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
17 func FanotifyInit(flags uint, event_f_flags uint) (fd int, err error) {
18 r0, _, e1 := Syscall(SYS_FANOTIFY_INIT, uintptr(flags), uintptr(event_f_flags), 0)
26 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
28 func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
29 _, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)), 0)
36 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
38 func fchmodat(dirfd int, path string, mode uint32) (err error) {
40 _p0, err = BytePtrFromString(path)
44 _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
51 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
53 func ioctl(fd int, req uint, arg uintptr) (err error) {
54 _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
61 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
63 func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) {
65 _p0, err = BytePtrFromString(oldpath)
70 _p1, err = BytePtrFromString(newpath)
74 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
81 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
83 func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) {
85 _p0, err = BytePtrFromString(path)
89 r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0)
97 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
99 func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
100 r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0)
108 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
110 func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
112 _p0, err = BytePtrFromString(path)
116 var _p1 unsafe.Pointer
118 _p1 = unsafe.Pointer(&buf[0])
120 _p1 = unsafe.Pointer(&_zero)
122 r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
130 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
132 func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
134 _p0, err = BytePtrFromString(oldpath)
139 _p1, err = BytePtrFromString(newpath)
143 _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
150 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
152 func Unlinkat(dirfd int, path string, flags int) (err error) {
154 _p0, err = BytePtrFromString(path)
158 _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
165 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
167 func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
169 _p0, err = BytePtrFromString(path)
173 _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
180 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
182 func Getcwd(buf []byte) (n int, err error) {
183 var _p0 unsafe.Pointer
185 _p0 = unsafe.Pointer(&buf[0])
187 _p0 = unsafe.Pointer(&_zero)
189 r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0)
197 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
199 func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
200 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
208 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
210 func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) {
211 r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
219 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
221 func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) {
222 var _p0 unsafe.Pointer
224 _p0 = unsafe.Pointer(&buf[0])
226 _p0 = unsafe.Pointer(&_zero)
228 r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0)
236 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
238 func keyctlJoin(cmd int, arg2 string) (ret int, err error) {
240 _p0, err = BytePtrFromString(arg2)
244 r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0)
252 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
254 func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) {
256 _p0, err = BytePtrFromString(arg3)
261 _p1, err = BytePtrFromString(arg4)
265 r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0)
273 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
275 func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) {
276 var _p0 unsafe.Pointer
277 if len(payload) > 0 {
278 _p0 = unsafe.Pointer(&payload[0])
280 _p0 = unsafe.Pointer(&_zero)
282 _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0)
289 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
291 func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) {
292 var _p0 unsafe.Pointer
294 _p0 = unsafe.Pointer(&buf[0])
296 _p0 = unsafe.Pointer(&_zero)
298 r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0)
306 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
308 func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
309 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
316 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
318 func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) {
320 _p0, err = BytePtrFromString(arg)
324 _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0)
331 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
333 func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) {
335 _p0, err = BytePtrFromString(source)
340 _p1, err = BytePtrFromString(target)
345 _p2, err = BytePtrFromString(fstype)
349 _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0)
356 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
358 func Acct(path string) (err error) {
360 _p0, err = BytePtrFromString(path)
364 _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0)
371 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
373 func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) {
375 _p0, err = BytePtrFromString(keyType)
380 _p1, err = BytePtrFromString(description)
384 var _p2 unsafe.Pointer
385 if len(payload) > 0 {
386 _p2 = unsafe.Pointer(&payload[0])
388 _p2 = unsafe.Pointer(&_zero)
390 r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0)
398 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
400 func Adjtimex(buf *Timex) (state int, err error) {
401 r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0)
409 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
411 func Chdir(path string) (err error) {
413 _p0, err = BytePtrFromString(path)
417 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0)
424 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
426 func Chroot(path string) (err error) {
428 _p0, err = BytePtrFromString(path)
432 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0)
439 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
441 func ClockGetres(clockid int32, res *Timespec) (err error) {
442 _, _, e1 := Syscall(SYS_CLOCK_GETRES, uintptr(clockid), uintptr(unsafe.Pointer(res)), 0)
449 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
451 func ClockGettime(clockid int32, time *Timespec) (err error) {
452 _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
459 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
461 func ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) {
462 _, _, e1 := Syscall6(SYS_CLOCK_NANOSLEEP, uintptr(clockid), uintptr(flags), uintptr(unsafe.Pointer(request)), uintptr(unsafe.Pointer(remain)), 0, 0)
469 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
471 func Close(fd int) (err error) {
472 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
479 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
481 func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) {
482 r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
490 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
492 func DeleteModule(name string, flags int) (err error) {
494 _p0, err = BytePtrFromString(name)
498 _, _, e1 := Syscall(SYS_DELETE_MODULE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
505 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
507 func Dup(oldfd int) (fd int, err error) {
508 r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0)
516 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
518 func Dup3(oldfd int, newfd int, flags int) (err error) {
519 _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags))
526 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
528 func EpollCreate1(flag int) (fd int, err error) {
529 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0)
537 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
539 func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
540 _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0)
547 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
549 func Eventfd(initval uint, flags int) (fd int, err error) {
550 r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0)
558 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
560 func Exit(code int) {
561 SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0)
565 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
567 func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
568 _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0)
575 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
577 func Fchdir(fd int) (err error) {
578 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
585 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
587 func Fchmod(fd int, mode uint32) (err error) {
588 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
595 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
597 func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
599 _p0, err = BytePtrFromString(path)
603 _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
610 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
612 func fcntl(fd int, cmd int, arg int) (val int, err error) {
613 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
621 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
623 func Fdatasync(fd int) (err error) {
624 _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0)
631 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
633 func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
635 _p0, err = BytePtrFromString(attr)
639 var _p1 unsafe.Pointer
641 _p1 = unsafe.Pointer(&dest[0])
643 _p1 = unsafe.Pointer(&_zero)
645 r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), 0, 0)
653 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
655 func FinitModule(fd int, params string, flags int) (err error) {
657 _p0, err = BytePtrFromString(params)
661 _, _, e1 := Syscall(SYS_FINIT_MODULE, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
668 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
670 func Flistxattr(fd int, dest []byte) (sz int, err error) {
671 var _p0 unsafe.Pointer
673 _p0 = unsafe.Pointer(&dest[0])
675 _p0 = unsafe.Pointer(&_zero)
677 r0, _, e1 := Syscall(SYS_FLISTXATTR, uintptr(fd), uintptr(_p0), uintptr(len(dest)))
685 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
687 func Flock(fd int, how int) (err error) {
688 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
695 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
697 func Fremovexattr(fd int, attr string) (err error) {
699 _p0, err = BytePtrFromString(attr)
703 _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), 0)
710 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
712 func Fsetxattr(fd int, attr string, dest []byte, flags int) (err error) {
714 _p0, err = BytePtrFromString(attr)
718 var _p1 unsafe.Pointer
720 _p1 = unsafe.Pointer(&dest[0])
722 _p1 = unsafe.Pointer(&_zero)
724 _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)), uintptr(flags), 0)
731 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
733 func Fsync(fd int) (err error) {
734 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0)
741 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
743 func Getdents(fd int, buf []byte) (n int, err error) {
744 var _p0 unsafe.Pointer
746 _p0 = unsafe.Pointer(&buf[0])
748 _p0 = unsafe.Pointer(&_zero)
750 r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
758 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
760 func Getpgid(pid int) (pgid int, err error) {
761 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
769 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
771 func Getpid() (pid int) {
772 r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0)
777 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
779 func Getppid() (ppid int) {
780 r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0)
785 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
787 func Getpriority(which int, who int) (prio int, err error) {
788 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)
796 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
798 func Getrandom(buf []byte, flags int) (n int, err error) {
799 var _p0 unsafe.Pointer
801 _p0 = unsafe.Pointer(&buf[0])
803 _p0 = unsafe.Pointer(&_zero)
805 r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags))
813 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
815 func Getrusage(who int, rusage *Rusage) (err error) {
816 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
823 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
825 func Getsid(pid int) (sid int, err error) {
826 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)
834 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
836 func Gettid() (tid int) {
837 r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0)
842 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
844 func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
846 _p0, err = BytePtrFromString(path)
851 _p1, err = BytePtrFromString(attr)
855 var _p2 unsafe.Pointer
857 _p2 = unsafe.Pointer(&dest[0])
859 _p2 = unsafe.Pointer(&_zero)
861 r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
869 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
871 func InitModule(moduleImage []byte, params string) (err error) {
872 var _p0 unsafe.Pointer
873 if len(moduleImage) > 0 {
874 _p0 = unsafe.Pointer(&moduleImage[0])
876 _p0 = unsafe.Pointer(&_zero)
879 _p1, err = BytePtrFromString(params)
883 _, _, e1 := Syscall(SYS_INIT_MODULE, uintptr(_p0), uintptr(len(moduleImage)), uintptr(unsafe.Pointer(_p1)))
890 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
892 func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) {
894 _p0, err = BytePtrFromString(pathname)
898 r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask))
906 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
908 func InotifyInit1(flags int) (fd int, err error) {
909 r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0)
917 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
919 func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) {
920 r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0)
928 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
930 func Kill(pid int, sig syscall.Signal) (err error) {
931 _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0)
938 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
940 func Klogctl(typ int, buf []byte) (n int, err error) {
941 var _p0 unsafe.Pointer
943 _p0 = unsafe.Pointer(&buf[0])
945 _p0 = unsafe.Pointer(&_zero)
947 r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf)))
955 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
957 func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) {
959 _p0, err = BytePtrFromString(path)
964 _p1, err = BytePtrFromString(attr)
968 var _p2 unsafe.Pointer
970 _p2 = unsafe.Pointer(&dest[0])
972 _p2 = unsafe.Pointer(&_zero)
974 r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
982 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
984 func Listxattr(path string, dest []byte) (sz int, err error) {
986 _p0, err = BytePtrFromString(path)
990 var _p1 unsafe.Pointer
992 _p1 = unsafe.Pointer(&dest[0])
994 _p1 = unsafe.Pointer(&_zero)
996 r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
1004 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1006 func Llistxattr(path string, dest []byte) (sz int, err error) {
1008 _p0, err = BytePtrFromString(path)
1012 var _p1 unsafe.Pointer
1014 _p1 = unsafe.Pointer(&dest[0])
1016 _p1 = unsafe.Pointer(&_zero)
1018 r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
1026 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1028 func Lremovexattr(path string, attr string) (err error) {
1030 _p0, err = BytePtrFromString(path)
1035 _p1, err = BytePtrFromString(attr)
1039 _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1046 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1048 func Lsetxattr(path string, attr string, data []byte, flags int) (err error) {
1050 _p0, err = BytePtrFromString(path)
1055 _p1, err = BytePtrFromString(attr)
1059 var _p2 unsafe.Pointer
1061 _p2 = unsafe.Pointer(&data[0])
1063 _p2 = unsafe.Pointer(&_zero)
1065 _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
1072 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1074 func MemfdCreate(name string, flags int) (fd int, err error) {
1076 _p0, err = BytePtrFromString(name)
1080 r0, _, e1 := Syscall(SYS_MEMFD_CREATE, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1088 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1090 func Mkdirat(dirfd int, path string, mode uint32) (err error) {
1092 _p0, err = BytePtrFromString(path)
1096 _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
1103 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1105 func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
1107 _p0, err = BytePtrFromString(path)
1111 _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
1118 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1120 func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
1121 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
1128 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1130 func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) {
1131 r0, _, e1 := Syscall6(SYS_PERF_EVENT_OPEN, uintptr(unsafe.Pointer(attr)), uintptr(pid), uintptr(cpu), uintptr(groupFd), uintptr(flags), 0)
1139 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1141 func PivotRoot(newroot string, putold string) (err error) {
1143 _p0, err = BytePtrFromString(newroot)
1148 _p1, err = BytePtrFromString(putold)
1152 _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1159 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1161 func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {
1162 _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0)
1169 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1171 func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) {
1172 _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0)
1179 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1181 func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
1182 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)))
1190 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1192 func read(fd int, p []byte) (n int, err error) {
1193 var _p0 unsafe.Pointer
1195 _p0 = unsafe.Pointer(&p[0])
1197 _p0 = unsafe.Pointer(&_zero)
1199 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1207 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1209 func Removexattr(path string, attr string) (err error) {
1211 _p0, err = BytePtrFromString(path)
1216 _p1, err = BytePtrFromString(attr)
1220 _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1227 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1229 func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error) {
1231 _p0, err = BytePtrFromString(oldpath)
1236 _p1, err = BytePtrFromString(newpath)
1240 _, _, e1 := Syscall6(SYS_RENAMEAT2, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
1247 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1249 func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) {
1251 _p0, err = BytePtrFromString(keyType)
1256 _p1, err = BytePtrFromString(description)
1261 _p2, err = BytePtrFromString(callback)
1265 r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0)
1273 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1275 func Setdomainname(p []byte) (err error) {
1276 var _p0 unsafe.Pointer
1278 _p0 = unsafe.Pointer(&p[0])
1280 _p0 = unsafe.Pointer(&_zero)
1282 _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0)
1289 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1291 func Sethostname(p []byte) (err error) {
1292 var _p0 unsafe.Pointer
1294 _p0 = unsafe.Pointer(&p[0])
1296 _p0 = unsafe.Pointer(&_zero)
1298 _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0)
1305 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1307 func Setpgid(pid int, pgid int) (err error) {
1308 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0)
1315 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1317 func Setsid() (pid int, err error) {
1318 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
1326 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1328 func Settimeofday(tv *Timeval) (err error) {
1329 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
1336 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1338 func Setns(fd int, nstype int) (err error) {
1339 _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0)
1346 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1348 func Setpriority(which int, who int, prio int) (err error) {
1349 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio))
1356 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1358 func Setxattr(path string, attr string, data []byte, flags int) (err error) {
1360 _p0, err = BytePtrFromString(path)
1365 _p1, err = BytePtrFromString(attr)
1369 var _p2 unsafe.Pointer
1371 _p2 = unsafe.Pointer(&data[0])
1373 _p2 = unsafe.Pointer(&_zero)
1375 _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
1382 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1384 func Signalfd(fd int, mask *Sigset_t, flags int) {
1385 SyscallNoError(SYS_SIGNALFD4, uintptr(fd), uintptr(unsafe.Pointer(mask)), uintptr(flags))
1389 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1391 func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) {
1393 _p0, err = BytePtrFromString(path)
1397 _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0)
1404 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1407 SyscallNoError(SYS_SYNC, 0, 0, 0)
1411 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1413 func Syncfs(fd int) (err error) {
1414 _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0)
1421 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1423 func Sysinfo(info *Sysinfo_t) (err error) {
1424 _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
1431 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1433 func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
1434 r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0)
1442 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1444 func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) {
1445 _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig))
1452 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1454 func Times(tms *Tms) (ticks uintptr, err error) {
1455 r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0)
1463 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1465 func Umask(mask int) (oldmask int) {
1466 r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0)
1471 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1473 func Uname(buf *Utsname) (err error) {
1474 _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0)
1481 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1483 func Unmount(target string, flags int) (err error) {
1485 _p0, err = BytePtrFromString(target)
1489 _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1496 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1498 func Unshare(flags int) (err error) {
1499 _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0)
1506 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1508 func write(fd int, p []byte) (n int, err error) {
1509 var _p0 unsafe.Pointer
1511 _p0 = unsafe.Pointer(&p[0])
1513 _p0 = unsafe.Pointer(&_zero)
1515 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1523 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1525 func exitThread(code int) (err error) {
1526 _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0)
1533 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1535 func readlen(fd int, p *byte, np int) (n int, err error) {
1536 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
1544 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1546 func writelen(fd int, p *byte, np int) (n int, err error) {
1547 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np))
1555 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1557 func munmap(addr uintptr, length uintptr) (err error) {
1558 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1565 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1567 func Madvise(b []byte, advice int) (err error) {
1568 var _p0 unsafe.Pointer
1570 _p0 = unsafe.Pointer(&b[0])
1572 _p0 = unsafe.Pointer(&_zero)
1574 _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice))
1581 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1583 func Mprotect(b []byte, prot int) (err error) {
1584 var _p0 unsafe.Pointer
1586 _p0 = unsafe.Pointer(&b[0])
1588 _p0 = unsafe.Pointer(&_zero)
1590 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
1597 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1599 func Mlock(b []byte) (err error) {
1600 var _p0 unsafe.Pointer
1602 _p0 = unsafe.Pointer(&b[0])
1604 _p0 = unsafe.Pointer(&_zero)
1606 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
1613 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1615 func Mlockall(flags int) (err error) {
1616 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0)
1623 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1625 func Msync(b []byte, flags int) (err error) {
1626 var _p0 unsafe.Pointer
1628 _p0 = unsafe.Pointer(&b[0])
1630 _p0 = unsafe.Pointer(&_zero)
1632 _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
1639 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1641 func Munlock(b []byte) (err error) {
1642 var _p0 unsafe.Pointer
1644 _p0 = unsafe.Pointer(&b[0])
1646 _p0 = unsafe.Pointer(&_zero)
1648 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
1655 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1657 func Munlockall() (err error) {
1658 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
1665 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1667 func faccessat(dirfd int, path string, mode uint32) (err error) {
1669 _p0, err = BytePtrFromString(path)
1673 _, _, e1 := Syscall(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
1680 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1682 func nameToHandleAt(dirFD int, pathname string, fh *fileHandle, mountID *_C_int, flags int) (err error) {
1684 _p0, err = BytePtrFromString(pathname)
1688 _, _, e1 := Syscall6(SYS_NAME_TO_HANDLE_AT, uintptr(dirFD), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(fh)), uintptr(unsafe.Pointer(mountID)), uintptr(flags), 0)
1695 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1697 func openByHandleAt(mountFD int, fh *fileHandle, flags int) (fd int, err error) {
1698 r0, _, e1 := Syscall(SYS_OPEN_BY_HANDLE_AT, uintptr(mountFD), uintptr(unsafe.Pointer(fh)), uintptr(flags))
1706 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1708 func Dup2(oldfd int, newfd int) (err error) {
1709 _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
1716 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1718 func EpollCreate(size int) (fd int, err error) {
1719 r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
1727 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1729 func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
1730 var _p0 unsafe.Pointer
1731 if len(events) > 0 {
1732 _p0 = unsafe.Pointer(&events[0])
1734 _p0 = unsafe.Pointer(&_zero)
1736 r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
1744 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1746 func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
1747 _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0)
1754 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1756 func Fchown(fd int, uid int, gid int) (err error) {
1757 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
1764 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1766 func Fstatfs(fd int, buf *Statfs_t) (err error) {
1767 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0)
1774 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1776 func Ftruncate(fd int, length int64) (err error) {
1777 _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0)
1784 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1786 func Getegid() (egid int) {
1787 r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0)
1792 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1794 func Geteuid() (euid int) {
1795 r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0)
1800 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1802 func Getgid() (gid int) {
1803 r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0)
1808 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1810 func Getrlimit(resource int, rlim *Rlimit) (err error) {
1811 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
1818 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1820 func Getuid() (uid int) {
1821 r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0)
1826 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1828 func Lchown(path string, uid int, gid int) (err error) {
1830 _p0, err = BytePtrFromString(path)
1834 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
1841 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1843 func Listen(s int, n int) (err error) {
1844 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0)
1851 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1853 func Pause() (err error) {
1854 _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0)
1861 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1863 func Pread(fd int, p []byte, offset int64) (n int, err error) {
1864 var _p0 unsafe.Pointer
1866 _p0 = unsafe.Pointer(&p[0])
1868 _p0 = unsafe.Pointer(&_zero)
1870 r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
1878 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1880 func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
1881 var _p0 unsafe.Pointer
1883 _p0 = unsafe.Pointer(&p[0])
1885 _p0 = unsafe.Pointer(&_zero)
1887 r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
1895 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1897 func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
1899 _p0, err = BytePtrFromString(oldpath)
1904 _p1, err = BytePtrFromString(newpath)
1908 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
1915 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1917 func Seek(fd int, offset int64, whence int) (off int64, err error) {
1918 r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence))
1926 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1928 func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
1929 r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
1937 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1939 func Setfsgid(gid int) (err error) {
1940 _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
1947 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1949 func Setfsuid(uid int) (err error) {
1950 _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
1957 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1959 func Setregid(rgid int, egid int) (err error) {
1960 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
1967 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1969 func Setresgid(rgid int, egid int, sgid int) (err error) {
1970 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
1977 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1979 func Setresuid(ruid int, euid int, suid int) (err error) {
1980 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
1987 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1989 func Setrlimit(resource int, rlim *Rlimit) (err error) {
1990 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
1997 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1999 func Setreuid(ruid int, euid int) (err error) {
2000 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
2007 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2009 func Shutdown(fd int, how int) (err error) {
2010 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0)
2017 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2019 func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
2020 r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
2028 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2030 func Statfs(path string, buf *Statfs_t) (err error) {
2032 _p0, err = BytePtrFromString(path)
2036 _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
2043 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2045 func SyncFileRange(fd int, off int64, n int64, flags int) (err error) {
2046 _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0)
2053 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2055 func Truncate(path string, length int64) (err error) {
2057 _p0, err = BytePtrFromString(path)
2061 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
2068 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2070 func Ustat(dev int, ubuf *Ustat_t) (err error) {
2071 _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
2078 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2080 func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
2081 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
2089 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2091 func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
2092 r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
2100 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2102 func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
2103 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
2110 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2112 func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
2113 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
2120 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2122 func getgroups(n int, list *_Gid_t) (nn int, err error) {
2123 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
2131 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2133 func setgroups(n int, list *_Gid_t) (err error) {
2134 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
2141 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2143 func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
2144 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
2151 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2153 func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
2154 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
2161 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2163 func socket(domain int, typ int, proto int) (fd int, err error) {
2164 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
2172 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2174 func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
2175 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
2182 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2184 func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
2185 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
2192 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2194 func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
2195 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
2202 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2204 func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
2205 var _p0 unsafe.Pointer
2207 _p0 = unsafe.Pointer(&p[0])
2209 _p0 = unsafe.Pointer(&_zero)
2211 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
2219 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2221 func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
2222 var _p0 unsafe.Pointer
2224 _p0 = unsafe.Pointer(&buf[0])
2226 _p0 = unsafe.Pointer(&_zero)
2228 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
2235 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2237 func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
2238 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
2246 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2248 func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
2249 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
2257 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2259 func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
2260 r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset))
2268 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2270 func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
2272 _p0, err = BytePtrFromString(path)
2276 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
2283 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2285 func Gettimeofday(tv *Timeval) (err error) {
2286 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
2293 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2295 func Utime(path string, buf *Utimbuf) (err error) {
2297 _p0, err = BytePtrFromString(path)
2301 _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
2308 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2310 func utimes(path string, times *[2]Timeval) (err error) {
2312 _p0, err = BytePtrFromString(path)
2316 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
2323 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2325 func pipe2(p *[2]_C_int, flags int) (err error) {
2326 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
2333 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2335 func fstat(fd int, st *stat_t) (err error) {
2336 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(st)), 0)
2343 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2345 func fstatat(dirfd int, path string, st *stat_t, flags int) (err error) {
2347 _p0, err = BytePtrFromString(path)
2351 _, _, e1 := Syscall6(SYS_NEWFSTATAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(st)), uintptr(flags), 0, 0)
2358 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2360 func lstat(path string, st *stat_t) (err error) {
2362 _p0, err = BytePtrFromString(path)
2366 _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(st)), 0)
2373 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2375 func stat(path string, st *stat_t) (err error) {
2377 _p0, err = BytePtrFromString(path)
2381 _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(st)), 0)
2388 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2390 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
2391 r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))