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