diff options
Diffstat (limited to 'vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go | 94 |
1 files changed, 55 insertions, 39 deletions
diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go index 5258a73..a8709f7 100644 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go +++ b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go | |||
@@ -304,27 +304,6 @@ func libc_kevent_trampoline() | |||
304 | 304 | ||
305 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 305 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
306 | 306 | ||
307 | func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { | ||
308 | var _p0 unsafe.Pointer | ||
309 | if len(mib) > 0 { | ||
310 | _p0 = unsafe.Pointer(&mib[0]) | ||
311 | } else { | ||
312 | _p0 = unsafe.Pointer(&_zero) | ||
313 | } | ||
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)) | ||
315 | if e1 != 0 { | ||
316 | err = errnoErr(e1) | ||
317 | } | ||
318 | return | ||
319 | } | ||
320 | |||
321 | func libc___sysctl_trampoline() | ||
322 | |||
323 | //go:linkname libc___sysctl libc___sysctl | ||
324 | //go:cgo_import_dynamic libc___sysctl __sysctl "/usr/lib/libSystem.B.dylib" | ||
325 | |||
326 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
327 | |||
328 | func utimes(path string, timeval *[2]Timeval) (err error) { | 307 | func utimes(path string, timeval *[2]Timeval) (err error) { |
329 | var _p0 *byte | 308 | var _p0 *byte |
330 | _p0, err = BytePtrFromString(path) | 309 | _p0, err = BytePtrFromString(path) |
@@ -360,22 +339,6 @@ func libc_futimes_trampoline() | |||
360 | 339 | ||
361 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 340 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
362 | 341 | ||
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)) | ||
365 | val = int(r0) | ||
366 | if e1 != 0 { | ||
367 | err = errnoErr(e1) | ||
368 | } | ||
369 | return | ||
370 | } | ||
371 | |||
372 | func libc_fcntl_trampoline() | ||
373 | |||
374 | //go:linkname libc_fcntl libc_fcntl | ||
375 | //go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib" | ||
376 | |||
377 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
378 | |||
379 | func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { | 342 | 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)) | 343 | r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) |
381 | n = int(r0) | 344 | n = int(r0) |
@@ -748,6 +711,22 @@ func libc_setattrlist_trampoline() | |||
748 | 711 | ||
749 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 712 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
750 | 713 | ||
714 | func fcntl(fd int, cmd int, arg int) (val int, err error) { | ||
715 | r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg)) | ||
716 | val = int(r0) | ||
717 | if e1 != 0 { | ||
718 | err = errnoErr(e1) | ||
719 | } | ||
720 | return | ||
721 | } | ||
722 | |||
723 | func libc_fcntl_trampoline() | ||
724 | |||
725 | //go:linkname libc_fcntl libc_fcntl | ||
726 | //go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib" | ||
727 | |||
728 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
729 | |||
751 | func kill(pid int, signum int, posix int) (err error) { | 730 | func kill(pid int, signum int, posix int) (err error) { |
752 | _, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix)) | 731 | _, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix)) |
753 | if e1 != 0 { | 732 | if e1 != 0 { |
@@ -778,6 +757,27 @@ func libc_ioctl_trampoline() | |||
778 | 757 | ||
779 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 758 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
780 | 759 | ||
760 | func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { | ||
761 | var _p0 unsafe.Pointer | ||
762 | if len(mib) > 0 { | ||
763 | _p0 = unsafe.Pointer(&mib[0]) | ||
764 | } else { | ||
765 | _p0 = unsafe.Pointer(&_zero) | ||
766 | } | ||
767 | _, _, 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)) | ||
768 | if e1 != 0 { | ||
769 | err = errnoErr(e1) | ||
770 | } | ||
771 | return | ||
772 | } | ||
773 | |||
774 | func libc_sysctl_trampoline() | ||
775 | |||
776 | //go:linkname libc_sysctl libc_sysctl | ||
777 | //go:cgo_import_dynamic libc_sysctl sysctl "/usr/lib/libSystem.B.dylib" | ||
778 | |||
779 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
780 | |||
781 | func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) { | 781 | func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) { |
782 | _, _, e1 := syscall_syscall6(funcPC(libc_sendfile_trampoline), uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags)) | 782 | _, _, e1 := syscall_syscall6(funcPC(libc_sendfile_trampoline), uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags)) |
783 | if e1 != 0 { | 783 | if e1 != 0 { |
@@ -928,6 +928,21 @@ func libc_chroot_trampoline() | |||
928 | 928 | ||
929 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 929 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
930 | 930 | ||
931 | func ClockGettime(clockid int32, time *Timespec) (err error) { | ||
932 | _, _, e1 := syscall_syscall(funcPC(libc_clock_gettime_trampoline), uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) | ||
933 | if e1 != 0 { | ||
934 | err = errnoErr(e1) | ||
935 | } | ||
936 | return | ||
937 | } | ||
938 | |||
939 | func libc_clock_gettime_trampoline() | ||
940 | |||
941 | //go:linkname libc_clock_gettime libc_clock_gettime | ||
942 | //go:cgo_import_dynamic libc_clock_gettime clock_gettime "/usr/lib/libSystem.B.dylib" | ||
943 | |||
944 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | ||
945 | |||
931 | func Close(fd int) (err error) { | 946 | func Close(fd int) (err error) { |
932 | _, _, e1 := syscall_syscall(funcPC(libc_close_trampoline), uintptr(fd), 0, 0) | 947 | _, _, e1 := syscall_syscall(funcPC(libc_close_trampoline), uintptr(fd), 0, 0) |
933 | if e1 != 0 { | 948 | if e1 != 0 { |
@@ -1857,8 +1872,9 @@ func libc_lseek_trampoline() | |||
1857 | 1872 | ||
1858 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT | 1873 | // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1859 | 1874 | ||
1860 | func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { | 1875 | func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { |
1861 | _, _, 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) | 1876 | r0, _, e1 := syscall_syscall6(funcPC(libc_select_trampoline), uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) |
1877 | n = int(r0) | ||
1862 | if e1 != 0 { | 1878 | if e1 != 0 { |
1863 | err = errnoErr(e1) | 1879 | err = errnoErr(e1) |
1864 | } | 1880 | } |