1 // Code generated by mkmerge; DO NOT EDIT.
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)
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
) {
28 _p0
, err
= BytePtrFromString(path
)
32 _
, _
, e1
:= Syscall(SYS_FCHMODAT
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(mode
))
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
))
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
))
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
) {
63 _p0
, err
= BytePtrFromString(oldpath
)
68 _p1
, err
= BytePtrFromString(newpath
)
72 _
, _
, e1
:= Syscall6(SYS_LINKAT
, uintptr(olddirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(newdirfd
), uintptr(unsafe
.Pointer(_p1
)), uintptr(flags
), 0)
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
) {
83 _p0
, err
= BytePtrFromString(path
)
87 r0
, _
, e1
:= Syscall6(SYS_OPENAT
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(flags
), uintptr(mode
), 0, 0)
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
) {
99 _p0
, err
= BytePtrFromString(path
)
103 r0
, _
, e1
:= Syscall6(SYS_OPENAT2
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(unsafe
.Pointer(open_how
)), uintptr(size
), 0, 0)
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)
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)
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
) {
136 _p0
, err
= BytePtrFromString(path
)
140 var _p1 unsafe
.Pointer
142 _p1
= unsafe
.Pointer(&buf
[0])
144 _p1
= unsafe
.Pointer(&_zero
)
146 r0
, _
, e1
:= Syscall6(SYS_READLINKAT
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(_p1
), uintptr(len(buf
)), 0, 0)
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
) {
158 _p0
, err
= BytePtrFromString(oldpath
)
163 _p1
, err
= BytePtrFromString(newpath
)
167 _
, _
, e1
:= Syscall(SYS_SYMLINKAT
, uintptr(unsafe
.Pointer(_p0
)), uintptr(newdirfd
), uintptr(unsafe
.Pointer(_p1
)))
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
) {
178 _p0
, err
= BytePtrFromString(path
)
182 _
, _
, e1
:= Syscall(SYS_UNLINKAT
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(flags
))
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
) {
193 _p0
, err
= BytePtrFromString(path
)
197 _
, _
, e1
:= Syscall6(SYS_UTIMENSAT
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(unsafe
.Pointer(times
)), uintptr(flags
), 0, 0)
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
209 _p0
= unsafe
.Pointer(&buf
[0])
211 _p0
= unsafe
.Pointer(&_zero
)
213 r0
, _
, e1
:= Syscall(SYS_GETCWD
, uintptr(_p0
), uintptr(len(buf
)), 0)
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)
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)
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)
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
258 _p0
= unsafe
.Pointer(&buf
[0])
260 _p0
= unsafe
.Pointer(&_zero
)
262 r0
, _
, e1
:= Syscall6(SYS_KEYCTL
, uintptr(cmd
), uintptr(arg2
), uintptr(_p0
), uintptr(len(buf
)), uintptr(arg5
), 0)
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
) {
274 _p0
, err
= BytePtrFromString(arg2
)
278 r0
, _
, e1
:= Syscall(SYS_KEYCTL
, uintptr(cmd
), uintptr(unsafe
.Pointer(_p0
)), 0)
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
) {
290 _p0
, err
= BytePtrFromString(arg3
)
295 _p1
, err
= BytePtrFromString(arg4
)
299 r0
, _
, e1
:= Syscall6(SYS_KEYCTL
, uintptr(cmd
), uintptr(arg2
), uintptr(unsafe
.Pointer(_p0
)), uintptr(unsafe
.Pointer(_p1
)), uintptr(arg5
), 0)
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])
314 _p0
= unsafe
.Pointer(&_zero
)
316 _
, _
, e1
:= Syscall6(SYS_KEYCTL
, uintptr(cmd
), uintptr(arg2
), uintptr(_p0
), uintptr(len(payload
)), uintptr(arg5
), 0)
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
328 _p0
= unsafe
.Pointer(&buf
[0])
330 _p0
= unsafe
.Pointer(&_zero
)
332 r0
, _
, e1
:= Syscall6(SYS_KEYCTL
, uintptr(cmd
), uintptr(unsafe
.Pointer(arg2
)), uintptr(_p0
), uintptr(len(buf
)), 0, 0)
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
) {
344 _p0
, err
= BytePtrFromString(keyType
)
349 _p1
, err
= BytePtrFromString(restriction
)
353 _
, _
, e1
:= Syscall6(SYS_KEYCTL
, uintptr(cmd
), uintptr(arg2
), uintptr(unsafe
.Pointer(_p0
)), uintptr(unsafe
.Pointer(_p1
)), 0, 0)
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)
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)
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
) {
384 _p0
, err
= BytePtrFromString(arg
)
388 _
, _
, e1
:= Syscall6(SYS_REBOOT
, uintptr(magic1
), uintptr(magic2
), uintptr(cmd
), uintptr(unsafe
.Pointer(_p0
)), 0, 0)
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
) {
399 _p0
, err
= BytePtrFromString(source
)
404 _p1
, err
= BytePtrFromString(target
)
409 _p2
, err
= BytePtrFromString(fstype
)
413 _
, _
, e1
:= Syscall6(SYS_MOUNT
, uintptr(unsafe
.Pointer(_p0
)), uintptr(unsafe
.Pointer(_p1
)), uintptr(unsafe
.Pointer(_p2
)), uintptr(flags
), uintptr(unsafe
.Pointer(data
)), 0)
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
) {
424 _p0
, err
= BytePtrFromString(pathname
)
428 _
, _
, e1
:= Syscall6(SYS_MOUNT_SETATTR
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(flags
), uintptr(unsafe
.Pointer(attr
)), uintptr(size
), 0)
435 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
437 func Acct(path
string) (err error
) {
439 _p0
, err
= BytePtrFromString(path
)
443 _
, _
, e1
:= Syscall(SYS_ACCT
, uintptr(unsafe
.Pointer(_p0
)), 0, 0)
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
) {
454 _p0
, err
= BytePtrFromString(keyType
)
459 _p1
, err
= BytePtrFromString(description
)
463 var _p2 unsafe
.Pointer
464 if len(payload
) > 0 {
465 _p2
= unsafe
.Pointer(&payload
[0])
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)
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)
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)
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)
508 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
510 func Chdir(path
string) (err error
) {
512 _p0
, err
= BytePtrFromString(path
)
516 _
, _
, e1
:= Syscall(SYS_CHDIR
, uintptr(unsafe
.Pointer(_p0
)), 0, 0)
523 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
525 func Chroot(path
string) (err error
) {
527 _p0
, err
= BytePtrFromString(path
)
531 _
, _
, e1
:= Syscall(SYS_CHROOT
, uintptr(unsafe
.Pointer(_p0
)), 0, 0)
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)
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)
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)
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)
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
))
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
))
599 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
601 func DeleteModule(name
string, flags
int) (err error
) {
603 _p0
, err
= BytePtrFromString(name
)
607 _
, _
, e1
:= Syscall(SYS_DELETE_MODULE
, uintptr(unsafe
.Pointer(_p0
)), uintptr(flags
), 0)
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)
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
))
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)
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)
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)
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)
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)
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)
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
) {
698 _p0
, err
= BytePtrFromString(path
)
702 _
, _
, e1
:= Syscall6(SYS_FCHOWNAT
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(uid
), uintptr(gid
), uintptr(flags
), 0)
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)
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
) {
723 _p0
, err
= BytePtrFromString(attr
)
727 var _p1 unsafe
.Pointer
729 _p1
= unsafe
.Pointer(&dest
[0])
731 _p1
= unsafe
.Pointer(&_zero
)
733 r0
, _
, e1
:= Syscall6(SYS_FGETXATTR
, uintptr(fd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(_p1
), uintptr(len(dest
)), 0, 0)
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
) {
745 _p0
, err
= BytePtrFromString(params
)
749 _
, _
, e1
:= Syscall(SYS_FINIT_MODULE
, uintptr(fd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(flags
))
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
761 _p0
= unsafe
.Pointer(&dest
[0])
763 _p0
= unsafe
.Pointer(&_zero
)
765 r0
, _
, e1
:= Syscall(SYS_FLISTXATTR
, uintptr(fd
), uintptr(_p0
), uintptr(len(dest
)))
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)
783 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
785 func Fremovexattr(fd
int, attr
string) (err error
) {
787 _p0
, err
= BytePtrFromString(attr
)
791 _
, _
, e1
:= Syscall(SYS_FREMOVEXATTR
, uintptr(fd
), uintptr(unsafe
.Pointer(_p0
)), 0)
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
) {
802 _p0
, err
= BytePtrFromString(attr
)
806 var _p1 unsafe
.Pointer
808 _p1
= unsafe
.Pointer(&dest
[0])
810 _p1
= unsafe
.Pointer(&_zero
)
812 _
, _
, e1
:= Syscall6(SYS_FSETXATTR
, uintptr(fd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(_p1
), uintptr(len(dest
)), uintptr(flags
), 0)
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)
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
))
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
) {
844 _p0
, err
= BytePtrFromString(fsName
)
848 r0
, _
, e1
:= Syscall(SYS_FSOPEN
, uintptr(unsafe
.Pointer(_p0
)), uintptr(flags
), 0)
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
) {
860 _p0
, err
= BytePtrFromString(pathName
)
864 r0
, _
, e1
:= Syscall(SYS_FSPICK
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(flags
))
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
877 _p0
= unsafe
.Pointer(&buf
[0])
879 _p0
= unsafe
.Pointer(&_zero
)
881 r0
, _
, e1
:= Syscall(SYS_GETDENTS64
, uintptr(fd
), uintptr(_p0
), uintptr(len(buf
)))
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)
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)
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)
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)
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
932 _p0
= unsafe
.Pointer(&buf
[0])
934 _p0
= unsafe
.Pointer(&_zero
)
936 r0
, _
, e1
:= Syscall(SYS_GETRANDOM
, uintptr(_p0
), uintptr(len(buf
)), uintptr(flags
))
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)
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)
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)
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
) {
977 _p0
, err
= BytePtrFromString(path
)
982 _p1
, err
= BytePtrFromString(attr
)
986 var _p2 unsafe
.Pointer
988 _p2
= unsafe
.Pointer(&dest
[0])
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)
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])
1007 _p0
= unsafe
.Pointer(&_zero
)
1010 _p1
, err
= BytePtrFromString(params
)
1014 _
, _
, e1
:= Syscall(SYS_INIT_MODULE
, uintptr(_p0
), uintptr(len(moduleImage
)), uintptr(unsafe
.Pointer(_p1
)))
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
) {
1025 _p0
, err
= BytePtrFromString(pathname
)
1029 r0
, _
, e1
:= Syscall(SYS_INOTIFY_ADD_WATCH
, uintptr(fd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(mask
))
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)
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)
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)
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
1074 _p0
= unsafe
.Pointer(&buf
[0])
1076 _p0
= unsafe
.Pointer(&_zero
)
1078 r0
, _
, e1
:= Syscall(SYS_SYSLOG
, uintptr(typ
), uintptr(_p0
), uintptr(len(buf
)))
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
) {
1090 _p0
, err
= BytePtrFromString(path
)
1095 _p1
, err
= BytePtrFromString(attr
)
1099 var _p2 unsafe
.Pointer
1101 _p2
= unsafe
.Pointer(&dest
[0])
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)
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
) {
1117 _p0
, err
= BytePtrFromString(path
)
1121 var _p1 unsafe
.Pointer
1123 _p1
= unsafe
.Pointer(&dest
[0])
1125 _p1
= unsafe
.Pointer(&_zero
)
1127 r0
, _
, e1
:= Syscall(SYS_LISTXATTR
, uintptr(unsafe
.Pointer(_p0
)), uintptr(_p1
), uintptr(len(dest
)))
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
) {
1139 _p0
, err
= BytePtrFromString(path
)
1143 var _p1 unsafe
.Pointer
1145 _p1
= unsafe
.Pointer(&dest
[0])
1147 _p1
= unsafe
.Pointer(&_zero
)
1149 r0
, _
, e1
:= Syscall(SYS_LLISTXATTR
, uintptr(unsafe
.Pointer(_p0
)), uintptr(_p1
), uintptr(len(dest
)))
1157 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1159 func Lremovexattr(path
string, attr
string) (err error
) {
1161 _p0
, err
= BytePtrFromString(path
)
1166 _p1
, err
= BytePtrFromString(attr
)
1170 _
, _
, e1
:= Syscall(SYS_LREMOVEXATTR
, uintptr(unsafe
.Pointer(_p0
)), uintptr(unsafe
.Pointer(_p1
)), 0)
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
) {
1181 _p0
, err
= BytePtrFromString(path
)
1186 _p1
, err
= BytePtrFromString(attr
)
1190 var _p2 unsafe
.Pointer
1192 _p2
= unsafe
.Pointer(&data
[0])
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)
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
) {
1207 _p0
, err
= BytePtrFromString(name
)
1211 r0
, _
, e1
:= Syscall(SYS_MEMFD_CREATE
, uintptr(unsafe
.Pointer(_p0
)), uintptr(flags
), 0)
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
) {
1223 _p0
, err
= BytePtrFromString(path
)
1227 _
, _
, e1
:= Syscall(SYS_MKDIRAT
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(mode
))
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
) {
1238 _p0
, err
= BytePtrFromString(path
)
1242 _
, _
, e1
:= Syscall6(SYS_MKNODAT
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(mode
), uintptr(dev
), 0, 0)
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
) {
1253 _p0
, err
= BytePtrFromString(fromPathName
)
1258 _p1
, err
= BytePtrFromString(toPathName
)
1262 _
, _
, e1
:= Syscall6(SYS_MOVE_MOUNT
, uintptr(fromDirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(toDirfd
), uintptr(unsafe
.Pointer(_p1
)), uintptr(flags
), 0)
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)
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
) {
1283 _p0
, err
= BytePtrFromString(fileName
)
1287 r0
, _
, e1
:= Syscall(SYS_OPEN_TREE
, uintptr(dfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(flags
))
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)
1306 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1308 func PivotRoot(newroot
string, putold
string) (err error
) {
1310 _p0
, err
= BytePtrFromString(newroot
)
1315 _p1
, err
= BytePtrFromString(putold
)
1319 _
, _
, e1
:= Syscall(SYS_PIVOT_ROOT
, uintptr(unsafe
.Pointer(_p0
)), uintptr(unsafe
.Pointer(_p1
)), 0)
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)
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)
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
)))
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
1362 _p0
= unsafe
.Pointer(&p
[0])
1364 _p0
= unsafe
.Pointer(&_zero
)
1366 r0
, _
, e1
:= Syscall(SYS_READ
, uintptr(fd
), uintptr(_p0
), uintptr(len(p
)))
1374 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1376 func Removexattr(path
string, attr
string) (err error
) {
1378 _p0
, err
= BytePtrFromString(path
)
1383 _p1
, err
= BytePtrFromString(attr
)
1387 _
, _
, e1
:= Syscall(SYS_REMOVEXATTR
, uintptr(unsafe
.Pointer(_p0
)), uintptr(unsafe
.Pointer(_p1
)), 0)
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
) {
1398 _p0
, err
= BytePtrFromString(oldpath
)
1403 _p1
, err
= BytePtrFromString(newpath
)
1407 _
, _
, e1
:= Syscall6(SYS_RENAMEAT2
, uintptr(olddirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(newdirfd
), uintptr(unsafe
.Pointer(_p1
)), uintptr(flags
), 0)
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
) {
1418 _p0
, err
= BytePtrFromString(keyType
)
1423 _p1
, err
= BytePtrFromString(description
)
1428 _p2
, err
= BytePtrFromString(callback
)
1432 r0
, _
, e1
:= Syscall6(SYS_REQUEST_KEY
, uintptr(unsafe
.Pointer(_p0
)), uintptr(unsafe
.Pointer(_p1
)), uintptr(unsafe
.Pointer(_p2
)), uintptr(destRingid
), 0, 0)
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
1445 _p0
= unsafe
.Pointer(&p
[0])
1447 _p0
= unsafe
.Pointer(&_zero
)
1449 _
, _
, e1
:= Syscall(SYS_SETDOMAINNAME
, uintptr(_p0
), uintptr(len(p
)), 0)
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
1461 _p0
= unsafe
.Pointer(&p
[0])
1463 _p0
= unsafe
.Pointer(&_zero
)
1465 _
, _
, e1
:= Syscall(SYS_SETHOSTNAME
, uintptr(_p0
), uintptr(len(p
)), 0)
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)
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)
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)
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)
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
))
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
) {
1527 _p0
, err
= BytePtrFromString(path
)
1532 _p1
, err
= BytePtrFromString(attr
)
1536 var _p2 unsafe
.Pointer
1538 _p2
= unsafe
.Pointer(&data
[0])
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)
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)
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
) {
1564 _p0
, err
= BytePtrFromString(path
)
1568 _
, _
, e1
:= Syscall6(SYS_STATX
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(flags
), uintptr(mask
), uintptr(unsafe
.Pointer(stat
)), 0)
1575 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1578 SyscallNoError(SYS_SYNC
, 0, 0, 0)
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)
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)
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)
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)
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)
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
))
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)
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)
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)
1672 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1674 func Unmount(target
string, flags
int) (err error
) {
1676 _p0
, err
= BytePtrFromString(target
)
1680 _
, _
, e1
:= Syscall(SYS_UMOUNT2
, uintptr(unsafe
.Pointer(_p0
)), uintptr(flags
), 0)
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)
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
1702 _p0
= unsafe
.Pointer(&p
[0])
1704 _p0
= unsafe
.Pointer(&_zero
)
1706 r0
, _
, e1
:= Syscall(SYS_WRITE
, uintptr(fd
), uintptr(_p0
), uintptr(len(p
)))
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)
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
))
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
))
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
1751 _p0
= unsafe
.Pointer(&iovs
[0])
1753 _p0
= unsafe
.Pointer(&_zero
)
1755 r0
, _
, e1
:= Syscall(SYS_READV
, uintptr(fd
), uintptr(_p0
), uintptr(len(iovs
)))
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
1768 _p0
= unsafe
.Pointer(&iovs
[0])
1770 _p0
= unsafe
.Pointer(&_zero
)
1772 r0
, _
, e1
:= Syscall(SYS_WRITEV
, uintptr(fd
), uintptr(_p0
), uintptr(len(iovs
)))
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
1785 _p0
= unsafe
.Pointer(&iovs
[0])
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)
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
1802 _p0
= unsafe
.Pointer(&iovs
[0])
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)
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
1819 _p0
= unsafe
.Pointer(&iovs
[0])
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
))
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
1836 _p0
= unsafe
.Pointer(&iovs
[0])
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
))
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)
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
1863 _p0
= unsafe
.Pointer(&b
[0])
1865 _p0
= unsafe
.Pointer(&_zero
)
1867 _
, _
, e1
:= Syscall(SYS_MADVISE
, uintptr(_p0
), uintptr(len(b
)), uintptr(advice
))
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
1879 _p0
= unsafe
.Pointer(&b
[0])
1881 _p0
= unsafe
.Pointer(&_zero
)
1883 _
, _
, e1
:= Syscall(SYS_MPROTECT
, uintptr(_p0
), uintptr(len(b
)), uintptr(prot
))
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
1895 _p0
= unsafe
.Pointer(&b
[0])
1897 _p0
= unsafe
.Pointer(&_zero
)
1899 _
, _
, e1
:= Syscall(SYS_MLOCK
, uintptr(_p0
), uintptr(len(b
)), 0)
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)
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
1921 _p0
= unsafe
.Pointer(&b
[0])
1923 _p0
= unsafe
.Pointer(&_zero
)
1925 _
, _
, e1
:= Syscall(SYS_MSYNC
, uintptr(_p0
), uintptr(len(b
)), uintptr(flags
))
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
1937 _p0
= unsafe
.Pointer(&b
[0])
1939 _p0
= unsafe
.Pointer(&_zero
)
1941 _
, _
, e1
:= Syscall(SYS_MUNLOCK
, uintptr(_p0
), uintptr(len(b
)), 0)
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)
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
) {
1962 _p0
, err
= BytePtrFromString(path
)
1966 _
, _
, e1
:= Syscall(SYS_FACCESSAT
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(mode
))
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
) {
1977 _p0
, err
= BytePtrFromString(path
)
1981 _
, _
, e1
:= Syscall6(SYS_FACCESSAT2
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(mode
), uintptr(flags
), 0, 0)
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
) {
1992 _p0
, err
= BytePtrFromString(pathname
)
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)
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
))
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])
2021 _p0
= unsafe
.Pointer(&_zero
)
2023 var _p1 unsafe
.Pointer
2024 if len(remoteIov
) > 0 {
2025 _p1
= unsafe
.Pointer(&remoteIov
[0])
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
))
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])
2044 _p0
= unsafe
.Pointer(&_zero
)
2046 var _p1 unsafe
.Pointer
2047 if len(remoteIov
) > 0 {
2048 _p1
= unsafe
.Pointer(&remoteIov
[0])
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
))
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)
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
))
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)
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
))
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
)))
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)
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
))
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)
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
)))
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)