1 // go run mksyscall.go -tags linux,arm64 syscall_linux.go syscall_linux_arm64.go
2 // Code generated by the command above; see README.md. DO NOT EDIT.
4 //go:build linux && arm64
16 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
18 func fanotifyMark(fd
int, flags
uint, mask
uint64, dirFd
int, pathname
*byte) (err error
) {
19 _
, _
, e1
:= Syscall6(SYS_FANOTIFY_MARK
, uintptr(fd
), uintptr(flags
), uintptr(mask
), uintptr(dirFd
), uintptr(unsafe
.Pointer(pathname
)), 0)
26 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
28 func Fallocate(fd
int, mode
uint32, off
int64, len int64) (err error
) {
29 _
, _
, e1
:= Syscall6(SYS_FALLOCATE
, uintptr(fd
), uintptr(mode
), uintptr(off
), uintptr(len), 0, 0)
36 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
38 func Tee(rfd
int, wfd
int, len int, flags
int) (n
int64, err error
) {
39 r0
, _
, e1
:= Syscall6(SYS_TEE
, uintptr(rfd
), uintptr(wfd
), uintptr(len), uintptr(flags
), 0, 0)
47 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
49 func EpollWait(epfd
int, events
[]EpollEvent
, msec
int) (n
int, err error
) {
50 var _p0 unsafe
.Pointer
52 _p0
= unsafe
.Pointer(&events
[0])
54 _p0
= unsafe
.Pointer(&_zero
)
56 r0
, _
, e1
:= Syscall6(SYS_EPOLL_PWAIT
, uintptr(epfd
), uintptr(_p0
), uintptr(len(events
)), uintptr(msec
), 0, 0)
64 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
66 func Fadvise(fd
int, offset
int64, length
int64, advice
int) (err error
) {
67 _
, _
, e1
:= Syscall6(SYS_FADVISE64
, uintptr(fd
), uintptr(offset
), uintptr(length
), uintptr(advice
), 0, 0)
74 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
76 func Fchown(fd
int, uid
int, gid
int) (err error
) {
77 _
, _
, e1
:= Syscall(SYS_FCHOWN
, uintptr(fd
), uintptr(uid
), uintptr(gid
))
84 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
86 func Fstat(fd
int, stat
*Stat_t
) (err error
) {
87 _
, _
, e1
:= Syscall(SYS_FSTAT
, uintptr(fd
), uintptr(unsafe
.Pointer(stat
)), 0)
94 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
96 func Fstatat(fd
int, path
string, stat
*Stat_t
, flags
int) (err error
) {
98 _p0
, err
= BytePtrFromString(path
)
102 _
, _
, e1
:= Syscall6(SYS_FSTATAT
, uintptr(fd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(unsafe
.Pointer(stat
)), uintptr(flags
), 0, 0)
109 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
111 func Fstatfs(fd
int, buf
*Statfs_t
) (err error
) {
112 _
, _
, e1
:= Syscall(SYS_FSTATFS
, uintptr(fd
), uintptr(unsafe
.Pointer(buf
)), 0)
119 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
121 func Ftruncate(fd
int, length
int64) (err error
) {
122 _
, _
, e1
:= Syscall(SYS_FTRUNCATE
, uintptr(fd
), uintptr(length
), 0)
129 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
131 func Getegid() (egid
int) {
132 r0
, _
:= RawSyscallNoError(SYS_GETEGID
, 0, 0, 0)
137 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
139 func Geteuid() (euid
int) {
140 r0
, _
:= RawSyscallNoError(SYS_GETEUID
, 0, 0, 0)
145 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
147 func Getgid() (gid
int) {
148 r0
, _
:= RawSyscallNoError(SYS_GETGID
, 0, 0, 0)
153 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
155 func getrlimit(resource
int, rlim
*Rlimit
) (err error
) {
156 _
, _
, e1
:= RawSyscall(SYS_GETRLIMIT
, uintptr(resource
), uintptr(unsafe
.Pointer(rlim
)), 0)
163 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
165 func Getuid() (uid
int) {
166 r0
, _
:= RawSyscallNoError(SYS_GETUID
, 0, 0, 0)
171 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
173 func Listen(s
int, n
int) (err error
) {
174 _
, _
, e1
:= Syscall(SYS_LISTEN
, uintptr(s
), uintptr(n
), 0)
181 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
183 func MemfdSecret(flags
int) (fd
int, err error
) {
184 r0
, _
, e1
:= Syscall(SYS_MEMFD_SECRET
, uintptr(flags
), 0, 0)
192 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
194 func pread(fd
int, p
[]byte, offset
int64) (n
int, err error
) {
195 var _p0 unsafe
.Pointer
197 _p0
= unsafe
.Pointer(&p
[0])
199 _p0
= unsafe
.Pointer(&_zero
)
201 r0
, _
, e1
:= Syscall6(SYS_PREAD64
, uintptr(fd
), uintptr(_p0
), uintptr(len(p
)), uintptr(offset
), 0, 0)
209 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
211 func pwrite(fd
int, p
[]byte, offset
int64) (n
int, err error
) {
212 var _p0 unsafe
.Pointer
214 _p0
= unsafe
.Pointer(&p
[0])
216 _p0
= unsafe
.Pointer(&_zero
)
218 r0
, _
, e1
:= Syscall6(SYS_PWRITE64
, uintptr(fd
), uintptr(_p0
), uintptr(len(p
)), uintptr(offset
), 0, 0)
226 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
228 func Renameat(olddirfd
int, oldpath
string, newdirfd
int, newpath
string) (err error
) {
230 _p0
, err
= BytePtrFromString(oldpath
)
235 _p1
, err
= BytePtrFromString(newpath
)
239 _
, _
, e1
:= Syscall6(SYS_RENAMEAT
, uintptr(olddirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(newdirfd
), uintptr(unsafe
.Pointer(_p1
)), 0, 0)
246 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
248 func Seek(fd
int, offset
int64, whence
int) (off
int64, err error
) {
249 r0
, _
, e1
:= Syscall(SYS_LSEEK
, uintptr(fd
), uintptr(offset
), uintptr(whence
))
257 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
259 func sendfile(outfd
int, infd
int, offset
*int64, count
int) (written
int, err error
) {
260 r0
, _
, e1
:= Syscall6(SYS_SENDFILE
, uintptr(outfd
), uintptr(infd
), uintptr(unsafe
.Pointer(offset
)), uintptr(count
), 0, 0)
268 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
270 func setfsgid(gid
int) (prev
int, err error
) {
271 r0
, _
, e1
:= Syscall(SYS_SETFSGID
, uintptr(gid
), 0, 0)
279 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
281 func setfsuid(uid
int) (prev
int, err error
) {
282 r0
, _
, e1
:= Syscall(SYS_SETFSUID
, uintptr(uid
), 0, 0)
290 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
292 func setrlimit(resource
int, rlim
*Rlimit
) (err error
) {
293 _
, _
, e1
:= RawSyscall(SYS_SETRLIMIT
, uintptr(resource
), uintptr(unsafe
.Pointer(rlim
)), 0)
300 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
302 func Shutdown(fd
int, how
int) (err error
) {
303 _
, _
, e1
:= Syscall(SYS_SHUTDOWN
, uintptr(fd
), uintptr(how
), 0)
310 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
312 func Splice(rfd
int, roff
*int64, wfd
int, woff
*int64, len int, flags
int) (n
int64, err error
) {
313 r0
, _
, e1
:= Syscall6(SYS_SPLICE
, uintptr(rfd
), uintptr(unsafe
.Pointer(roff
)), uintptr(wfd
), uintptr(unsafe
.Pointer(woff
)), uintptr(len), uintptr(flags
))
321 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
323 func Statfs(path
string, buf
*Statfs_t
) (err error
) {
325 _p0
, err
= BytePtrFromString(path
)
329 _
, _
, e1
:= Syscall(SYS_STATFS
, uintptr(unsafe
.Pointer(_p0
)), uintptr(unsafe
.Pointer(buf
)), 0)
336 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
338 func SyncFileRange(fd
int, off
int64, n
int64, flags
int) (err error
) {
339 _
, _
, e1
:= Syscall6(SYS_SYNC_FILE_RANGE
, uintptr(fd
), uintptr(off
), uintptr(n
), uintptr(flags
), 0, 0)
346 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
348 func Truncate(path
string, length
int64) (err error
) {
350 _p0
, err
= BytePtrFromString(path
)
354 _
, _
, e1
:= Syscall(SYS_TRUNCATE
, uintptr(unsafe
.Pointer(_p0
)), uintptr(length
), 0)
361 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
363 func accept4(s
int, rsa
*RawSockaddrAny
, addrlen
*_Socklen
, flags
int) (fd
int, err error
) {
364 r0
, _
, e1
:= Syscall6(SYS_ACCEPT4
, uintptr(s
), uintptr(unsafe
.Pointer(rsa
)), uintptr(unsafe
.Pointer(addrlen
)), uintptr(flags
), 0, 0)
372 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
374 func bind(s
int, addr unsafe
.Pointer
, addrlen _Socklen
) (err error
) {
375 _
, _
, e1
:= Syscall(SYS_BIND
, uintptr(s
), uintptr(addr
), uintptr(addrlen
))
382 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
384 func connect(s
int, addr unsafe
.Pointer
, addrlen _Socklen
) (err error
) {
385 _
, _
, e1
:= Syscall(SYS_CONNECT
, uintptr(s
), uintptr(addr
), uintptr(addrlen
))
392 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
394 func getgroups(n
int, list
*_Gid_t
) (nn
int, err error
) {
395 r0
, _
, e1
:= RawSyscall(SYS_GETGROUPS
, uintptr(n
), uintptr(unsafe
.Pointer(list
)), 0)
403 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
405 func setgroups(n
int, list
*_Gid_t
) (err error
) {
406 _
, _
, e1
:= RawSyscall(SYS_SETGROUPS
, uintptr(n
), uintptr(unsafe
.Pointer(list
)), 0)
413 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
415 func getsockopt(s
int, level
int, name
int, val unsafe
.Pointer
, vallen
*_Socklen
) (err error
) {
416 _
, _
, e1
:= Syscall6(SYS_GETSOCKOPT
, uintptr(s
), uintptr(level
), uintptr(name
), uintptr(val
), uintptr(unsafe
.Pointer(vallen
)), 0)
423 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
425 func setsockopt(s
int, level
int, name
int, val unsafe
.Pointer
, vallen
uintptr) (err error
) {
426 _
, _
, e1
:= Syscall6(SYS_SETSOCKOPT
, uintptr(s
), uintptr(level
), uintptr(name
), uintptr(val
), uintptr(vallen
), 0)
433 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
435 func socket(domain
int, typ
int, proto
int) (fd
int, err error
) {
436 r0
, _
, e1
:= RawSyscall(SYS_SOCKET
, uintptr(domain
), uintptr(typ
), uintptr(proto
))
444 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
446 func socketpair(domain
int, typ
int, proto
int, fd
*[2]int32) (err error
) {
447 _
, _
, e1
:= RawSyscall6(SYS_SOCKETPAIR
, uintptr(domain
), uintptr(typ
), uintptr(proto
), uintptr(unsafe
.Pointer(fd
)), 0, 0)
454 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
456 func getpeername(fd
int, rsa
*RawSockaddrAny
, addrlen
*_Socklen
) (err error
) {
457 _
, _
, e1
:= RawSyscall(SYS_GETPEERNAME
, uintptr(fd
), uintptr(unsafe
.Pointer(rsa
)), uintptr(unsafe
.Pointer(addrlen
)))
464 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
466 func getsockname(fd
int, rsa
*RawSockaddrAny
, addrlen
*_Socklen
) (err error
) {
467 _
, _
, e1
:= RawSyscall(SYS_GETSOCKNAME
, uintptr(fd
), uintptr(unsafe
.Pointer(rsa
)), uintptr(unsafe
.Pointer(addrlen
)))
474 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
476 func recvfrom(fd
int, p
[]byte, flags
int, from
*RawSockaddrAny
, fromlen
*_Socklen
) (n
int, err error
) {
477 var _p0 unsafe
.Pointer
479 _p0
= unsafe
.Pointer(&p
[0])
481 _p0
= unsafe
.Pointer(&_zero
)
483 r0
, _
, e1
:= Syscall6(SYS_RECVFROM
, uintptr(fd
), uintptr(_p0
), uintptr(len(p
)), uintptr(flags
), uintptr(unsafe
.Pointer(from
)), uintptr(unsafe
.Pointer(fromlen
)))
491 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
493 func sendto(s
int, buf
[]byte, flags
int, to unsafe
.Pointer
, addrlen _Socklen
) (err error
) {
494 var _p0 unsafe
.Pointer
496 _p0
= unsafe
.Pointer(&buf
[0])
498 _p0
= unsafe
.Pointer(&_zero
)
500 _
, _
, e1
:= Syscall6(SYS_SENDTO
, uintptr(s
), uintptr(_p0
), uintptr(len(buf
)), uintptr(flags
), uintptr(to
), uintptr(addrlen
))
507 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
509 func recvmsg(s
int, msg
*Msghdr
, flags
int) (n
int, err error
) {
510 r0
, _
, e1
:= Syscall(SYS_RECVMSG
, uintptr(s
), uintptr(unsafe
.Pointer(msg
)), uintptr(flags
))
518 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
520 func sendmsg(s
int, msg
*Msghdr
, flags
int) (n
int, err error
) {
521 r0
, _
, e1
:= Syscall(SYS_SENDMSG
, uintptr(s
), uintptr(unsafe
.Pointer(msg
)), uintptr(flags
))
529 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
531 func mmap(addr
uintptr, length
uintptr, prot
int, flags
int, fd
int, offset
int64) (xaddr
uintptr, err error
) {
532 r0
, _
, e1
:= Syscall6(SYS_MMAP
, uintptr(addr
), uintptr(length
), uintptr(prot
), uintptr(flags
), uintptr(fd
), uintptr(offset
))
540 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
542 func Gettimeofday(tv
*Timeval
) (err error
) {
543 _
, _
, e1
:= RawSyscall(SYS_GETTIMEOFDAY
, uintptr(unsafe
.Pointer(tv
)), 0, 0)
550 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
552 func kexecFileLoad(kernelFd
int, initrdFd
int, cmdlineLen
int, cmdline
string, flags
int) (err error
) {
554 _p0
, err
= BytePtrFromString(cmdline
)
558 _
, _
, e1
:= Syscall6(SYS_KEXEC_FILE_LOAD
, uintptr(kernelFd
), uintptr(initrdFd
), uintptr(cmdlineLen
), uintptr(unsafe
.Pointer(_p0
)), uintptr(flags
), 0)