zsyscall_darwin_arm64.1_13.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // go run mksyscall.go -tags darwin,arm64,go1.13 syscall_darwin.1_13.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. // +build darwin,arm64,go1.13
  4. package unix
  5. import (
  6. "syscall"
  7. "unsafe"
  8. )
  9. var _ syscall.Errno
  10. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  11. func closedir(dir uintptr) (err error) {
  12. _, _, e1 := syscall_syscall(funcPC(libc_closedir_trampoline), uintptr(dir), 0, 0)
  13. if e1 != 0 {
  14. err = errnoErr(e1)
  15. }
  16. return
  17. }
  18. func libc_closedir_trampoline()
  19. //go:linkname libc_closedir libc_closedir
  20. //go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
  21. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  22. func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
  23. r0, _, _ := syscall_syscall(funcPC(libc_readdir_r_trampoline), uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
  24. res = Errno(r0)
  25. return
  26. }
  27. func libc_readdir_r_trampoline()
  28. //go:linkname libc_readdir_r libc_readdir_r
  29. //go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"