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 func syscall_syscall(fn, a1, a2, a3 uintptr) (r1, r2, err uintptr) {
24 entersyscall()
25 libcCall(unsafe.Pointer(abi.FuncPCABI0(syscall)), unsafe.Pointer(&fn))
26 exitsyscall()
27 return
28 }
29 func syscall()
30
31
32
33
34 func syscall_syscallX(fn, a1, a2, a3 uintptr) (r1, r2, err uintptr) {
35 entersyscall()
36 libcCall(unsafe.Pointer(abi.FuncPCABI0(syscallX)), unsafe.Pointer(&fn))
37 exitsyscall()
38 return
39 }
40 func syscallX()
41
42
43
44
45 func syscall_syscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr) {
46 entersyscall()
47 libcCall(unsafe.Pointer(abi.FuncPCABI0(syscall6)), unsafe.Pointer(&fn))
48 exitsyscall()
49 return
50 }
51 func syscall6()
52
53
54
55
56 func syscall_syscall6X(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr) {
57 entersyscall()
58 libcCall(unsafe.Pointer(abi.FuncPCABI0(syscall6X)), unsafe.Pointer(&fn))
59 exitsyscall()
60 return
61 }
62 func syscall6X()
63
64
65
66
67 func syscall_syscall10(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 uintptr) (r1, r2, err uintptr) {
68 entersyscall()
69 libcCall(unsafe.Pointer(abi.FuncPCABI0(syscall10)), unsafe.Pointer(&fn))
70 exitsyscall()
71 return
72 }
73 func syscall10()
74
75
76
77
78 func syscall_syscall10X(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 uintptr) (r1, r2, err uintptr) {
79 entersyscall()
80 libcCall(unsafe.Pointer(abi.FuncPCABI0(syscall10X)), unsafe.Pointer(&fn))
81 exitsyscall()
82 return
83 }
84 func syscall10X()
85
86
87
88
89 func syscall_rawSyscall(fn, a1, a2, a3 uintptr) (r1, r2, err uintptr) {
90 libcCall(unsafe.Pointer(abi.FuncPCABI0(syscall)), unsafe.Pointer(&fn))
91 return
92 }
93
94
95
96
97 func syscall_rawSyscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr) {
98 libcCall(unsafe.Pointer(abi.FuncPCABI0(syscall6)), unsafe.Pointer(&fn))
99 return
100 }
101
102
103
104
105 func syscall_rawSyscall6X(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr) {
106 libcCall(unsafe.Pointer(abi.FuncPCABI0(syscall6X)), unsafe.Pointer(&fn))
107 return
108 }
109
110
111
112
113 func syscall_rawSyscall10X(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10 uintptr) (r1, r2, err uintptr) {
114 libcCall(unsafe.Pointer(abi.FuncPCABI0(syscall10X)), unsafe.Pointer(&fn))
115 return
116 }
117
View as plain text