1 // go run mksyscall.go -l32 -openbsd -arm -libc -tags openbsd,arm syscall_bsd.go syscall_openbsd.go syscall_openbsd_arm.go
2 // Code generated by the command above; see README.md. DO NOT EDIT.
4 //go:build openbsd && arm
16 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
18 func getgroups(ngid
int, gid
*_Gid_t
) (n
int, err error
) {
19 r0
, _
, e1
:= syscall_rawSyscall(libc_getgroups_trampoline_addr
, uintptr(ngid
), uintptr(unsafe
.Pointer(gid
)), 0)
27 var libc_getgroups_trampoline_addr
uintptr
29 //go:cgo_import_dynamic libc_getgroups getgroups "libc.so"
31 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
33 func setgroups(ngid
int, gid
*_Gid_t
) (err error
) {
34 _
, _
, e1
:= syscall_rawSyscall(libc_setgroups_trampoline_addr
, uintptr(ngid
), uintptr(unsafe
.Pointer(gid
)), 0)
41 var libc_setgroups_trampoline_addr
uintptr
43 //go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
45 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
47 func wait4(pid
int, wstatus
*_C_int
, options
int, rusage
*Rusage
) (wpid
int, err error
) {
48 r0
, _
, e1
:= syscall_syscall6(libc_wait4_trampoline_addr
, uintptr(pid
), uintptr(unsafe
.Pointer(wstatus
)), uintptr(options
), uintptr(unsafe
.Pointer(rusage
)), 0, 0)
56 var libc_wait4_trampoline_addr
uintptr
58 //go:cgo_import_dynamic libc_wait4 wait4 "libc.so"
60 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
62 func accept(s
int, rsa
*RawSockaddrAny
, addrlen
*_Socklen
) (fd
int, err error
) {
63 r0
, _
, e1
:= syscall_syscall(libc_accept_trampoline_addr
, uintptr(s
), uintptr(unsafe
.Pointer(rsa
)), uintptr(unsafe
.Pointer(addrlen
)))
71 var libc_accept_trampoline_addr
uintptr
73 //go:cgo_import_dynamic libc_accept accept "libc.so"
75 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
77 func bind(s
int, addr unsafe
.Pointer
, addrlen _Socklen
) (err error
) {
78 _
, _
, e1
:= syscall_syscall(libc_bind_trampoline_addr
, uintptr(s
), uintptr(addr
), uintptr(addrlen
))
85 var libc_bind_trampoline_addr
uintptr
87 //go:cgo_import_dynamic libc_bind bind "libc.so"
89 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
91 func connect(s
int, addr unsafe
.Pointer
, addrlen _Socklen
) (err error
) {
92 _
, _
, e1
:= syscall_syscall(libc_connect_trampoline_addr
, uintptr(s
), uintptr(addr
), uintptr(addrlen
))
99 var libc_connect_trampoline_addr
uintptr
101 //go:cgo_import_dynamic libc_connect connect "libc.so"
103 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
105 func socket(domain
int, typ
int, proto
int) (fd
int, err error
) {
106 r0
, _
, e1
:= syscall_rawSyscall(libc_socket_trampoline_addr
, uintptr(domain
), uintptr(typ
), uintptr(proto
))
114 var libc_socket_trampoline_addr
uintptr
116 //go:cgo_import_dynamic libc_socket socket "libc.so"
118 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
120 func getsockopt(s
int, level
int, name
int, val unsafe
.Pointer
, vallen
*_Socklen
) (err error
) {
121 _
, _
, e1
:= syscall_syscall6(libc_getsockopt_trampoline_addr
, uintptr(s
), uintptr(level
), uintptr(name
), uintptr(val
), uintptr(unsafe
.Pointer(vallen
)), 0)
128 var libc_getsockopt_trampoline_addr
uintptr
130 //go:cgo_import_dynamic libc_getsockopt getsockopt "libc.so"
132 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
134 func setsockopt(s
int, level
int, name
int, val unsafe
.Pointer
, vallen
uintptr) (err error
) {
135 _
, _
, e1
:= syscall_syscall6(libc_setsockopt_trampoline_addr
, uintptr(s
), uintptr(level
), uintptr(name
), uintptr(val
), uintptr(vallen
), 0)
142 var libc_setsockopt_trampoline_addr
uintptr
144 //go:cgo_import_dynamic libc_setsockopt setsockopt "libc.so"
146 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
148 func getpeername(fd
int, rsa
*RawSockaddrAny
, addrlen
*_Socklen
) (err error
) {
149 _
, _
, e1
:= syscall_rawSyscall(libc_getpeername_trampoline_addr
, uintptr(fd
), uintptr(unsafe
.Pointer(rsa
)), uintptr(unsafe
.Pointer(addrlen
)))
156 var libc_getpeername_trampoline_addr
uintptr
158 //go:cgo_import_dynamic libc_getpeername getpeername "libc.so"
160 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
162 func getsockname(fd
int, rsa
*RawSockaddrAny
, addrlen
*_Socklen
) (err error
) {
163 _
, _
, e1
:= syscall_rawSyscall(libc_getsockname_trampoline_addr
, uintptr(fd
), uintptr(unsafe
.Pointer(rsa
)), uintptr(unsafe
.Pointer(addrlen
)))
170 var libc_getsockname_trampoline_addr
uintptr
172 //go:cgo_import_dynamic libc_getsockname getsockname "libc.so"
174 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
176 func Shutdown(s
int, how
int) (err error
) {
177 _
, _
, e1
:= syscall_syscall(libc_shutdown_trampoline_addr
, uintptr(s
), uintptr(how
), 0)
184 var libc_shutdown_trampoline_addr
uintptr
186 //go:cgo_import_dynamic libc_shutdown shutdown "libc.so"
188 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
190 func socketpair(domain
int, typ
int, proto
int, fd
*[2]int32) (err error
) {
191 _
, _
, e1
:= syscall_rawSyscall6(libc_socketpair_trampoline_addr
, uintptr(domain
), uintptr(typ
), uintptr(proto
), uintptr(unsafe
.Pointer(fd
)), 0, 0)
198 var libc_socketpair_trampoline_addr
uintptr
200 //go:cgo_import_dynamic libc_socketpair socketpair "libc.so"
202 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
204 func recvfrom(fd
int, p
[]byte, flags
int, from
*RawSockaddrAny
, fromlen
*_Socklen
) (n
int, err error
) {
205 var _p0 unsafe
.Pointer
207 _p0
= unsafe
.Pointer(&p
[0])
209 _p0
= unsafe
.Pointer(&_zero
)
211 r0
, _
, e1
:= syscall_syscall6(libc_recvfrom_trampoline_addr
, uintptr(fd
), uintptr(_p0
), uintptr(len(p
)), uintptr(flags
), uintptr(unsafe
.Pointer(from
)), uintptr(unsafe
.Pointer(fromlen
)))
219 var libc_recvfrom_trampoline_addr
uintptr
221 //go:cgo_import_dynamic libc_recvfrom recvfrom "libc.so"
223 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
225 func sendto(s
int, buf
[]byte, flags
int, to unsafe
.Pointer
, addrlen _Socklen
) (err error
) {
226 var _p0 unsafe
.Pointer
228 _p0
= unsafe
.Pointer(&buf
[0])
230 _p0
= unsafe
.Pointer(&_zero
)
232 _
, _
, e1
:= syscall_syscall6(libc_sendto_trampoline_addr
, uintptr(s
), uintptr(_p0
), uintptr(len(buf
)), uintptr(flags
), uintptr(to
), uintptr(addrlen
))
239 var libc_sendto_trampoline_addr
uintptr
241 //go:cgo_import_dynamic libc_sendto sendto "libc.so"
243 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
245 func recvmsg(s
int, msg
*Msghdr
, flags
int) (n
int, err error
) {
246 r0
, _
, e1
:= syscall_syscall(libc_recvmsg_trampoline_addr
, uintptr(s
), uintptr(unsafe
.Pointer(msg
)), uintptr(flags
))
254 var libc_recvmsg_trampoline_addr
uintptr
256 //go:cgo_import_dynamic libc_recvmsg recvmsg "libc.so"
258 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
260 func sendmsg(s
int, msg
*Msghdr
, flags
int) (n
int, err error
) {
261 r0
, _
, e1
:= syscall_syscall(libc_sendmsg_trampoline_addr
, uintptr(s
), uintptr(unsafe
.Pointer(msg
)), uintptr(flags
))
269 var libc_sendmsg_trampoline_addr
uintptr
271 //go:cgo_import_dynamic libc_sendmsg sendmsg "libc.so"
273 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
275 func kevent(kq
int, change unsafe
.Pointer
, nchange
int, event unsafe
.Pointer
, nevent
int, timeout
*Timespec
) (n
int, err error
) {
276 r0
, _
, e1
:= syscall_syscall6(libc_kevent_trampoline_addr
, uintptr(kq
), uintptr(change
), uintptr(nchange
), uintptr(event
), uintptr(nevent
), uintptr(unsafe
.Pointer(timeout
)))
284 var libc_kevent_trampoline_addr
uintptr
286 //go:cgo_import_dynamic libc_kevent kevent "libc.so"
288 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
290 func utimes(path
string, timeval
*[2]Timeval
) (err error
) {
292 _p0
, err
= BytePtrFromString(path
)
296 _
, _
, e1
:= syscall_syscall(libc_utimes_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), uintptr(unsafe
.Pointer(timeval
)), 0)
303 var libc_utimes_trampoline_addr
uintptr
305 //go:cgo_import_dynamic libc_utimes utimes "libc.so"
307 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
309 func futimes(fd
int, timeval
*[2]Timeval
) (err error
) {
310 _
, _
, e1
:= syscall_syscall(libc_futimes_trampoline_addr
, uintptr(fd
), uintptr(unsafe
.Pointer(timeval
)), 0)
317 var libc_futimes_trampoline_addr
uintptr
319 //go:cgo_import_dynamic libc_futimes futimes "libc.so"
321 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
323 func poll(fds
*PollFd
, nfds
int, timeout
int) (n
int, err error
) {
324 r0
, _
, e1
:= syscall_syscall(libc_poll_trampoline_addr
, uintptr(unsafe
.Pointer(fds
)), uintptr(nfds
), uintptr(timeout
))
332 var libc_poll_trampoline_addr
uintptr
334 //go:cgo_import_dynamic libc_poll poll "libc.so"
336 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
338 func Madvise(b
[]byte, behav
int) (err error
) {
339 var _p0 unsafe
.Pointer
341 _p0
= unsafe
.Pointer(&b
[0])
343 _p0
= unsafe
.Pointer(&_zero
)
345 _
, _
, e1
:= syscall_syscall(libc_madvise_trampoline_addr
, uintptr(_p0
), uintptr(len(b
)), uintptr(behav
))
352 var libc_madvise_trampoline_addr
uintptr
354 //go:cgo_import_dynamic libc_madvise madvise "libc.so"
356 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
358 func Mlock(b
[]byte) (err error
) {
359 var _p0 unsafe
.Pointer
361 _p0
= unsafe
.Pointer(&b
[0])
363 _p0
= unsafe
.Pointer(&_zero
)
365 _
, _
, e1
:= syscall_syscall(libc_mlock_trampoline_addr
, uintptr(_p0
), uintptr(len(b
)), 0)
372 var libc_mlock_trampoline_addr
uintptr
374 //go:cgo_import_dynamic libc_mlock mlock "libc.so"
376 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
378 func Mlockall(flags
int) (err error
) {
379 _
, _
, e1
:= syscall_syscall(libc_mlockall_trampoline_addr
, uintptr(flags
), 0, 0)
386 var libc_mlockall_trampoline_addr
uintptr
388 //go:cgo_import_dynamic libc_mlockall mlockall "libc.so"
390 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
392 func Mprotect(b
[]byte, prot
int) (err error
) {
393 var _p0 unsafe
.Pointer
395 _p0
= unsafe
.Pointer(&b
[0])
397 _p0
= unsafe
.Pointer(&_zero
)
399 _
, _
, e1
:= syscall_syscall(libc_mprotect_trampoline_addr
, uintptr(_p0
), uintptr(len(b
)), uintptr(prot
))
406 var libc_mprotect_trampoline_addr
uintptr
408 //go:cgo_import_dynamic libc_mprotect mprotect "libc.so"
410 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
412 func Msync(b
[]byte, flags
int) (err error
) {
413 var _p0 unsafe
.Pointer
415 _p0
= unsafe
.Pointer(&b
[0])
417 _p0
= unsafe
.Pointer(&_zero
)
419 _
, _
, e1
:= syscall_syscall(libc_msync_trampoline_addr
, uintptr(_p0
), uintptr(len(b
)), uintptr(flags
))
426 var libc_msync_trampoline_addr
uintptr
428 //go:cgo_import_dynamic libc_msync msync "libc.so"
430 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
432 func Munlock(b
[]byte) (err error
) {
433 var _p0 unsafe
.Pointer
435 _p0
= unsafe
.Pointer(&b
[0])
437 _p0
= unsafe
.Pointer(&_zero
)
439 _
, _
, e1
:= syscall_syscall(libc_munlock_trampoline_addr
, uintptr(_p0
), uintptr(len(b
)), 0)
446 var libc_munlock_trampoline_addr
uintptr
448 //go:cgo_import_dynamic libc_munlock munlock "libc.so"
450 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
452 func Munlockall() (err error
) {
453 _
, _
, e1
:= syscall_syscall(libc_munlockall_trampoline_addr
, 0, 0, 0)
460 var libc_munlockall_trampoline_addr
uintptr
462 //go:cgo_import_dynamic libc_munlockall munlockall "libc.so"
464 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
466 func pipe2(p
*[2]_C_int
, flags
int) (err error
) {
467 _
, _
, e1
:= syscall_rawSyscall(libc_pipe2_trampoline_addr
, uintptr(unsafe
.Pointer(p
)), uintptr(flags
), 0)
474 var libc_pipe2_trampoline_addr
uintptr
476 //go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so"
478 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
480 func Getdents(fd
int, buf
[]byte) (n
int, err error
) {
481 var _p0 unsafe
.Pointer
483 _p0
= unsafe
.Pointer(&buf
[0])
485 _p0
= unsafe
.Pointer(&_zero
)
487 r0
, _
, e1
:= syscall_syscall(libc_getdents_trampoline_addr
, uintptr(fd
), uintptr(_p0
), uintptr(len(buf
)))
495 var libc_getdents_trampoline_addr
uintptr
497 //go:cgo_import_dynamic libc_getdents getdents "libc.so"
499 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
501 func Getcwd(buf
[]byte) (n
int, err error
) {
502 var _p0 unsafe
.Pointer
504 _p0
= unsafe
.Pointer(&buf
[0])
506 _p0
= unsafe
.Pointer(&_zero
)
508 r0
, _
, e1
:= syscall_syscall(libc_getcwd_trampoline_addr
, uintptr(_p0
), uintptr(len(buf
)), 0)
516 var libc_getcwd_trampoline_addr
uintptr
518 //go:cgo_import_dynamic libc_getcwd getcwd "libc.so"
520 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
522 func ioctl(fd
int, req
uint, arg
uintptr) (err error
) {
523 _
, _
, e1
:= syscall_syscall(libc_ioctl_trampoline_addr
, uintptr(fd
), uintptr(req
), uintptr(arg
))
530 var libc_ioctl_trampoline_addr
uintptr
532 //go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
534 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
536 func sysctl(mib
[]_C_int
, old
*byte, oldlen
*uintptr, new *byte, newlen
uintptr) (err error
) {
537 var _p0 unsafe
.Pointer
539 _p0
= unsafe
.Pointer(&mib
[0])
541 _p0
= unsafe
.Pointer(&_zero
)
543 _
, _
, e1
:= syscall_syscall6(libc_sysctl_trampoline_addr
, uintptr(_p0
), uintptr(len(mib
)), uintptr(unsafe
.Pointer(old
)), uintptr(unsafe
.Pointer(oldlen
)), uintptr(unsafe
.Pointer(new)), uintptr(newlen
))
550 var libc_sysctl_trampoline_addr
uintptr
552 //go:cgo_import_dynamic libc_sysctl sysctl "libc.so"
554 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
556 func ppoll(fds
*PollFd
, nfds
int, timeout
*Timespec
, sigmask
*Sigset_t
) (n
int, err error
) {
557 r0
, _
, e1
:= syscall_syscall6(libc_ppoll_trampoline_addr
, uintptr(unsafe
.Pointer(fds
)), uintptr(nfds
), uintptr(unsafe
.Pointer(timeout
)), uintptr(unsafe
.Pointer(sigmask
)), 0, 0)
565 var libc_ppoll_trampoline_addr
uintptr
567 //go:cgo_import_dynamic libc_ppoll ppoll "libc.so"
569 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
571 func Access(path
string, mode
uint32) (err error
) {
573 _p0
, err
= BytePtrFromString(path
)
577 _
, _
, e1
:= syscall_syscall(libc_access_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), uintptr(mode
), 0)
584 var libc_access_trampoline_addr
uintptr
586 //go:cgo_import_dynamic libc_access access "libc.so"
588 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
590 func Adjtime(delta
*Timeval
, olddelta
*Timeval
) (err error
) {
591 _
, _
, e1
:= syscall_syscall(libc_adjtime_trampoline_addr
, uintptr(unsafe
.Pointer(delta
)), uintptr(unsafe
.Pointer(olddelta
)), 0)
598 var libc_adjtime_trampoline_addr
uintptr
600 //go:cgo_import_dynamic libc_adjtime adjtime "libc.so"
602 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
604 func Chdir(path
string) (err error
) {
606 _p0
, err
= BytePtrFromString(path
)
610 _
, _
, e1
:= syscall_syscall(libc_chdir_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), 0, 0)
617 var libc_chdir_trampoline_addr
uintptr
619 //go:cgo_import_dynamic libc_chdir chdir "libc.so"
621 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
623 func Chflags(path
string, flags
int) (err error
) {
625 _p0
, err
= BytePtrFromString(path
)
629 _
, _
, e1
:= syscall_syscall(libc_chflags_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), uintptr(flags
), 0)
636 var libc_chflags_trampoline_addr
uintptr
638 //go:cgo_import_dynamic libc_chflags chflags "libc.so"
640 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
642 func Chmod(path
string, mode
uint32) (err error
) {
644 _p0
, err
= BytePtrFromString(path
)
648 _
, _
, e1
:= syscall_syscall(libc_chmod_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), uintptr(mode
), 0)
655 var libc_chmod_trampoline_addr
uintptr
657 //go:cgo_import_dynamic libc_chmod chmod "libc.so"
659 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
661 func Chown(path
string, uid
int, gid
int) (err error
) {
663 _p0
, err
= BytePtrFromString(path
)
667 _
, _
, e1
:= syscall_syscall(libc_chown_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), uintptr(uid
), uintptr(gid
))
674 var libc_chown_trampoline_addr
uintptr
676 //go:cgo_import_dynamic libc_chown chown "libc.so"
678 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
680 func Chroot(path
string) (err error
) {
682 _p0
, err
= BytePtrFromString(path
)
686 _
, _
, e1
:= syscall_syscall(libc_chroot_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), 0, 0)
693 var libc_chroot_trampoline_addr
uintptr
695 //go:cgo_import_dynamic libc_chroot chroot "libc.so"
697 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
699 func Close(fd
int) (err error
) {
700 _
, _
, e1
:= syscall_syscall(libc_close_trampoline_addr
, uintptr(fd
), 0, 0)
707 var libc_close_trampoline_addr
uintptr
709 //go:cgo_import_dynamic libc_close close "libc.so"
711 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
713 func Dup(fd
int) (nfd
int, err error
) {
714 r0
, _
, e1
:= syscall_syscall(libc_dup_trampoline_addr
, uintptr(fd
), 0, 0)
722 var libc_dup_trampoline_addr
uintptr
724 //go:cgo_import_dynamic libc_dup dup "libc.so"
726 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
728 func Dup2(from
int, to
int) (err error
) {
729 _
, _
, e1
:= syscall_syscall(libc_dup2_trampoline_addr
, uintptr(from
), uintptr(to
), 0)
736 var libc_dup2_trampoline_addr
uintptr
738 //go:cgo_import_dynamic libc_dup2 dup2 "libc.so"
740 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
742 func Dup3(from
int, to
int, flags
int) (err error
) {
743 _
, _
, e1
:= syscall_syscall(libc_dup3_trampoline_addr
, uintptr(from
), uintptr(to
), uintptr(flags
))
750 var libc_dup3_trampoline_addr
uintptr
752 //go:cgo_import_dynamic libc_dup3 dup3 "libc.so"
754 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
756 func Exit(code
int) {
757 syscall_syscall(libc_exit_trampoline_addr
, uintptr(code
), 0, 0)
761 var libc_exit_trampoline_addr
uintptr
763 //go:cgo_import_dynamic libc_exit exit "libc.so"
765 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
767 func Faccessat(dirfd
int, path
string, mode
uint32, flags
int) (err error
) {
769 _p0
, err
= BytePtrFromString(path
)
773 _
, _
, e1
:= syscall_syscall6(libc_faccessat_trampoline_addr
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(mode
), uintptr(flags
), 0, 0)
780 var libc_faccessat_trampoline_addr
uintptr
782 //go:cgo_import_dynamic libc_faccessat faccessat "libc.so"
784 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
786 func Fchdir(fd
int) (err error
) {
787 _
, _
, e1
:= syscall_syscall(libc_fchdir_trampoline_addr
, uintptr(fd
), 0, 0)
794 var libc_fchdir_trampoline_addr
uintptr
796 //go:cgo_import_dynamic libc_fchdir fchdir "libc.so"
798 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
800 func Fchflags(fd
int, flags
int) (err error
) {
801 _
, _
, e1
:= syscall_syscall(libc_fchflags_trampoline_addr
, uintptr(fd
), uintptr(flags
), 0)
808 var libc_fchflags_trampoline_addr
uintptr
810 //go:cgo_import_dynamic libc_fchflags fchflags "libc.so"
812 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
814 func Fchmod(fd
int, mode
uint32) (err error
) {
815 _
, _
, e1
:= syscall_syscall(libc_fchmod_trampoline_addr
, uintptr(fd
), uintptr(mode
), 0)
822 var libc_fchmod_trampoline_addr
uintptr
824 //go:cgo_import_dynamic libc_fchmod fchmod "libc.so"
826 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
828 func Fchmodat(dirfd
int, path
string, mode
uint32, flags
int) (err error
) {
830 _p0
, err
= BytePtrFromString(path
)
834 _
, _
, e1
:= syscall_syscall6(libc_fchmodat_trampoline_addr
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(mode
), uintptr(flags
), 0, 0)
841 var libc_fchmodat_trampoline_addr
uintptr
843 //go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so"
845 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
847 func Fchown(fd
int, uid
int, gid
int) (err error
) {
848 _
, _
, e1
:= syscall_syscall(libc_fchown_trampoline_addr
, uintptr(fd
), uintptr(uid
), uintptr(gid
))
855 var libc_fchown_trampoline_addr
uintptr
857 //go:cgo_import_dynamic libc_fchown fchown "libc.so"
859 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
861 func Fchownat(dirfd
int, path
string, uid
int, gid
int, flags
int) (err error
) {
863 _p0
, err
= BytePtrFromString(path
)
867 _
, _
, e1
:= syscall_syscall6(libc_fchownat_trampoline_addr
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(uid
), uintptr(gid
), uintptr(flags
), 0)
874 var libc_fchownat_trampoline_addr
uintptr
876 //go:cgo_import_dynamic libc_fchownat fchownat "libc.so"
878 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
880 func Flock(fd
int, how
int) (err error
) {
881 _
, _
, e1
:= syscall_syscall(libc_flock_trampoline_addr
, uintptr(fd
), uintptr(how
), 0)
888 var libc_flock_trampoline_addr
uintptr
890 //go:cgo_import_dynamic libc_flock flock "libc.so"
892 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
894 func Fpathconf(fd
int, name
int) (val
int, err error
) {
895 r0
, _
, e1
:= syscall_syscall(libc_fpathconf_trampoline_addr
, uintptr(fd
), uintptr(name
), 0)
903 var libc_fpathconf_trampoline_addr
uintptr
905 //go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so"
907 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
909 func Fstat(fd
int, stat
*Stat_t
) (err error
) {
910 _
, _
, e1
:= syscall_syscall(libc_fstat_trampoline_addr
, uintptr(fd
), uintptr(unsafe
.Pointer(stat
)), 0)
917 var libc_fstat_trampoline_addr
uintptr
919 //go:cgo_import_dynamic libc_fstat fstat "libc.so"
921 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
923 func Fstatat(fd
int, path
string, stat
*Stat_t
, flags
int) (err error
) {
925 _p0
, err
= BytePtrFromString(path
)
929 _
, _
, e1
:= syscall_syscall6(libc_fstatat_trampoline_addr
, uintptr(fd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(unsafe
.Pointer(stat
)), uintptr(flags
), 0, 0)
936 var libc_fstatat_trampoline_addr
uintptr
938 //go:cgo_import_dynamic libc_fstatat fstatat "libc.so"
940 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
942 func Fstatfs(fd
int, stat
*Statfs_t
) (err error
) {
943 _
, _
, e1
:= syscall_syscall(libc_fstatfs_trampoline_addr
, uintptr(fd
), uintptr(unsafe
.Pointer(stat
)), 0)
950 var libc_fstatfs_trampoline_addr
uintptr
952 //go:cgo_import_dynamic libc_fstatfs fstatfs "libc.so"
954 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
956 func Fsync(fd
int) (err error
) {
957 _
, _
, e1
:= syscall_syscall(libc_fsync_trampoline_addr
, uintptr(fd
), 0, 0)
964 var libc_fsync_trampoline_addr
uintptr
966 //go:cgo_import_dynamic libc_fsync fsync "libc.so"
968 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
970 func Ftruncate(fd
int, length
int64) (err error
) {
971 _
, _
, e1
:= syscall_syscall6(libc_ftruncate_trampoline_addr
, uintptr(fd
), 0, uintptr(length
), uintptr(length
>>32), 0, 0)
978 var libc_ftruncate_trampoline_addr
uintptr
980 //go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so"
982 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
984 func Getegid() (egid
int) {
985 r0
, _
, _
:= syscall_rawSyscall(libc_getegid_trampoline_addr
, 0, 0, 0)
990 var libc_getegid_trampoline_addr
uintptr
992 //go:cgo_import_dynamic libc_getegid getegid "libc.so"
994 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
996 func Geteuid() (uid
int) {
997 r0
, _
, _
:= syscall_rawSyscall(libc_geteuid_trampoline_addr
, 0, 0, 0)
1002 var libc_geteuid_trampoline_addr
uintptr
1004 //go:cgo_import_dynamic libc_geteuid geteuid "libc.so"
1006 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1008 func Getgid() (gid
int) {
1009 r0
, _
, _
:= syscall_rawSyscall(libc_getgid_trampoline_addr
, 0, 0, 0)
1014 var libc_getgid_trampoline_addr
uintptr
1016 //go:cgo_import_dynamic libc_getgid getgid "libc.so"
1018 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1020 func Getpgid(pid
int) (pgid
int, err error
) {
1021 r0
, _
, e1
:= syscall_rawSyscall(libc_getpgid_trampoline_addr
, uintptr(pid
), 0, 0)
1029 var libc_getpgid_trampoline_addr
uintptr
1031 //go:cgo_import_dynamic libc_getpgid getpgid "libc.so"
1033 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1035 func Getpgrp() (pgrp
int) {
1036 r0
, _
, _
:= syscall_rawSyscall(libc_getpgrp_trampoline_addr
, 0, 0, 0)
1041 var libc_getpgrp_trampoline_addr
uintptr
1043 //go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so"
1045 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1047 func Getpid() (pid
int) {
1048 r0
, _
, _
:= syscall_rawSyscall(libc_getpid_trampoline_addr
, 0, 0, 0)
1053 var libc_getpid_trampoline_addr
uintptr
1055 //go:cgo_import_dynamic libc_getpid getpid "libc.so"
1057 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1059 func Getppid() (ppid
int) {
1060 r0
, _
, _
:= syscall_rawSyscall(libc_getppid_trampoline_addr
, 0, 0, 0)
1065 var libc_getppid_trampoline_addr
uintptr
1067 //go:cgo_import_dynamic libc_getppid getppid "libc.so"
1069 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1071 func Getpriority(which
int, who
int) (prio
int, err error
) {
1072 r0
, _
, e1
:= syscall_syscall(libc_getpriority_trampoline_addr
, uintptr(which
), uintptr(who
), 0)
1080 var libc_getpriority_trampoline_addr
uintptr
1082 //go:cgo_import_dynamic libc_getpriority getpriority "libc.so"
1084 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1086 func Getrlimit(which
int, lim
*Rlimit
) (err error
) {
1087 _
, _
, e1
:= syscall_rawSyscall(libc_getrlimit_trampoline_addr
, uintptr(which
), uintptr(unsafe
.Pointer(lim
)), 0)
1094 var libc_getrlimit_trampoline_addr
uintptr
1096 //go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so"
1098 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1100 func Getrtable() (rtable
int, err error
) {
1101 r0
, _
, e1
:= syscall_rawSyscall(libc_getrtable_trampoline_addr
, 0, 0, 0)
1109 var libc_getrtable_trampoline_addr
uintptr
1111 //go:cgo_import_dynamic libc_getrtable getrtable "libc.so"
1113 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1115 func Getrusage(who
int, rusage
*Rusage
) (err error
) {
1116 _
, _
, e1
:= syscall_rawSyscall(libc_getrusage_trampoline_addr
, uintptr(who
), uintptr(unsafe
.Pointer(rusage
)), 0)
1123 var libc_getrusage_trampoline_addr
uintptr
1125 //go:cgo_import_dynamic libc_getrusage getrusage "libc.so"
1127 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1129 func Getsid(pid
int) (sid
int, err error
) {
1130 r0
, _
, e1
:= syscall_rawSyscall(libc_getsid_trampoline_addr
, uintptr(pid
), 0, 0)
1138 var libc_getsid_trampoline_addr
uintptr
1140 //go:cgo_import_dynamic libc_getsid getsid "libc.so"
1142 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1144 func Gettimeofday(tv
*Timeval
) (err error
) {
1145 _
, _
, e1
:= syscall_rawSyscall(libc_gettimeofday_trampoline_addr
, uintptr(unsafe
.Pointer(tv
)), 0, 0)
1152 var libc_gettimeofday_trampoline_addr
uintptr
1154 //go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so"
1156 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1158 func Getuid() (uid
int) {
1159 r0
, _
, _
:= syscall_rawSyscall(libc_getuid_trampoline_addr
, 0, 0, 0)
1164 var libc_getuid_trampoline_addr
uintptr
1166 //go:cgo_import_dynamic libc_getuid getuid "libc.so"
1168 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1170 func Issetugid() (tainted
bool) {
1171 r0
, _
, _
:= syscall_syscall(libc_issetugid_trampoline_addr
, 0, 0, 0)
1172 tainted
= bool(r0
!= 0)
1176 var libc_issetugid_trampoline_addr
uintptr
1178 //go:cgo_import_dynamic libc_issetugid issetugid "libc.so"
1180 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1182 func Kill(pid
int, signum syscall
.Signal
) (err error
) {
1183 _
, _
, e1
:= syscall_syscall(libc_kill_trampoline_addr
, uintptr(pid
), uintptr(signum
), 0)
1190 var libc_kill_trampoline_addr
uintptr
1192 //go:cgo_import_dynamic libc_kill kill "libc.so"
1194 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1196 func Kqueue() (fd
int, err error
) {
1197 r0
, _
, e1
:= syscall_syscall(libc_kqueue_trampoline_addr
, 0, 0, 0)
1205 var libc_kqueue_trampoline_addr
uintptr
1207 //go:cgo_import_dynamic libc_kqueue kqueue "libc.so"
1209 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1211 func Lchown(path
string, uid
int, gid
int) (err error
) {
1213 _p0
, err
= BytePtrFromString(path
)
1217 _
, _
, e1
:= syscall_syscall(libc_lchown_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), uintptr(uid
), uintptr(gid
))
1224 var libc_lchown_trampoline_addr
uintptr
1226 //go:cgo_import_dynamic libc_lchown lchown "libc.so"
1228 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1230 func Link(path
string, link
string) (err error
) {
1232 _p0
, err
= BytePtrFromString(path
)
1237 _p1
, err
= BytePtrFromString(link
)
1241 _
, _
, e1
:= syscall_syscall(libc_link_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), uintptr(unsafe
.Pointer(_p1
)), 0)
1248 var libc_link_trampoline_addr
uintptr
1250 //go:cgo_import_dynamic libc_link link "libc.so"
1252 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1254 func Linkat(pathfd
int, path
string, linkfd
int, link
string, flags
int) (err error
) {
1256 _p0
, err
= BytePtrFromString(path
)
1261 _p1
, err
= BytePtrFromString(link
)
1265 _
, _
, e1
:= syscall_syscall6(libc_linkat_trampoline_addr
, uintptr(pathfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(linkfd
), uintptr(unsafe
.Pointer(_p1
)), uintptr(flags
), 0)
1272 var libc_linkat_trampoline_addr
uintptr
1274 //go:cgo_import_dynamic libc_linkat linkat "libc.so"
1276 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1278 func Listen(s
int, backlog
int) (err error
) {
1279 _
, _
, e1
:= syscall_syscall(libc_listen_trampoline_addr
, uintptr(s
), uintptr(backlog
), 0)
1286 var libc_listen_trampoline_addr
uintptr
1288 //go:cgo_import_dynamic libc_listen listen "libc.so"
1290 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1292 func Lstat(path
string, stat
*Stat_t
) (err error
) {
1294 _p0
, err
= BytePtrFromString(path
)
1298 _
, _
, e1
:= syscall_syscall(libc_lstat_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), uintptr(unsafe
.Pointer(stat
)), 0)
1305 var libc_lstat_trampoline_addr
uintptr
1307 //go:cgo_import_dynamic libc_lstat lstat "libc.so"
1309 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1311 func Mkdir(path
string, mode
uint32) (err error
) {
1313 _p0
, err
= BytePtrFromString(path
)
1317 _
, _
, e1
:= syscall_syscall(libc_mkdir_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), uintptr(mode
), 0)
1324 var libc_mkdir_trampoline_addr
uintptr
1326 //go:cgo_import_dynamic libc_mkdir mkdir "libc.so"
1328 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1330 func Mkdirat(dirfd
int, path
string, mode
uint32) (err error
) {
1332 _p0
, err
= BytePtrFromString(path
)
1336 _
, _
, e1
:= syscall_syscall(libc_mkdirat_trampoline_addr
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(mode
))
1343 var libc_mkdirat_trampoline_addr
uintptr
1345 //go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so"
1347 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1349 func Mkfifo(path
string, mode
uint32) (err error
) {
1351 _p0
, err
= BytePtrFromString(path
)
1355 _
, _
, e1
:= syscall_syscall(libc_mkfifo_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), uintptr(mode
), 0)
1362 var libc_mkfifo_trampoline_addr
uintptr
1364 //go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so"
1366 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1368 func Mkfifoat(dirfd
int, path
string, mode
uint32) (err error
) {
1370 _p0
, err
= BytePtrFromString(path
)
1374 _
, _
, e1
:= syscall_syscall(libc_mkfifoat_trampoline_addr
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(mode
))
1381 var libc_mkfifoat_trampoline_addr
uintptr
1383 //go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so"
1385 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1387 func Mknod(path
string, mode
uint32, dev
int) (err error
) {
1389 _p0
, err
= BytePtrFromString(path
)
1393 _
, _
, e1
:= syscall_syscall(libc_mknod_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), uintptr(mode
), uintptr(dev
))
1400 var libc_mknod_trampoline_addr
uintptr
1402 //go:cgo_import_dynamic libc_mknod mknod "libc.so"
1404 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1406 func Mknodat(dirfd
int, path
string, mode
uint32, dev
int) (err error
) {
1408 _p0
, err
= BytePtrFromString(path
)
1412 _
, _
, e1
:= syscall_syscall6(libc_mknodat_trampoline_addr
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(mode
), uintptr(dev
), 0, 0)
1419 var libc_mknodat_trampoline_addr
uintptr
1421 //go:cgo_import_dynamic libc_mknodat mknodat "libc.so"
1423 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1425 func Nanosleep(time
*Timespec
, leftover
*Timespec
) (err error
) {
1426 _
, _
, e1
:= syscall_syscall(libc_nanosleep_trampoline_addr
, uintptr(unsafe
.Pointer(time
)), uintptr(unsafe
.Pointer(leftover
)), 0)
1433 var libc_nanosleep_trampoline_addr
uintptr
1435 //go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so"
1437 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1439 func Open(path
string, mode
int, perm
uint32) (fd
int, err error
) {
1441 _p0
, err
= BytePtrFromString(path
)
1445 r0
, _
, e1
:= syscall_syscall(libc_open_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), uintptr(mode
), uintptr(perm
))
1453 var libc_open_trampoline_addr
uintptr
1455 //go:cgo_import_dynamic libc_open open "libc.so"
1457 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1459 func Openat(dirfd
int, path
string, mode
int, perm
uint32) (fd
int, err error
) {
1461 _p0
, err
= BytePtrFromString(path
)
1465 r0
, _
, e1
:= syscall_syscall6(libc_openat_trampoline_addr
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(mode
), uintptr(perm
), 0, 0)
1473 var libc_openat_trampoline_addr
uintptr
1475 //go:cgo_import_dynamic libc_openat openat "libc.so"
1477 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1479 func Pathconf(path
string, name
int) (val
int, err error
) {
1481 _p0
, err
= BytePtrFromString(path
)
1485 r0
, _
, e1
:= syscall_syscall(libc_pathconf_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), uintptr(name
), 0)
1493 var libc_pathconf_trampoline_addr
uintptr
1495 //go:cgo_import_dynamic libc_pathconf pathconf "libc.so"
1497 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1499 func pread(fd
int, p
[]byte, offset
int64) (n
int, err error
) {
1500 var _p0 unsafe
.Pointer
1502 _p0
= unsafe
.Pointer(&p
[0])
1504 _p0
= unsafe
.Pointer(&_zero
)
1506 r0
, _
, e1
:= syscall_syscall6(libc_pread_trampoline_addr
, uintptr(fd
), uintptr(_p0
), uintptr(len(p
)), 0, uintptr(offset
), uintptr(offset
>>32))
1514 var libc_pread_trampoline_addr
uintptr
1516 //go:cgo_import_dynamic libc_pread pread "libc.so"
1518 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1520 func pwrite(fd
int, p
[]byte, offset
int64) (n
int, err error
) {
1521 var _p0 unsafe
.Pointer
1523 _p0
= unsafe
.Pointer(&p
[0])
1525 _p0
= unsafe
.Pointer(&_zero
)
1527 r0
, _
, e1
:= syscall_syscall6(libc_pwrite_trampoline_addr
, uintptr(fd
), uintptr(_p0
), uintptr(len(p
)), 0, uintptr(offset
), uintptr(offset
>>32))
1535 var libc_pwrite_trampoline_addr
uintptr
1537 //go:cgo_import_dynamic libc_pwrite pwrite "libc.so"
1539 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1541 func read(fd
int, p
[]byte) (n
int, err error
) {
1542 var _p0 unsafe
.Pointer
1544 _p0
= unsafe
.Pointer(&p
[0])
1546 _p0
= unsafe
.Pointer(&_zero
)
1548 r0
, _
, e1
:= syscall_syscall(libc_read_trampoline_addr
, uintptr(fd
), uintptr(_p0
), uintptr(len(p
)))
1556 var libc_read_trampoline_addr
uintptr
1558 //go:cgo_import_dynamic libc_read read "libc.so"
1560 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1562 func Readlink(path
string, buf
[]byte) (n
int, err error
) {
1564 _p0
, err
= BytePtrFromString(path
)
1568 var _p1 unsafe
.Pointer
1570 _p1
= unsafe
.Pointer(&buf
[0])
1572 _p1
= unsafe
.Pointer(&_zero
)
1574 r0
, _
, e1
:= syscall_syscall(libc_readlink_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), uintptr(_p1
), uintptr(len(buf
)))
1582 var libc_readlink_trampoline_addr
uintptr
1584 //go:cgo_import_dynamic libc_readlink readlink "libc.so"
1586 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1588 func Readlinkat(dirfd
int, path
string, buf
[]byte) (n
int, err error
) {
1590 _p0
, err
= BytePtrFromString(path
)
1594 var _p1 unsafe
.Pointer
1596 _p1
= unsafe
.Pointer(&buf
[0])
1598 _p1
= unsafe
.Pointer(&_zero
)
1600 r0
, _
, e1
:= syscall_syscall6(libc_readlinkat_trampoline_addr
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(_p1
), uintptr(len(buf
)), 0, 0)
1608 var libc_readlinkat_trampoline_addr
uintptr
1610 //go:cgo_import_dynamic libc_readlinkat readlinkat "libc.so"
1612 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1614 func Rename(from
string, to
string) (err error
) {
1616 _p0
, err
= BytePtrFromString(from
)
1621 _p1
, err
= BytePtrFromString(to
)
1625 _
, _
, e1
:= syscall_syscall(libc_rename_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), uintptr(unsafe
.Pointer(_p1
)), 0)
1632 var libc_rename_trampoline_addr
uintptr
1634 //go:cgo_import_dynamic libc_rename rename "libc.so"
1636 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1638 func Renameat(fromfd
int, from
string, tofd
int, to
string) (err error
) {
1640 _p0
, err
= BytePtrFromString(from
)
1645 _p1
, err
= BytePtrFromString(to
)
1649 _
, _
, e1
:= syscall_syscall6(libc_renameat_trampoline_addr
, uintptr(fromfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(tofd
), uintptr(unsafe
.Pointer(_p1
)), 0, 0)
1656 var libc_renameat_trampoline_addr
uintptr
1658 //go:cgo_import_dynamic libc_renameat renameat "libc.so"
1660 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1662 func Revoke(path
string) (err error
) {
1664 _p0
, err
= BytePtrFromString(path
)
1668 _
, _
, e1
:= syscall_syscall(libc_revoke_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), 0, 0)
1675 var libc_revoke_trampoline_addr
uintptr
1677 //go:cgo_import_dynamic libc_revoke revoke "libc.so"
1679 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1681 func Rmdir(path
string) (err error
) {
1683 _p0
, err
= BytePtrFromString(path
)
1687 _
, _
, e1
:= syscall_syscall(libc_rmdir_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), 0, 0)
1694 var libc_rmdir_trampoline_addr
uintptr
1696 //go:cgo_import_dynamic libc_rmdir rmdir "libc.so"
1698 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1700 func Seek(fd
int, offset
int64, whence
int) (newoffset
int64, err error
) {
1701 r0
, r1
, e1
:= syscall_syscall6(libc_lseek_trampoline_addr
, uintptr(fd
), 0, uintptr(offset
), uintptr(offset
>>32), uintptr(whence
), 0)
1702 newoffset
= int64(int64(r1
)<<32 |
int64(r0
))
1709 var libc_lseek_trampoline_addr
uintptr
1711 //go:cgo_import_dynamic libc_lseek lseek "libc.so"
1713 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1715 func Select(nfd
int, r
*FdSet
, w
*FdSet
, e
*FdSet
, timeout
*Timeval
) (n
int, err error
) {
1716 r0
, _
, e1
:= syscall_syscall6(libc_select_trampoline_addr
, uintptr(nfd
), uintptr(unsafe
.Pointer(r
)), uintptr(unsafe
.Pointer(w
)), uintptr(unsafe
.Pointer(e
)), uintptr(unsafe
.Pointer(timeout
)), 0)
1724 var libc_select_trampoline_addr
uintptr
1726 //go:cgo_import_dynamic libc_select select "libc.so"
1728 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1730 func Setegid(egid
int) (err error
) {
1731 _
, _
, e1
:= syscall_rawSyscall(libc_setegid_trampoline_addr
, uintptr(egid
), 0, 0)
1738 var libc_setegid_trampoline_addr
uintptr
1740 //go:cgo_import_dynamic libc_setegid setegid "libc.so"
1742 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1744 func Seteuid(euid
int) (err error
) {
1745 _
, _
, e1
:= syscall_rawSyscall(libc_seteuid_trampoline_addr
, uintptr(euid
), 0, 0)
1752 var libc_seteuid_trampoline_addr
uintptr
1754 //go:cgo_import_dynamic libc_seteuid seteuid "libc.so"
1756 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1758 func Setgid(gid
int) (err error
) {
1759 _
, _
, e1
:= syscall_rawSyscall(libc_setgid_trampoline_addr
, uintptr(gid
), 0, 0)
1766 var libc_setgid_trampoline_addr
uintptr
1768 //go:cgo_import_dynamic libc_setgid setgid "libc.so"
1770 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1772 func Setlogin(name
string) (err error
) {
1774 _p0
, err
= BytePtrFromString(name
)
1778 _
, _
, e1
:= syscall_syscall(libc_setlogin_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), 0, 0)
1785 var libc_setlogin_trampoline_addr
uintptr
1787 //go:cgo_import_dynamic libc_setlogin setlogin "libc.so"
1789 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1791 func Setpgid(pid
int, pgid
int) (err error
) {
1792 _
, _
, e1
:= syscall_rawSyscall(libc_setpgid_trampoline_addr
, uintptr(pid
), uintptr(pgid
), 0)
1799 var libc_setpgid_trampoline_addr
uintptr
1801 //go:cgo_import_dynamic libc_setpgid setpgid "libc.so"
1803 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1805 func Setpriority(which
int, who
int, prio
int) (err error
) {
1806 _
, _
, e1
:= syscall_syscall(libc_setpriority_trampoline_addr
, uintptr(which
), uintptr(who
), uintptr(prio
))
1813 var libc_setpriority_trampoline_addr
uintptr
1815 //go:cgo_import_dynamic libc_setpriority setpriority "libc.so"
1817 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1819 func Setregid(rgid
int, egid
int) (err error
) {
1820 _
, _
, e1
:= syscall_rawSyscall(libc_setregid_trampoline_addr
, uintptr(rgid
), uintptr(egid
), 0)
1827 var libc_setregid_trampoline_addr
uintptr
1829 //go:cgo_import_dynamic libc_setregid setregid "libc.so"
1831 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1833 func Setreuid(ruid
int, euid
int) (err error
) {
1834 _
, _
, e1
:= syscall_rawSyscall(libc_setreuid_trampoline_addr
, uintptr(ruid
), uintptr(euid
), 0)
1841 var libc_setreuid_trampoline_addr
uintptr
1843 //go:cgo_import_dynamic libc_setreuid setreuid "libc.so"
1845 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1847 func Setresgid(rgid
int, egid
int, sgid
int) (err error
) {
1848 _
, _
, e1
:= syscall_rawSyscall(libc_setresgid_trampoline_addr
, uintptr(rgid
), uintptr(egid
), uintptr(sgid
))
1855 var libc_setresgid_trampoline_addr
uintptr
1857 //go:cgo_import_dynamic libc_setresgid setresgid "libc.so"
1859 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1861 func Setresuid(ruid
int, euid
int, suid
int) (err error
) {
1862 _
, _
, e1
:= syscall_rawSyscall(libc_setresuid_trampoline_addr
, uintptr(ruid
), uintptr(euid
), uintptr(suid
))
1869 var libc_setresuid_trampoline_addr
uintptr
1871 //go:cgo_import_dynamic libc_setresuid setresuid "libc.so"
1873 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1875 func Setrlimit(which
int, lim
*Rlimit
) (err error
) {
1876 _
, _
, e1
:= syscall_rawSyscall(libc_setrlimit_trampoline_addr
, uintptr(which
), uintptr(unsafe
.Pointer(lim
)), 0)
1883 var libc_setrlimit_trampoline_addr
uintptr
1885 //go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so"
1887 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1889 func Setrtable(rtable
int) (err error
) {
1890 _
, _
, e1
:= syscall_rawSyscall(libc_setrtable_trampoline_addr
, uintptr(rtable
), 0, 0)
1897 var libc_setrtable_trampoline_addr
uintptr
1899 //go:cgo_import_dynamic libc_setrtable setrtable "libc.so"
1901 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1903 func Setsid() (pid
int, err error
) {
1904 r0
, _
, e1
:= syscall_rawSyscall(libc_setsid_trampoline_addr
, 0, 0, 0)
1912 var libc_setsid_trampoline_addr
uintptr
1914 //go:cgo_import_dynamic libc_setsid setsid "libc.so"
1916 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1918 func Settimeofday(tp
*Timeval
) (err error
) {
1919 _
, _
, e1
:= syscall_rawSyscall(libc_settimeofday_trampoline_addr
, uintptr(unsafe
.Pointer(tp
)), 0, 0)
1926 var libc_settimeofday_trampoline_addr
uintptr
1928 //go:cgo_import_dynamic libc_settimeofday settimeofday "libc.so"
1930 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1932 func Setuid(uid
int) (err error
) {
1933 _
, _
, e1
:= syscall_rawSyscall(libc_setuid_trampoline_addr
, uintptr(uid
), 0, 0)
1940 var libc_setuid_trampoline_addr
uintptr
1942 //go:cgo_import_dynamic libc_setuid setuid "libc.so"
1944 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1946 func Stat(path
string, stat
*Stat_t
) (err error
) {
1948 _p0
, err
= BytePtrFromString(path
)
1952 _
, _
, e1
:= syscall_syscall(libc_stat_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), uintptr(unsafe
.Pointer(stat
)), 0)
1959 var libc_stat_trampoline_addr
uintptr
1961 //go:cgo_import_dynamic libc_stat stat "libc.so"
1963 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1965 func Statfs(path
string, stat
*Statfs_t
) (err error
) {
1967 _p0
, err
= BytePtrFromString(path
)
1971 _
, _
, e1
:= syscall_syscall(libc_statfs_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), uintptr(unsafe
.Pointer(stat
)), 0)
1978 var libc_statfs_trampoline_addr
uintptr
1980 //go:cgo_import_dynamic libc_statfs statfs "libc.so"
1982 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1984 func Symlink(path
string, link
string) (err error
) {
1986 _p0
, err
= BytePtrFromString(path
)
1991 _p1
, err
= BytePtrFromString(link
)
1995 _
, _
, e1
:= syscall_syscall(libc_symlink_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), uintptr(unsafe
.Pointer(_p1
)), 0)
2002 var libc_symlink_trampoline_addr
uintptr
2004 //go:cgo_import_dynamic libc_symlink symlink "libc.so"
2006 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2008 func Symlinkat(oldpath
string, newdirfd
int, newpath
string) (err error
) {
2010 _p0
, err
= BytePtrFromString(oldpath
)
2015 _p1
, err
= BytePtrFromString(newpath
)
2019 _
, _
, e1
:= syscall_syscall(libc_symlinkat_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), uintptr(newdirfd
), uintptr(unsafe
.Pointer(_p1
)))
2026 var libc_symlinkat_trampoline_addr
uintptr
2028 //go:cgo_import_dynamic libc_symlinkat symlinkat "libc.so"
2030 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2032 func Sync() (err error
) {
2033 _
, _
, e1
:= syscall_syscall(libc_sync_trampoline_addr
, 0, 0, 0)
2040 var libc_sync_trampoline_addr
uintptr
2042 //go:cgo_import_dynamic libc_sync sync "libc.so"
2044 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2046 func Truncate(path
string, length
int64) (err error
) {
2048 _p0
, err
= BytePtrFromString(path
)
2052 _
, _
, e1
:= syscall_syscall6(libc_truncate_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), 0, uintptr(length
), uintptr(length
>>32), 0, 0)
2059 var libc_truncate_trampoline_addr
uintptr
2061 //go:cgo_import_dynamic libc_truncate truncate "libc.so"
2063 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2065 func Umask(newmask
int) (oldmask
int) {
2066 r0
, _
, _
:= syscall_syscall(libc_umask_trampoline_addr
, uintptr(newmask
), 0, 0)
2071 var libc_umask_trampoline_addr
uintptr
2073 //go:cgo_import_dynamic libc_umask umask "libc.so"
2075 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2077 func Unlink(path
string) (err error
) {
2079 _p0
, err
= BytePtrFromString(path
)
2083 _
, _
, e1
:= syscall_syscall(libc_unlink_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), 0, 0)
2090 var libc_unlink_trampoline_addr
uintptr
2092 //go:cgo_import_dynamic libc_unlink unlink "libc.so"
2094 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2096 func Unlinkat(dirfd
int, path
string, flags
int) (err error
) {
2098 _p0
, err
= BytePtrFromString(path
)
2102 _
, _
, e1
:= syscall_syscall(libc_unlinkat_trampoline_addr
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(flags
))
2109 var libc_unlinkat_trampoline_addr
uintptr
2111 //go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so"
2113 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2115 func Unmount(path
string, flags
int) (err error
) {
2117 _p0
, err
= BytePtrFromString(path
)
2121 _
, _
, e1
:= syscall_syscall(libc_unmount_trampoline_addr
, uintptr(unsafe
.Pointer(_p0
)), uintptr(flags
), 0)
2128 var libc_unmount_trampoline_addr
uintptr
2130 //go:cgo_import_dynamic libc_unmount unmount "libc.so"
2132 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2134 func write(fd
int, p
[]byte) (n
int, err error
) {
2135 var _p0 unsafe
.Pointer
2137 _p0
= unsafe
.Pointer(&p
[0])
2139 _p0
= unsafe
.Pointer(&_zero
)
2141 r0
, _
, e1
:= syscall_syscall(libc_write_trampoline_addr
, uintptr(fd
), uintptr(_p0
), uintptr(len(p
)))
2149 var libc_write_trampoline_addr
uintptr
2151 //go:cgo_import_dynamic libc_write write "libc.so"
2153 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2155 func mmap(addr
uintptr, length
uintptr, prot
int, flag
int, fd
int, pos
int64) (ret
uintptr, err error
) {
2156 r0
, _
, e1
:= syscall_syscall9(libc_mmap_trampoline_addr
, uintptr(addr
), uintptr(length
), uintptr(prot
), uintptr(flag
), uintptr(fd
), 0, uintptr(pos
), uintptr(pos
>>32), 0)
2164 var libc_mmap_trampoline_addr
uintptr
2166 //go:cgo_import_dynamic libc_mmap mmap "libc.so"
2168 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2170 func munmap(addr
uintptr, length
uintptr) (err error
) {
2171 _
, _
, e1
:= syscall_syscall(libc_munmap_trampoline_addr
, uintptr(addr
), uintptr(length
), 0)
2178 var libc_munmap_trampoline_addr
uintptr
2180 //go:cgo_import_dynamic libc_munmap munmap "libc.so"
2182 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2184 func readlen(fd
int, buf
*byte, nbuf
int) (n
int, err error
) {
2185 r0
, _
, e1
:= syscall_syscall(libc_read_trampoline_addr
, uintptr(fd
), uintptr(unsafe
.Pointer(buf
)), uintptr(nbuf
))
2193 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2195 func writelen(fd
int, buf
*byte, nbuf
int) (n
int, err error
) {
2196 r0
, _
, e1
:= syscall_syscall(libc_write_trampoline_addr
, uintptr(fd
), uintptr(unsafe
.Pointer(buf
)), uintptr(nbuf
))
2204 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2206 func utimensat(dirfd
int, path
string, times
*[2]Timespec
, flags
int) (err error
) {
2208 _p0
, err
= BytePtrFromString(path
)
2212 _
, _
, e1
:= syscall_syscall6(libc_utimensat_trampoline_addr
, uintptr(dirfd
), uintptr(unsafe
.Pointer(_p0
)), uintptr(unsafe
.Pointer(times
)), uintptr(flags
), 0, 0)
2219 var libc_utimensat_trampoline_addr
uintptr
2221 //go:cgo_import_dynamic libc_utimensat utimensat "libc.so"