1 // go run mksyscall.go -tags darwin,arm64,go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.go
2 // Code generated by the command above; see README.md. DO NOT EDIT.
4 // +build darwin,arm64,go1.12
15 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
17 func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
18 r0, _, e1 := syscall_rawSyscall(funcPC(libc_getgroups_trampoline), uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
26 func libc_getgroups_trampoline()
28 //go:linkname libc_getgroups libc_getgroups
29 //go:cgo_import_dynamic libc_getgroups getgroups "/usr/lib/libSystem.B.dylib"
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(funcPC(libc_setgroups_trampoline), uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
41 func libc_setgroups_trampoline()
43 //go:linkname libc_setgroups libc_setgroups
44 //go:cgo_import_dynamic libc_setgroups setgroups "/usr/lib/libSystem.B.dylib"
46 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
48 func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
49 r0, _, e1 := syscall_syscall6(funcPC(libc_wait4_trampoline), uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
57 func libc_wait4_trampoline()
59 //go:linkname libc_wait4 libc_wait4
60 //go:cgo_import_dynamic libc_wait4 wait4 "/usr/lib/libSystem.B.dylib"
62 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
64 func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
65 r0, _, e1 := syscall_syscall(funcPC(libc_accept_trampoline), uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
73 func libc_accept_trampoline()
75 //go:linkname libc_accept libc_accept
76 //go:cgo_import_dynamic libc_accept accept "/usr/lib/libSystem.B.dylib"
78 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
80 func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
81 _, _, e1 := syscall_syscall(funcPC(libc_bind_trampoline), uintptr(s), uintptr(addr), uintptr(addrlen))
88 func libc_bind_trampoline()
90 //go:linkname libc_bind libc_bind
91 //go:cgo_import_dynamic libc_bind bind "/usr/lib/libSystem.B.dylib"
93 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
95 func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
96 _, _, e1 := syscall_syscall(funcPC(libc_connect_trampoline), uintptr(s), uintptr(addr), uintptr(addrlen))
103 func libc_connect_trampoline()
105 //go:linkname libc_connect libc_connect
106 //go:cgo_import_dynamic libc_connect connect "/usr/lib/libSystem.B.dylib"
108 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
110 func socket(domain int, typ int, proto int) (fd int, err error) {
111 r0, _, e1 := syscall_rawSyscall(funcPC(libc_socket_trampoline), uintptr(domain), uintptr(typ), uintptr(proto))
119 func libc_socket_trampoline()
121 //go:linkname libc_socket libc_socket
122 //go:cgo_import_dynamic libc_socket socket "/usr/lib/libSystem.B.dylib"
124 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
126 func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
127 _, _, e1 := syscall_syscall6(funcPC(libc_getsockopt_trampoline), uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
134 func libc_getsockopt_trampoline()
136 //go:linkname libc_getsockopt libc_getsockopt
137 //go:cgo_import_dynamic libc_getsockopt getsockopt "/usr/lib/libSystem.B.dylib"
139 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
141 func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
142 _, _, e1 := syscall_syscall6(funcPC(libc_setsockopt_trampoline), uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
149 func libc_setsockopt_trampoline()
151 //go:linkname libc_setsockopt libc_setsockopt
152 //go:cgo_import_dynamic libc_setsockopt setsockopt "/usr/lib/libSystem.B.dylib"
154 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
156 func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
157 _, _, e1 := syscall_rawSyscall(funcPC(libc_getpeername_trampoline), uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
164 func libc_getpeername_trampoline()
166 //go:linkname libc_getpeername libc_getpeername
167 //go:cgo_import_dynamic libc_getpeername getpeername "/usr/lib/libSystem.B.dylib"
169 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
171 func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
172 _, _, e1 := syscall_rawSyscall(funcPC(libc_getsockname_trampoline), uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
179 func libc_getsockname_trampoline()
181 //go:linkname libc_getsockname libc_getsockname
182 //go:cgo_import_dynamic libc_getsockname getsockname "/usr/lib/libSystem.B.dylib"
184 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
186 func Shutdown(s int, how int) (err error) {
187 _, _, e1 := syscall_syscall(funcPC(libc_shutdown_trampoline), uintptr(s), uintptr(how), 0)
194 func libc_shutdown_trampoline()
196 //go:linkname libc_shutdown libc_shutdown
197 //go:cgo_import_dynamic libc_shutdown shutdown "/usr/lib/libSystem.B.dylib"
199 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
201 func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
202 _, _, e1 := syscall_rawSyscall6(funcPC(libc_socketpair_trampoline), uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
209 func libc_socketpair_trampoline()
211 //go:linkname libc_socketpair libc_socketpair
212 //go:cgo_import_dynamic libc_socketpair socketpair "/usr/lib/libSystem.B.dylib"
214 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
216 func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
217 var _p0 unsafe.Pointer
219 _p0 = unsafe.Pointer(&p[0])
221 _p0 = unsafe.Pointer(&_zero)
223 r0, _, e1 := syscall_syscall6(funcPC(libc_recvfrom_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
231 func libc_recvfrom_trampoline()
233 //go:linkname libc_recvfrom libc_recvfrom
234 //go:cgo_import_dynamic libc_recvfrom recvfrom "/usr/lib/libSystem.B.dylib"
236 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
238 func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
239 var _p0 unsafe.Pointer
241 _p0 = unsafe.Pointer(&buf[0])
243 _p0 = unsafe.Pointer(&_zero)
245 _, _, e1 := syscall_syscall6(funcPC(libc_sendto_trampoline), uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
252 func libc_sendto_trampoline()
254 //go:linkname libc_sendto libc_sendto
255 //go:cgo_import_dynamic libc_sendto sendto "/usr/lib/libSystem.B.dylib"
257 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
259 func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
260 r0, _, e1 := syscall_syscall(funcPC(libc_recvmsg_trampoline), uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
268 func libc_recvmsg_trampoline()
270 //go:linkname libc_recvmsg libc_recvmsg
271 //go:cgo_import_dynamic libc_recvmsg recvmsg "/usr/lib/libSystem.B.dylib"
273 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
275 func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
276 r0, _, e1 := syscall_syscall(funcPC(libc_sendmsg_trampoline), uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
284 func libc_sendmsg_trampoline()
286 //go:linkname libc_sendmsg libc_sendmsg
287 //go:cgo_import_dynamic libc_sendmsg sendmsg "/usr/lib/libSystem.B.dylib"
289 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
291 func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
292 r0, _, e1 := syscall_syscall6(funcPC(libc_kevent_trampoline), uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
300 func libc_kevent_trampoline()
302 //go:linkname libc_kevent libc_kevent
303 //go:cgo_import_dynamic libc_kevent kevent "/usr/lib/libSystem.B.dylib"
305 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
307 func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
308 var _p0 unsafe.Pointer
310 _p0 = unsafe.Pointer(&mib[0])
312 _p0 = unsafe.Pointer(&_zero)
314 _, _, e1 := syscall_syscall6(funcPC(libc___sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
321 func libc___sysctl_trampoline()
323 //go:linkname libc___sysctl libc___sysctl
324 //go:cgo_import_dynamic libc___sysctl __sysctl "/usr/lib/libSystem.B.dylib"
326 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
328 func utimes(path string, timeval *[2]Timeval) (err error) {
330 _p0, err = BytePtrFromString(path)
334 _, _, e1 := syscall_syscall(funcPC(libc_utimes_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
341 func libc_utimes_trampoline()
343 //go:linkname libc_utimes libc_utimes
344 //go:cgo_import_dynamic libc_utimes utimes "/usr/lib/libSystem.B.dylib"
346 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
348 func futimes(fd int, timeval *[2]Timeval) (err error) {
349 _, _, e1 := syscall_syscall(funcPC(libc_futimes_trampoline), uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
356 func libc_futimes_trampoline()
358 //go:linkname libc_futimes libc_futimes
359 //go:cgo_import_dynamic libc_futimes futimes "/usr/lib/libSystem.B.dylib"
361 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
363 func fcntl(fd int, cmd int, arg int) (val int, err error) {
364 r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
372 func libc_fcntl_trampoline()
374 //go:linkname libc_fcntl libc_fcntl
375 //go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
377 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
379 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
380 r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
388 func libc_poll_trampoline()
390 //go:linkname libc_poll libc_poll
391 //go:cgo_import_dynamic libc_poll poll "/usr/lib/libSystem.B.dylib"
393 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
395 func Madvise(b []byte, behav int) (err error) {
396 var _p0 unsafe.Pointer
398 _p0 = unsafe.Pointer(&b[0])
400 _p0 = unsafe.Pointer(&_zero)
402 _, _, e1 := syscall_syscall(funcPC(libc_madvise_trampoline), uintptr(_p0), uintptr(len(b)), uintptr(behav))
409 func libc_madvise_trampoline()
411 //go:linkname libc_madvise libc_madvise
412 //go:cgo_import_dynamic libc_madvise madvise "/usr/lib/libSystem.B.dylib"
414 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
416 func Mlock(b []byte) (err error) {
417 var _p0 unsafe.Pointer
419 _p0 = unsafe.Pointer(&b[0])
421 _p0 = unsafe.Pointer(&_zero)
423 _, _, e1 := syscall_syscall(funcPC(libc_mlock_trampoline), uintptr(_p0), uintptr(len(b)), 0)
430 func libc_mlock_trampoline()
432 //go:linkname libc_mlock libc_mlock
433 //go:cgo_import_dynamic libc_mlock mlock "/usr/lib/libSystem.B.dylib"
435 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
437 func Mlockall(flags int) (err error) {
438 _, _, e1 := syscall_syscall(funcPC(libc_mlockall_trampoline), uintptr(flags), 0, 0)
445 func libc_mlockall_trampoline()
447 //go:linkname libc_mlockall libc_mlockall
448 //go:cgo_import_dynamic libc_mlockall mlockall "/usr/lib/libSystem.B.dylib"
450 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
452 func Mprotect(b []byte, prot int) (err error) {
453 var _p0 unsafe.Pointer
455 _p0 = unsafe.Pointer(&b[0])
457 _p0 = unsafe.Pointer(&_zero)
459 _, _, e1 := syscall_syscall(funcPC(libc_mprotect_trampoline), uintptr(_p0), uintptr(len(b)), uintptr(prot))
466 func libc_mprotect_trampoline()
468 //go:linkname libc_mprotect libc_mprotect
469 //go:cgo_import_dynamic libc_mprotect mprotect "/usr/lib/libSystem.B.dylib"
471 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
473 func Msync(b []byte, flags int) (err error) {
474 var _p0 unsafe.Pointer
476 _p0 = unsafe.Pointer(&b[0])
478 _p0 = unsafe.Pointer(&_zero)
480 _, _, e1 := syscall_syscall(funcPC(libc_msync_trampoline), uintptr(_p0), uintptr(len(b)), uintptr(flags))
487 func libc_msync_trampoline()
489 //go:linkname libc_msync libc_msync
490 //go:cgo_import_dynamic libc_msync msync "/usr/lib/libSystem.B.dylib"
492 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
494 func Munlock(b []byte) (err error) {
495 var _p0 unsafe.Pointer
497 _p0 = unsafe.Pointer(&b[0])
499 _p0 = unsafe.Pointer(&_zero)
501 _, _, e1 := syscall_syscall(funcPC(libc_munlock_trampoline), uintptr(_p0), uintptr(len(b)), 0)
508 func libc_munlock_trampoline()
510 //go:linkname libc_munlock libc_munlock
511 //go:cgo_import_dynamic libc_munlock munlock "/usr/lib/libSystem.B.dylib"
513 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
515 func Munlockall() (err error) {
516 _, _, e1 := syscall_syscall(funcPC(libc_munlockall_trampoline), 0, 0, 0)
523 func libc_munlockall_trampoline()
525 //go:linkname libc_munlockall libc_munlockall
526 //go:cgo_import_dynamic libc_munlockall munlockall "/usr/lib/libSystem.B.dylib"
528 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
530 func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
531 _, _, e1 := syscall_syscall6(funcPC(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
538 func libc_ptrace_trampoline()
540 //go:linkname libc_ptrace libc_ptrace
541 //go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
543 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
545 func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) {
546 _, _, e1 := syscall_syscall6(funcPC(libc_getattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0)
553 func libc_getattrlist_trampoline()
555 //go:linkname libc_getattrlist libc_getattrlist
556 //go:cgo_import_dynamic libc_getattrlist getattrlist "/usr/lib/libSystem.B.dylib"
558 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
560 func pipe() (r int, w int, err error) {
561 r0, r1, e1 := syscall_rawSyscall(funcPC(libc_pipe_trampoline), 0, 0, 0)
570 func libc_pipe_trampoline()
572 //go:linkname libc_pipe libc_pipe
573 //go:cgo_import_dynamic libc_pipe pipe "/usr/lib/libSystem.B.dylib"
575 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
577 func getxattr(path string, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) {
579 _p0, err = BytePtrFromString(path)
584 _p1, err = BytePtrFromString(attr)
588 r0, _, e1 := syscall_syscall6(funcPC(libc_getxattr_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options))
596 func libc_getxattr_trampoline()
598 //go:linkname libc_getxattr libc_getxattr
599 //go:cgo_import_dynamic libc_getxattr getxattr "/usr/lib/libSystem.B.dylib"
601 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
603 func fgetxattr(fd int, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) {
605 _p0, err = BytePtrFromString(attr)
609 r0, _, e1 := syscall_syscall6(funcPC(libc_fgetxattr_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options))
617 func libc_fgetxattr_trampoline()
619 //go:linkname libc_fgetxattr libc_fgetxattr
620 //go:cgo_import_dynamic libc_fgetxattr fgetxattr "/usr/lib/libSystem.B.dylib"
622 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
624 func setxattr(path string, attr string, data *byte, size int, position uint32, options int) (err error) {
626 _p0, err = BytePtrFromString(path)
631 _p1, err = BytePtrFromString(attr)
635 _, _, e1 := syscall_syscall6(funcPC(libc_setxattr_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options))
642 func libc_setxattr_trampoline()
644 //go:linkname libc_setxattr libc_setxattr
645 //go:cgo_import_dynamic libc_setxattr setxattr "/usr/lib/libSystem.B.dylib"
647 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
649 func fsetxattr(fd int, attr string, data *byte, size int, position uint32, options int) (err error) {
651 _p0, err = BytePtrFromString(attr)
655 _, _, e1 := syscall_syscall6(funcPC(libc_fsetxattr_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options))
662 func libc_fsetxattr_trampoline()
664 //go:linkname libc_fsetxattr libc_fsetxattr
665 //go:cgo_import_dynamic libc_fsetxattr fsetxattr "/usr/lib/libSystem.B.dylib"
667 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
669 func removexattr(path string, attr string, options int) (err error) {
671 _p0, err = BytePtrFromString(path)
676 _p1, err = BytePtrFromString(attr)
680 _, _, e1 := syscall_syscall(funcPC(libc_removexattr_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
687 func libc_removexattr_trampoline()
689 //go:linkname libc_removexattr libc_removexattr
690 //go:cgo_import_dynamic libc_removexattr removexattr "/usr/lib/libSystem.B.dylib"
692 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
694 func fremovexattr(fd int, attr string, options int) (err error) {
696 _p0, err = BytePtrFromString(attr)
700 _, _, e1 := syscall_syscall(funcPC(libc_fremovexattr_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(options))
707 func libc_fremovexattr_trampoline()
709 //go:linkname libc_fremovexattr libc_fremovexattr
710 //go:cgo_import_dynamic libc_fremovexattr fremovexattr "/usr/lib/libSystem.B.dylib"
712 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
714 func listxattr(path string, dest *byte, size int, options int) (sz int, err error) {
716 _p0, err = BytePtrFromString(path)
720 r0, _, e1 := syscall_syscall6(funcPC(libc_listxattr_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0)
728 func libc_listxattr_trampoline()
730 //go:linkname libc_listxattr libc_listxattr
731 //go:cgo_import_dynamic libc_listxattr listxattr "/usr/lib/libSystem.B.dylib"
733 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
735 func flistxattr(fd int, dest *byte, size int, options int) (sz int, err error) {
736 r0, _, e1 := syscall_syscall6(funcPC(libc_flistxattr_trampoline), uintptr(fd), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0)
744 func libc_flistxattr_trampoline()
746 //go:linkname libc_flistxattr libc_flistxattr
747 //go:cgo_import_dynamic libc_flistxattr flistxattr "/usr/lib/libSystem.B.dylib"
749 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
751 func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) {
752 _, _, e1 := syscall_syscall6(funcPC(libc_setattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0)
759 func libc_setattrlist_trampoline()
761 //go:linkname libc_setattrlist libc_setattrlist
762 //go:cgo_import_dynamic libc_setattrlist setattrlist "/usr/lib/libSystem.B.dylib"
764 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
766 func kill(pid int, signum int, posix int) (err error) {
767 _, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix))
774 func libc_kill_trampoline()
776 //go:linkname libc_kill libc_kill
777 //go:cgo_import_dynamic libc_kill kill "/usr/lib/libSystem.B.dylib"
779 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
781 func ioctl(fd int, req uint, arg uintptr) (err error) {
782 _, _, e1 := syscall_syscall(funcPC(libc_ioctl_trampoline), uintptr(fd), uintptr(req), uintptr(arg))
789 func libc_ioctl_trampoline()
791 //go:linkname libc_ioctl libc_ioctl
792 //go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib"
794 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
796 func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) {
797 _, _, e1 := syscall_syscall6(funcPC(libc_sendfile_trampoline), uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags))
804 func libc_sendfile_trampoline()
806 //go:linkname libc_sendfile libc_sendfile
807 //go:cgo_import_dynamic libc_sendfile sendfile "/usr/lib/libSystem.B.dylib"
809 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
811 func Access(path string, mode uint32) (err error) {
813 _p0, err = BytePtrFromString(path)
817 _, _, e1 := syscall_syscall(funcPC(libc_access_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
824 func libc_access_trampoline()
826 //go:linkname libc_access libc_access
827 //go:cgo_import_dynamic libc_access access "/usr/lib/libSystem.B.dylib"
829 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
831 func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
832 _, _, e1 := syscall_syscall(funcPC(libc_adjtime_trampoline), uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
839 func libc_adjtime_trampoline()
841 //go:linkname libc_adjtime libc_adjtime
842 //go:cgo_import_dynamic libc_adjtime adjtime "/usr/lib/libSystem.B.dylib"
844 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
846 func Chdir(path string) (err error) {
848 _p0, err = BytePtrFromString(path)
852 _, _, e1 := syscall_syscall(funcPC(libc_chdir_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
859 func libc_chdir_trampoline()
861 //go:linkname libc_chdir libc_chdir
862 //go:cgo_import_dynamic libc_chdir chdir "/usr/lib/libSystem.B.dylib"
864 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
866 func Chflags(path string, flags int) (err error) {
868 _p0, err = BytePtrFromString(path)
872 _, _, e1 := syscall_syscall(funcPC(libc_chflags_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
879 func libc_chflags_trampoline()
881 //go:linkname libc_chflags libc_chflags
882 //go:cgo_import_dynamic libc_chflags chflags "/usr/lib/libSystem.B.dylib"
884 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
886 func Chmod(path string, mode uint32) (err error) {
888 _p0, err = BytePtrFromString(path)
892 _, _, e1 := syscall_syscall(funcPC(libc_chmod_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
899 func libc_chmod_trampoline()
901 //go:linkname libc_chmod libc_chmod
902 //go:cgo_import_dynamic libc_chmod chmod "/usr/lib/libSystem.B.dylib"
904 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
906 func Chown(path string, uid int, gid int) (err error) {
908 _p0, err = BytePtrFromString(path)
912 _, _, e1 := syscall_syscall(funcPC(libc_chown_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
919 func libc_chown_trampoline()
921 //go:linkname libc_chown libc_chown
922 //go:cgo_import_dynamic libc_chown chown "/usr/lib/libSystem.B.dylib"
924 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
926 func Chroot(path string) (err error) {
928 _p0, err = BytePtrFromString(path)
932 _, _, e1 := syscall_syscall(funcPC(libc_chroot_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
939 func libc_chroot_trampoline()
941 //go:linkname libc_chroot libc_chroot
942 //go:cgo_import_dynamic libc_chroot chroot "/usr/lib/libSystem.B.dylib"
944 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
946 func Close(fd int) (err error) {
947 _, _, e1 := syscall_syscall(funcPC(libc_close_trampoline), uintptr(fd), 0, 0)
954 func libc_close_trampoline()
956 //go:linkname libc_close libc_close
957 //go:cgo_import_dynamic libc_close close "/usr/lib/libSystem.B.dylib"
959 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
961 func Dup(fd int) (nfd int, err error) {
962 r0, _, e1 := syscall_syscall(funcPC(libc_dup_trampoline), uintptr(fd), 0, 0)
970 func libc_dup_trampoline()
972 //go:linkname libc_dup libc_dup
973 //go:cgo_import_dynamic libc_dup dup "/usr/lib/libSystem.B.dylib"
975 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
977 func Dup2(from int, to int) (err error) {
978 _, _, e1 := syscall_syscall(funcPC(libc_dup2_trampoline), uintptr(from), uintptr(to), 0)
985 func libc_dup2_trampoline()
987 //go:linkname libc_dup2 libc_dup2
988 //go:cgo_import_dynamic libc_dup2 dup2 "/usr/lib/libSystem.B.dylib"
990 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
992 func Exchangedata(path1 string, path2 string, options int) (err error) {
994 _p0, err = BytePtrFromString(path1)
999 _p1, err = BytePtrFromString(path2)
1003 _, _, e1 := syscall_syscall(funcPC(libc_exchangedata_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
1010 func libc_exchangedata_trampoline()
1012 //go:linkname libc_exchangedata libc_exchangedata
1013 //go:cgo_import_dynamic libc_exchangedata exchangedata "/usr/lib/libSystem.B.dylib"
1015 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1017 func Exit(code int) {
1018 syscall_syscall(funcPC(libc_exit_trampoline), uintptr(code), 0, 0)
1022 func libc_exit_trampoline()
1024 //go:linkname libc_exit libc_exit
1025 //go:cgo_import_dynamic libc_exit exit "/usr/lib/libSystem.B.dylib"
1027 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1029 func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
1031 _p0, err = BytePtrFromString(path)
1035 _, _, e1 := syscall_syscall6(funcPC(libc_faccessat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
1042 func libc_faccessat_trampoline()
1044 //go:linkname libc_faccessat libc_faccessat
1045 //go:cgo_import_dynamic libc_faccessat faccessat "/usr/lib/libSystem.B.dylib"
1047 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1049 func Fchdir(fd int) (err error) {
1050 _, _, e1 := syscall_syscall(funcPC(libc_fchdir_trampoline), uintptr(fd), 0, 0)
1057 func libc_fchdir_trampoline()
1059 //go:linkname libc_fchdir libc_fchdir
1060 //go:cgo_import_dynamic libc_fchdir fchdir "/usr/lib/libSystem.B.dylib"
1062 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1064 func Fchflags(fd int, flags int) (err error) {
1065 _, _, e1 := syscall_syscall(funcPC(libc_fchflags_trampoline), uintptr(fd), uintptr(flags), 0)
1072 func libc_fchflags_trampoline()
1074 //go:linkname libc_fchflags libc_fchflags
1075 //go:cgo_import_dynamic libc_fchflags fchflags "/usr/lib/libSystem.B.dylib"
1077 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1079 func Fchmod(fd int, mode uint32) (err error) {
1080 _, _, e1 := syscall_syscall(funcPC(libc_fchmod_trampoline), uintptr(fd), uintptr(mode), 0)
1087 func libc_fchmod_trampoline()
1089 //go:linkname libc_fchmod libc_fchmod
1090 //go:cgo_import_dynamic libc_fchmod fchmod "/usr/lib/libSystem.B.dylib"
1092 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1094 func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
1096 _p0, err = BytePtrFromString(path)
1100 _, _, e1 := syscall_syscall6(funcPC(libc_fchmodat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
1107 func libc_fchmodat_trampoline()
1109 //go:linkname libc_fchmodat libc_fchmodat
1110 //go:cgo_import_dynamic libc_fchmodat fchmodat "/usr/lib/libSystem.B.dylib"
1112 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1114 func Fchown(fd int, uid int, gid int) (err error) {
1115 _, _, e1 := syscall_syscall(funcPC(libc_fchown_trampoline), uintptr(fd), uintptr(uid), uintptr(gid))
1122 func libc_fchown_trampoline()
1124 //go:linkname libc_fchown libc_fchown
1125 //go:cgo_import_dynamic libc_fchown fchown "/usr/lib/libSystem.B.dylib"
1127 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1129 func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
1131 _p0, err = BytePtrFromString(path)
1135 _, _, e1 := syscall_syscall6(funcPC(libc_fchownat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
1142 func libc_fchownat_trampoline()
1144 //go:linkname libc_fchownat libc_fchownat
1145 //go:cgo_import_dynamic libc_fchownat fchownat "/usr/lib/libSystem.B.dylib"
1147 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1149 func Flock(fd int, how int) (err error) {
1150 _, _, e1 := syscall_syscall(funcPC(libc_flock_trampoline), uintptr(fd), uintptr(how), 0)
1157 func libc_flock_trampoline()
1159 //go:linkname libc_flock libc_flock
1160 //go:cgo_import_dynamic libc_flock flock "/usr/lib/libSystem.B.dylib"
1162 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1164 func Fpathconf(fd int, name int) (val int, err error) {
1165 r0, _, e1 := syscall_syscall(funcPC(libc_fpathconf_trampoline), uintptr(fd), uintptr(name), 0)
1173 func libc_fpathconf_trampoline()
1175 //go:linkname libc_fpathconf libc_fpathconf
1176 //go:cgo_import_dynamic libc_fpathconf fpathconf "/usr/lib/libSystem.B.dylib"
1178 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1180 func Fsync(fd int) (err error) {
1181 _, _, e1 := syscall_syscall(funcPC(libc_fsync_trampoline), uintptr(fd), 0, 0)
1188 func libc_fsync_trampoline()
1190 //go:linkname libc_fsync libc_fsync
1191 //go:cgo_import_dynamic libc_fsync fsync "/usr/lib/libSystem.B.dylib"
1193 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1195 func Ftruncate(fd int, length int64) (err error) {
1196 _, _, e1 := syscall_syscall(funcPC(libc_ftruncate_trampoline), uintptr(fd), uintptr(length), 0)
1203 func libc_ftruncate_trampoline()
1205 //go:linkname libc_ftruncate libc_ftruncate
1206 //go:cgo_import_dynamic libc_ftruncate ftruncate "/usr/lib/libSystem.B.dylib"
1208 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1210 func Getdtablesize() (size int) {
1211 r0, _, _ := syscall_syscall(funcPC(libc_getdtablesize_trampoline), 0, 0, 0)
1216 func libc_getdtablesize_trampoline()
1218 //go:linkname libc_getdtablesize libc_getdtablesize
1219 //go:cgo_import_dynamic libc_getdtablesize getdtablesize "/usr/lib/libSystem.B.dylib"
1221 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1223 func Getegid() (egid int) {
1224 r0, _, _ := syscall_rawSyscall(funcPC(libc_getegid_trampoline), 0, 0, 0)
1229 func libc_getegid_trampoline()
1231 //go:linkname libc_getegid libc_getegid
1232 //go:cgo_import_dynamic libc_getegid getegid "/usr/lib/libSystem.B.dylib"
1234 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1236 func Geteuid() (uid int) {
1237 r0, _, _ := syscall_rawSyscall(funcPC(libc_geteuid_trampoline), 0, 0, 0)
1242 func libc_geteuid_trampoline()
1244 //go:linkname libc_geteuid libc_geteuid
1245 //go:cgo_import_dynamic libc_geteuid geteuid "/usr/lib/libSystem.B.dylib"
1247 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1249 func Getgid() (gid int) {
1250 r0, _, _ := syscall_rawSyscall(funcPC(libc_getgid_trampoline), 0, 0, 0)
1255 func libc_getgid_trampoline()
1257 //go:linkname libc_getgid libc_getgid
1258 //go:cgo_import_dynamic libc_getgid getgid "/usr/lib/libSystem.B.dylib"
1260 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1262 func Getpgid(pid int) (pgid int, err error) {
1263 r0, _, e1 := syscall_rawSyscall(funcPC(libc_getpgid_trampoline), uintptr(pid), 0, 0)
1271 func libc_getpgid_trampoline()
1273 //go:linkname libc_getpgid libc_getpgid
1274 //go:cgo_import_dynamic libc_getpgid getpgid "/usr/lib/libSystem.B.dylib"
1276 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1278 func Getpgrp() (pgrp int) {
1279 r0, _, _ := syscall_rawSyscall(funcPC(libc_getpgrp_trampoline), 0, 0, 0)
1284 func libc_getpgrp_trampoline()
1286 //go:linkname libc_getpgrp libc_getpgrp
1287 //go:cgo_import_dynamic libc_getpgrp getpgrp "/usr/lib/libSystem.B.dylib"
1289 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1291 func Getpid() (pid int) {
1292 r0, _, _ := syscall_rawSyscall(funcPC(libc_getpid_trampoline), 0, 0, 0)
1297 func libc_getpid_trampoline()
1299 //go:linkname libc_getpid libc_getpid
1300 //go:cgo_import_dynamic libc_getpid getpid "/usr/lib/libSystem.B.dylib"
1302 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1304 func Getppid() (ppid int) {
1305 r0, _, _ := syscall_rawSyscall(funcPC(libc_getppid_trampoline), 0, 0, 0)
1310 func libc_getppid_trampoline()
1312 //go:linkname libc_getppid libc_getppid
1313 //go:cgo_import_dynamic libc_getppid getppid "/usr/lib/libSystem.B.dylib"
1315 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1317 func Getpriority(which int, who int) (prio int, err error) {
1318 r0, _, e1 := syscall_syscall(funcPC(libc_getpriority_trampoline), uintptr(which), uintptr(who), 0)
1326 func libc_getpriority_trampoline()
1328 //go:linkname libc_getpriority libc_getpriority
1329 //go:cgo_import_dynamic libc_getpriority getpriority "/usr/lib/libSystem.B.dylib"
1331 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1333 func Getrlimit(which int, lim *Rlimit) (err error) {
1334 _, _, e1 := syscall_rawSyscall(funcPC(libc_getrlimit_trampoline), uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
1341 func libc_getrlimit_trampoline()
1343 //go:linkname libc_getrlimit libc_getrlimit
1344 //go:cgo_import_dynamic libc_getrlimit getrlimit "/usr/lib/libSystem.B.dylib"
1346 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1348 func Getrusage(who int, rusage *Rusage) (err error) {
1349 _, _, e1 := syscall_rawSyscall(funcPC(libc_getrusage_trampoline), uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
1356 func libc_getrusage_trampoline()
1358 //go:linkname libc_getrusage libc_getrusage
1359 //go:cgo_import_dynamic libc_getrusage getrusage "/usr/lib/libSystem.B.dylib"
1361 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1363 func Getsid(pid int) (sid int, err error) {
1364 r0, _, e1 := syscall_rawSyscall(funcPC(libc_getsid_trampoline), uintptr(pid), 0, 0)
1372 func libc_getsid_trampoline()
1374 //go:linkname libc_getsid libc_getsid
1375 //go:cgo_import_dynamic libc_getsid getsid "/usr/lib/libSystem.B.dylib"
1377 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1379 func Getuid() (uid int) {
1380 r0, _, _ := syscall_rawSyscall(funcPC(libc_getuid_trampoline), 0, 0, 0)
1385 func libc_getuid_trampoline()
1387 //go:linkname libc_getuid libc_getuid
1388 //go:cgo_import_dynamic libc_getuid getuid "/usr/lib/libSystem.B.dylib"
1390 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1392 func Issetugid() (tainted bool) {
1393 r0, _, _ := syscall_rawSyscall(funcPC(libc_issetugid_trampoline), 0, 0, 0)
1394 tainted = bool(r0 != 0)
1398 func libc_issetugid_trampoline()
1400 //go:linkname libc_issetugid libc_issetugid
1401 //go:cgo_import_dynamic libc_issetugid issetugid "/usr/lib/libSystem.B.dylib"
1403 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1405 func Kqueue() (fd int, err error) {
1406 r0, _, e1 := syscall_syscall(funcPC(libc_kqueue_trampoline), 0, 0, 0)
1414 func libc_kqueue_trampoline()
1416 //go:linkname libc_kqueue libc_kqueue
1417 //go:cgo_import_dynamic libc_kqueue kqueue "/usr/lib/libSystem.B.dylib"
1419 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1421 func Lchown(path string, uid int, gid int) (err error) {
1423 _p0, err = BytePtrFromString(path)
1427 _, _, e1 := syscall_syscall(funcPC(libc_lchown_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
1434 func libc_lchown_trampoline()
1436 //go:linkname libc_lchown libc_lchown
1437 //go:cgo_import_dynamic libc_lchown lchown "/usr/lib/libSystem.B.dylib"
1439 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1441 func Link(path string, link string) (err error) {
1443 _p0, err = BytePtrFromString(path)
1448 _p1, err = BytePtrFromString(link)
1452 _, _, e1 := syscall_syscall(funcPC(libc_link_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1459 func libc_link_trampoline()
1461 //go:linkname libc_link libc_link
1462 //go:cgo_import_dynamic libc_link link "/usr/lib/libSystem.B.dylib"
1464 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1466 func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) {
1468 _p0, err = BytePtrFromString(path)
1473 _p1, err = BytePtrFromString(link)
1477 _, _, e1 := syscall_syscall6(funcPC(libc_linkat_trampoline), uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
1484 func libc_linkat_trampoline()
1486 //go:linkname libc_linkat libc_linkat
1487 //go:cgo_import_dynamic libc_linkat linkat "/usr/lib/libSystem.B.dylib"
1489 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1491 func Listen(s int, backlog int) (err error) {
1492 _, _, e1 := syscall_syscall(funcPC(libc_listen_trampoline), uintptr(s), uintptr(backlog), 0)
1499 func libc_listen_trampoline()
1501 //go:linkname libc_listen libc_listen
1502 //go:cgo_import_dynamic libc_listen listen "/usr/lib/libSystem.B.dylib"
1504 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1506 func Mkdir(path string, mode uint32) (err error) {
1508 _p0, err = BytePtrFromString(path)
1512 _, _, e1 := syscall_syscall(funcPC(libc_mkdir_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
1519 func libc_mkdir_trampoline()
1521 //go:linkname libc_mkdir libc_mkdir
1522 //go:cgo_import_dynamic libc_mkdir mkdir "/usr/lib/libSystem.B.dylib"
1524 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1526 func Mkdirat(dirfd int, path string, mode uint32) (err error) {
1528 _p0, err = BytePtrFromString(path)
1532 _, _, e1 := syscall_syscall(funcPC(libc_mkdirat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
1539 func libc_mkdirat_trampoline()
1541 //go:linkname libc_mkdirat libc_mkdirat
1542 //go:cgo_import_dynamic libc_mkdirat mkdirat "/usr/lib/libSystem.B.dylib"
1544 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1546 func Mkfifo(path string, mode uint32) (err error) {
1548 _p0, err = BytePtrFromString(path)
1552 _, _, e1 := syscall_syscall(funcPC(libc_mkfifo_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
1559 func libc_mkfifo_trampoline()
1561 //go:linkname libc_mkfifo libc_mkfifo
1562 //go:cgo_import_dynamic libc_mkfifo mkfifo "/usr/lib/libSystem.B.dylib"
1564 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1566 func Mknod(path string, mode uint32, dev int) (err error) {
1568 _p0, err = BytePtrFromString(path)
1572 _, _, e1 := syscall_syscall(funcPC(libc_mknod_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
1579 func libc_mknod_trampoline()
1581 //go:linkname libc_mknod libc_mknod
1582 //go:cgo_import_dynamic libc_mknod mknod "/usr/lib/libSystem.B.dylib"
1584 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1586 func Open(path string, mode int, perm uint32) (fd int, err error) {
1588 _p0, err = BytePtrFromString(path)
1592 r0, _, e1 := syscall_syscall(funcPC(libc_open_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
1600 func libc_open_trampoline()
1602 //go:linkname libc_open libc_open
1603 //go:cgo_import_dynamic libc_open open "/usr/lib/libSystem.B.dylib"
1605 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1607 func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) {
1609 _p0, err = BytePtrFromString(path)
1613 r0, _, e1 := syscall_syscall6(funcPC(libc_openat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0)
1621 func libc_openat_trampoline()
1623 //go:linkname libc_openat libc_openat
1624 //go:cgo_import_dynamic libc_openat openat "/usr/lib/libSystem.B.dylib"
1626 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1628 func Pathconf(path string, name int) (val int, err error) {
1630 _p0, err = BytePtrFromString(path)
1634 r0, _, e1 := syscall_syscall(funcPC(libc_pathconf_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
1642 func libc_pathconf_trampoline()
1644 //go:linkname libc_pathconf libc_pathconf
1645 //go:cgo_import_dynamic libc_pathconf pathconf "/usr/lib/libSystem.B.dylib"
1647 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1649 func Pread(fd int, p []byte, offset int64) (n int, err error) {
1650 var _p0 unsafe.Pointer
1652 _p0 = unsafe.Pointer(&p[0])
1654 _p0 = unsafe.Pointer(&_zero)
1656 r0, _, e1 := syscall_syscall6(funcPC(libc_pread_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
1664 func libc_pread_trampoline()
1666 //go:linkname libc_pread libc_pread
1667 //go:cgo_import_dynamic libc_pread pread "/usr/lib/libSystem.B.dylib"
1669 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1671 func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
1672 var _p0 unsafe.Pointer
1674 _p0 = unsafe.Pointer(&p[0])
1676 _p0 = unsafe.Pointer(&_zero)
1678 r0, _, e1 := syscall_syscall6(funcPC(libc_pwrite_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
1686 func libc_pwrite_trampoline()
1688 //go:linkname libc_pwrite libc_pwrite
1689 //go:cgo_import_dynamic libc_pwrite pwrite "/usr/lib/libSystem.B.dylib"
1691 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1693 func read(fd int, p []byte) (n int, err error) {
1694 var _p0 unsafe.Pointer
1696 _p0 = unsafe.Pointer(&p[0])
1698 _p0 = unsafe.Pointer(&_zero)
1700 r0, _, e1 := syscall_syscall(funcPC(libc_read_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)))
1708 func libc_read_trampoline()
1710 //go:linkname libc_read libc_read
1711 //go:cgo_import_dynamic libc_read read "/usr/lib/libSystem.B.dylib"
1713 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1715 func Readlink(path string, buf []byte) (n int, err error) {
1717 _p0, err = BytePtrFromString(path)
1721 var _p1 unsafe.Pointer
1723 _p1 = unsafe.Pointer(&buf[0])
1725 _p1 = unsafe.Pointer(&_zero)
1727 r0, _, e1 := syscall_syscall(funcPC(libc_readlink_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
1735 func libc_readlink_trampoline()
1737 //go:linkname libc_readlink libc_readlink
1738 //go:cgo_import_dynamic libc_readlink readlink "/usr/lib/libSystem.B.dylib"
1740 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1742 func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
1744 _p0, err = BytePtrFromString(path)
1748 var _p1 unsafe.Pointer
1750 _p1 = unsafe.Pointer(&buf[0])
1752 _p1 = unsafe.Pointer(&_zero)
1754 r0, _, e1 := syscall_syscall6(funcPC(libc_readlinkat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
1762 func libc_readlinkat_trampoline()
1764 //go:linkname libc_readlinkat libc_readlinkat
1765 //go:cgo_import_dynamic libc_readlinkat readlinkat "/usr/lib/libSystem.B.dylib"
1767 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1769 func Rename(from string, to string) (err error) {
1771 _p0, err = BytePtrFromString(from)
1776 _p1, err = BytePtrFromString(to)
1780 _, _, e1 := syscall_syscall(funcPC(libc_rename_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1787 func libc_rename_trampoline()
1789 //go:linkname libc_rename libc_rename
1790 //go:cgo_import_dynamic libc_rename rename "/usr/lib/libSystem.B.dylib"
1792 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1794 func Renameat(fromfd int, from string, tofd int, to string) (err error) {
1796 _p0, err = BytePtrFromString(from)
1801 _p1, err = BytePtrFromString(to)
1805 _, _, e1 := syscall_syscall6(funcPC(libc_renameat_trampoline), uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0)
1812 func libc_renameat_trampoline()
1814 //go:linkname libc_renameat libc_renameat
1815 //go:cgo_import_dynamic libc_renameat renameat "/usr/lib/libSystem.B.dylib"
1817 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1819 func Revoke(path string) (err error) {
1821 _p0, err = BytePtrFromString(path)
1825 _, _, e1 := syscall_syscall(funcPC(libc_revoke_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
1832 func libc_revoke_trampoline()
1834 //go:linkname libc_revoke libc_revoke
1835 //go:cgo_import_dynamic libc_revoke revoke "/usr/lib/libSystem.B.dylib"
1837 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1839 func Rmdir(path string) (err error) {
1841 _p0, err = BytePtrFromString(path)
1845 _, _, e1 := syscall_syscall(funcPC(libc_rmdir_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
1852 func libc_rmdir_trampoline()
1854 //go:linkname libc_rmdir libc_rmdir
1855 //go:cgo_import_dynamic libc_rmdir rmdir "/usr/lib/libSystem.B.dylib"
1857 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1859 func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1860 r0, _, e1 := syscall_syscall(funcPC(libc_lseek_trampoline), uintptr(fd), uintptr(offset), uintptr(whence))
1861 newoffset = int64(r0)
1868 func libc_lseek_trampoline()
1870 //go:linkname libc_lseek libc_lseek
1871 //go:cgo_import_dynamic libc_lseek lseek "/usr/lib/libSystem.B.dylib"
1873 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1875 func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
1876 _, _, e1 := syscall_syscall6(funcPC(libc_select_trampoline), uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1883 func libc_select_trampoline()
1885 //go:linkname libc_select libc_select
1886 //go:cgo_import_dynamic libc_select select "/usr/lib/libSystem.B.dylib"
1888 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1890 func Setegid(egid int) (err error) {
1891 _, _, e1 := syscall_syscall(funcPC(libc_setegid_trampoline), uintptr(egid), 0, 0)
1898 func libc_setegid_trampoline()
1900 //go:linkname libc_setegid libc_setegid
1901 //go:cgo_import_dynamic libc_setegid setegid "/usr/lib/libSystem.B.dylib"
1903 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1905 func Seteuid(euid int) (err error) {
1906 _, _, e1 := syscall_rawSyscall(funcPC(libc_seteuid_trampoline), uintptr(euid), 0, 0)
1913 func libc_seteuid_trampoline()
1915 //go:linkname libc_seteuid libc_seteuid
1916 //go:cgo_import_dynamic libc_seteuid seteuid "/usr/lib/libSystem.B.dylib"
1918 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1920 func Setgid(gid int) (err error) {
1921 _, _, e1 := syscall_rawSyscall(funcPC(libc_setgid_trampoline), uintptr(gid), 0, 0)
1928 func libc_setgid_trampoline()
1930 //go:linkname libc_setgid libc_setgid
1931 //go:cgo_import_dynamic libc_setgid setgid "/usr/lib/libSystem.B.dylib"
1933 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1935 func Setlogin(name string) (err error) {
1937 _p0, err = BytePtrFromString(name)
1941 _, _, e1 := syscall_syscall(funcPC(libc_setlogin_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
1948 func libc_setlogin_trampoline()
1950 //go:linkname libc_setlogin libc_setlogin
1951 //go:cgo_import_dynamic libc_setlogin setlogin "/usr/lib/libSystem.B.dylib"
1953 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1955 func Setpgid(pid int, pgid int) (err error) {
1956 _, _, e1 := syscall_rawSyscall(funcPC(libc_setpgid_trampoline), uintptr(pid), uintptr(pgid), 0)
1963 func libc_setpgid_trampoline()
1965 //go:linkname libc_setpgid libc_setpgid
1966 //go:cgo_import_dynamic libc_setpgid setpgid "/usr/lib/libSystem.B.dylib"
1968 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1970 func Setpriority(which int, who int, prio int) (err error) {
1971 _, _, e1 := syscall_syscall(funcPC(libc_setpriority_trampoline), uintptr(which), uintptr(who), uintptr(prio))
1978 func libc_setpriority_trampoline()
1980 //go:linkname libc_setpriority libc_setpriority
1981 //go:cgo_import_dynamic libc_setpriority setpriority "/usr/lib/libSystem.B.dylib"
1983 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1985 func Setprivexec(flag int) (err error) {
1986 _, _, e1 := syscall_syscall(funcPC(libc_setprivexec_trampoline), uintptr(flag), 0, 0)
1993 func libc_setprivexec_trampoline()
1995 //go:linkname libc_setprivexec libc_setprivexec
1996 //go:cgo_import_dynamic libc_setprivexec setprivexec "/usr/lib/libSystem.B.dylib"
1998 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2000 func Setregid(rgid int, egid int) (err error) {
2001 _, _, e1 := syscall_rawSyscall(funcPC(libc_setregid_trampoline), uintptr(rgid), uintptr(egid), 0)
2008 func libc_setregid_trampoline()
2010 //go:linkname libc_setregid libc_setregid
2011 //go:cgo_import_dynamic libc_setregid setregid "/usr/lib/libSystem.B.dylib"
2013 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2015 func Setreuid(ruid int, euid int) (err error) {
2016 _, _, e1 := syscall_rawSyscall(funcPC(libc_setreuid_trampoline), uintptr(ruid), uintptr(euid), 0)
2023 func libc_setreuid_trampoline()
2025 //go:linkname libc_setreuid libc_setreuid
2026 //go:cgo_import_dynamic libc_setreuid setreuid "/usr/lib/libSystem.B.dylib"
2028 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2030 func Setrlimit(which int, lim *Rlimit) (err error) {
2031 _, _, e1 := syscall_rawSyscall(funcPC(libc_setrlimit_trampoline), uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
2038 func libc_setrlimit_trampoline()
2040 //go:linkname libc_setrlimit libc_setrlimit
2041 //go:cgo_import_dynamic libc_setrlimit setrlimit "/usr/lib/libSystem.B.dylib"
2043 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2045 func Setsid() (pid int, err error) {
2046 r0, _, e1 := syscall_rawSyscall(funcPC(libc_setsid_trampoline), 0, 0, 0)
2054 func libc_setsid_trampoline()
2056 //go:linkname libc_setsid libc_setsid
2057 //go:cgo_import_dynamic libc_setsid setsid "/usr/lib/libSystem.B.dylib"
2059 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2061 func Settimeofday(tp *Timeval) (err error) {
2062 _, _, e1 := syscall_rawSyscall(funcPC(libc_settimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0)
2069 func libc_settimeofday_trampoline()
2071 //go:linkname libc_settimeofday libc_settimeofday
2072 //go:cgo_import_dynamic libc_settimeofday settimeofday "/usr/lib/libSystem.B.dylib"
2074 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2076 func Setuid(uid int) (err error) {
2077 _, _, e1 := syscall_rawSyscall(funcPC(libc_setuid_trampoline), uintptr(uid), 0, 0)
2084 func libc_setuid_trampoline()
2086 //go:linkname libc_setuid libc_setuid
2087 //go:cgo_import_dynamic libc_setuid setuid "/usr/lib/libSystem.B.dylib"
2089 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2091 func Symlink(path string, link string) (err error) {
2093 _p0, err = BytePtrFromString(path)
2098 _p1, err = BytePtrFromString(link)
2102 _, _, e1 := syscall_syscall(funcPC(libc_symlink_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
2109 func libc_symlink_trampoline()
2111 //go:linkname libc_symlink libc_symlink
2112 //go:cgo_import_dynamic libc_symlink symlink "/usr/lib/libSystem.B.dylib"
2114 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2116 func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
2118 _p0, err = BytePtrFromString(oldpath)
2123 _p1, err = BytePtrFromString(newpath)
2127 _, _, e1 := syscall_syscall(funcPC(libc_symlinkat_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
2134 func libc_symlinkat_trampoline()
2136 //go:linkname libc_symlinkat libc_symlinkat
2137 //go:cgo_import_dynamic libc_symlinkat symlinkat "/usr/lib/libSystem.B.dylib"
2139 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2141 func Sync() (err error) {
2142 _, _, e1 := syscall_syscall(funcPC(libc_sync_trampoline), 0, 0, 0)
2149 func libc_sync_trampoline()
2151 //go:linkname libc_sync libc_sync
2152 //go:cgo_import_dynamic libc_sync sync "/usr/lib/libSystem.B.dylib"
2154 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2156 func Truncate(path string, length int64) (err error) {
2158 _p0, err = BytePtrFromString(path)
2162 _, _, e1 := syscall_syscall(funcPC(libc_truncate_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
2169 func libc_truncate_trampoline()
2171 //go:linkname libc_truncate libc_truncate
2172 //go:cgo_import_dynamic libc_truncate truncate "/usr/lib/libSystem.B.dylib"
2174 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2176 func Umask(newmask int) (oldmask int) {
2177 r0, _, _ := syscall_syscall(funcPC(libc_umask_trampoline), uintptr(newmask), 0, 0)
2182 func libc_umask_trampoline()
2184 //go:linkname libc_umask libc_umask
2185 //go:cgo_import_dynamic libc_umask umask "/usr/lib/libSystem.B.dylib"
2187 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2189 func Undelete(path string) (err error) {
2191 _p0, err = BytePtrFromString(path)
2195 _, _, e1 := syscall_syscall(funcPC(libc_undelete_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
2202 func libc_undelete_trampoline()
2204 //go:linkname libc_undelete libc_undelete
2205 //go:cgo_import_dynamic libc_undelete undelete "/usr/lib/libSystem.B.dylib"
2207 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2209 func Unlink(path string) (err error) {
2211 _p0, err = BytePtrFromString(path)
2215 _, _, e1 := syscall_syscall(funcPC(libc_unlink_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
2222 func libc_unlink_trampoline()
2224 //go:linkname libc_unlink libc_unlink
2225 //go:cgo_import_dynamic libc_unlink unlink "/usr/lib/libSystem.B.dylib"
2227 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2229 func Unlinkat(dirfd int, path string, flags int) (err error) {
2231 _p0, err = BytePtrFromString(path)
2235 _, _, e1 := syscall_syscall(funcPC(libc_unlinkat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
2242 func libc_unlinkat_trampoline()
2244 //go:linkname libc_unlinkat libc_unlinkat
2245 //go:cgo_import_dynamic libc_unlinkat unlinkat "/usr/lib/libSystem.B.dylib"
2247 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2249 func Unmount(path string, flags int) (err error) {
2251 _p0, err = BytePtrFromString(path)
2255 _, _, e1 := syscall_syscall(funcPC(libc_unmount_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
2262 func libc_unmount_trampoline()
2264 //go:linkname libc_unmount libc_unmount
2265 //go:cgo_import_dynamic libc_unmount unmount "/usr/lib/libSystem.B.dylib"
2267 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2269 func write(fd int, p []byte) (n int, err error) {
2270 var _p0 unsafe.Pointer
2272 _p0 = unsafe.Pointer(&p[0])
2274 _p0 = unsafe.Pointer(&_zero)
2276 r0, _, e1 := syscall_syscall(funcPC(libc_write_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)))
2284 func libc_write_trampoline()
2286 //go:linkname libc_write libc_write
2287 //go:cgo_import_dynamic libc_write write "/usr/lib/libSystem.B.dylib"
2289 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2291 func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
2292 r0, _, e1 := syscall_syscall6(funcPC(libc_mmap_trampoline), uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
2300 func libc_mmap_trampoline()
2302 //go:linkname libc_mmap libc_mmap
2303 //go:cgo_import_dynamic libc_mmap mmap "/usr/lib/libSystem.B.dylib"
2305 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2307 func munmap(addr uintptr, length uintptr) (err error) {
2308 _, _, e1 := syscall_syscall(funcPC(libc_munmap_trampoline), uintptr(addr), uintptr(length), 0)
2315 func libc_munmap_trampoline()
2317 //go:linkname libc_munmap libc_munmap
2318 //go:cgo_import_dynamic libc_munmap munmap "/usr/lib/libSystem.B.dylib"
2320 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2322 func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
2323 r0, _, e1 := syscall_syscall(funcPC(libc_read_trampoline), uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
2331 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2333 func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
2334 r0, _, e1 := syscall_syscall(funcPC(libc_write_trampoline), uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
2342 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2344 func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) {
2345 r0, r1, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0)
2354 func libc_gettimeofday_trampoline()
2356 //go:linkname libc_gettimeofday libc_gettimeofday
2357 //go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib"
2359 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2361 func Fstat(fd int, stat *Stat_t) (err error) {
2362 _, _, e1 := syscall_syscall(funcPC(libc_fstat_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
2369 func libc_fstat_trampoline()
2371 //go:linkname libc_fstat libc_fstat
2372 //go:cgo_import_dynamic libc_fstat fstat "/usr/lib/libSystem.B.dylib"
2374 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2376 func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
2378 _p0, err = BytePtrFromString(path)
2382 _, _, e1 := syscall_syscall6(funcPC(libc_fstatat_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
2389 func libc_fstatat_trampoline()
2391 //go:linkname libc_fstatat libc_fstatat
2392 //go:cgo_import_dynamic libc_fstatat fstatat "/usr/lib/libSystem.B.dylib"
2394 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2396 func Fstatfs(fd int, stat *Statfs_t) (err error) {
2397 _, _, e1 := syscall_syscall(funcPC(libc_fstatfs_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
2404 func libc_fstatfs_trampoline()
2406 //go:linkname libc_fstatfs libc_fstatfs
2407 //go:cgo_import_dynamic libc_fstatfs fstatfs "/usr/lib/libSystem.B.dylib"
2409 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2411 func getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) {
2412 r0, _, e1 := syscall_syscall(funcPC(libc_getfsstat_trampoline), uintptr(buf), uintptr(size), uintptr(flags))
2420 func libc_getfsstat_trampoline()
2422 //go:linkname libc_getfsstat libc_getfsstat
2423 //go:cgo_import_dynamic libc_getfsstat getfsstat "/usr/lib/libSystem.B.dylib"
2425 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2427 func Lstat(path string, stat *Stat_t) (err error) {
2429 _p0, err = BytePtrFromString(path)
2433 _, _, e1 := syscall_syscall(funcPC(libc_lstat_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
2440 func libc_lstat_trampoline()
2442 //go:linkname libc_lstat libc_lstat
2443 //go:cgo_import_dynamic libc_lstat lstat "/usr/lib/libSystem.B.dylib"
2445 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2447 func Stat(path string, stat *Stat_t) (err error) {
2449 _p0, err = BytePtrFromString(path)
2453 _, _, e1 := syscall_syscall(funcPC(libc_stat_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
2460 func libc_stat_trampoline()
2462 //go:linkname libc_stat libc_stat
2463 //go:cgo_import_dynamic libc_stat stat "/usr/lib/libSystem.B.dylib"
2465 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2467 func Statfs(path string, stat *Statfs_t) (err error) {
2469 _p0, err = BytePtrFromString(path)
2473 _, _, e1 := syscall_syscall(funcPC(libc_statfs_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
2480 func libc_statfs_trampoline()
2482 //go:linkname libc_statfs libc_statfs
2483 //go:cgo_import_dynamic libc_statfs statfs "/usr/lib/libSystem.B.dylib"