1
2
3
4
5
6
7 package unix
8
9 import (
10 "syscall"
11 "unsafe"
12 )
13
14 var _ syscall.Errno
15
16
17
18 func closedir(dir uintptr) (err error) {
19 _, _, e1 := syscall_syscall(libc_closedir_trampoline_addr, uintptr(dir), 0, 0)
20 if e1 != 0 {
21 err = errnoErr(e1)
22 }
23 return
24 }
25
26 var libc_closedir_trampoline_addr uintptr
27
28
29
30
31
32 func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
33 r0, _, _ := syscall_syscall(libc_readdir_r_trampoline_addr, uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
34 res = Errno(r0)
35 return
36 }
37
38 var libc_readdir_r_trampoline_addr uintptr
39
40
41
View as plain text