vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.go
changeset 251 1c52a0eeb952
child 256 6d9efbef00a9
equal deleted inserted replaced
250:c040f992052f 251:1c52a0eeb952
       
     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 
       
     4 // +build darwin,arm64,go1.13
       
     5 
       
     6 package unix
       
     7 
       
     8 import (
       
     9 	"syscall"
       
    10 	"unsafe"
       
    11 )
       
    12 
       
    13 var _ syscall.Errno
       
    14 
       
    15 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
       
    16 
       
    17 func closedir(dir uintptr) (err error) {
       
    18 	_, _, e1 := syscall_syscall(funcPC(libc_closedir_trampoline), uintptr(dir), 0, 0)
       
    19 	if e1 != 0 {
       
    20 		err = errnoErr(e1)
       
    21 	}
       
    22 	return
       
    23 }
       
    24 
       
    25 func libc_closedir_trampoline()
       
    26 
       
    27 //go:linkname libc_closedir libc_closedir
       
    28 //go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
       
    29 
       
    30 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
       
    31 
       
    32 func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
       
    33 	r0, _, _ := syscall_syscall(funcPC(libc_readdir_r_trampoline), uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
       
    34 	res = Errno(r0)
       
    35 	return
       
    36 }
       
    37 
       
    38 func libc_readdir_r_trampoline()
       
    39 
       
    40 //go:linkname libc_readdir_r libc_readdir_r
       
    41 //go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"