liyujie
2025-08-28 d9927380ed7c8366f762049be9f3fee225860833
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// mksyscall.pl -l32 -nacl -arm -tags nacl,arm syscall_nacl.go syscall_nacl_arm.go
// Code generated by the command above; DO NOT EDIT.
 
// +build nacl,arm
 
package syscall
 
import "unsafe"
 
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
func naclClose(fd int) (err error) {
   _, _, e1 := Syscall(sys_close, uintptr(fd), 0, 0)
   if e1 != 0 {
       err = errnoErr(e1)
   }
   return
}
 
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
func naclFstat(fd int, stat *Stat_t) (err error) {
   _, _, e1 := Syscall(sys_fstat, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
   if e1 != 0 {
       err = errnoErr(e1)
   }
   return
}
 
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
func naclRead(fd int, b []byte) (n int, err error) {
   var _p0 unsafe.Pointer
   if len(b) > 0 {
       _p0 = unsafe.Pointer(&b[0])
   } else {
       _p0 = unsafe.Pointer(&_zero)
   }
   r0, _, e1 := Syscall(sys_read, uintptr(fd), uintptr(_p0), uintptr(len(b)))
   n = int(r0)
   if e1 != 0 {
       err = errnoErr(e1)
   }
   return
}
 
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
func naclSeek(fd int, off *int64, whence int) (err error) {
   _, _, e1 := Syscall(sys_lseek, uintptr(fd), uintptr(unsafe.Pointer(off)), uintptr(whence))
   if e1 != 0 {
       err = errnoErr(e1)
   }
   return
}
 
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
func naclGetRandomBytes(b []byte) (err error) {
   var _p0 unsafe.Pointer
   if len(b) > 0 {
       _p0 = unsafe.Pointer(&b[0])
   } else {
       _p0 = unsafe.Pointer(&_zero)
   }
   _, _, e1 := Syscall(sys_get_random_bytes, uintptr(_p0), uintptr(len(b)), 0)
   if e1 != 0 {
       err = errnoErr(e1)
   }
   return
}