Source file
src/runtime/sys_openbsd3.go
Documentation: runtime
1
2
3
4
5
6
7
8 package runtime
9
10 import "unsafe"
11
12
13
14
15
16
17
18
19
20
21 func syscall_syscall(fn, a1, a2, a3 uintptr) (r1, r2, err uintptr) {
22 entersyscall()
23 libcCall(unsafe.Pointer(funcPC(syscall)), unsafe.Pointer(&fn))
24 exitsyscall()
25 return
26 }
27 func syscall()
28
29
30
31
32 func syscall_syscallX(fn, a1, a2, a3 uintptr) (r1, r2, err uintptr) {
33 entersyscall()
34 libcCall(unsafe.Pointer(funcPC(syscallX)), unsafe.Pointer(&fn))
35 exitsyscall()
36 return
37 }
38 func syscallX()
39
40
41
42
43 func syscall_syscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr) {
44 entersyscall()
45 libcCall(unsafe.Pointer(funcPC(syscall6)), unsafe.Pointer(&fn))
46 exitsyscall()
47 return
48 }
49 func syscall6()
50
51
52
53
54 func syscall_syscall6X(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr) {
55 entersyscall()
56 libcCall(unsafe.Pointer(funcPC(syscall6X)), unsafe.Pointer(&fn))
57 exitsyscall()
58 return
59 }
60 func syscall6X()
61
62
63
64
65 func syscall_syscall10(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 uintptr) (r1, r2, err uintptr) {
66 entersyscall()
67 libcCall(unsafe.Pointer(funcPC(syscall10)), unsafe.Pointer(&fn))
68 exitsyscall()
69 return
70 }
71 func syscall10()
72
73
74
75
76 func syscall_syscall10X(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 uintptr) (r1, r2, err uintptr) {
77 entersyscall()
78 libcCall(unsafe.Pointer(funcPC(syscall10X)), unsafe.Pointer(&fn))
79 exitsyscall()
80 return
81 }
82 func syscall10X()
83
84
85
86
87 func syscall_rawSyscall(fn, a1, a2, a3 uintptr) (r1, r2, err uintptr) {
88 libcCall(unsafe.Pointer(funcPC(syscall)), unsafe.Pointer(&fn))
89 return
90 }
91
92
93
94
95 func syscall_rawSyscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr) {
96 libcCall(unsafe.Pointer(funcPC(syscall6)), unsafe.Pointer(&fn))
97 return
98 }
99
100
101
102
103 func syscall_rawSyscall6X(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr) {
104 libcCall(unsafe.Pointer(funcPC(syscall6X)), unsafe.Pointer(&fn))
105 return
106 }
107
108
109
110
111 func syscall_rawSyscall10X(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 uintptr) (r1, r2, err uintptr) {
112 libcCall(unsafe.Pointer(funcPC(syscall10X)), unsafe.Pointer(&fn))
113 return
114 }
115
View as plain text