13 var _ syscall.Errno |
13 var _ syscall.Errno |
14 |
14 |
15 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
15 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
16 |
16 |
17 func getgroups(ngid int, gid *_Gid_t) (n int, err error) { |
17 func getgroups(ngid int, gid *_Gid_t) (n int, err error) { |
18 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) |
18 r0, _, e1 := syscall_rawSyscall(funcPC(libc_getgroups_trampoline), uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) |
19 n = int(r0) |
19 n = int(r0) |
20 if e1 != 0 { |
20 if e1 != 0 { |
21 err = errnoErr(e1) |
21 err = errnoErr(e1) |
22 } |
22 } |
23 return |
23 return |
24 } |
24 } |
25 |
25 |
|
26 func libc_getgroups_trampoline() |
|
27 |
|
28 //go:linkname libc_getgroups libc_getgroups |
|
29 //go:cgo_import_dynamic libc_getgroups getgroups "/usr/lib/libSystem.B.dylib" |
|
30 |
26 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
31 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
27 |
32 |
28 func setgroups(ngid int, gid *_Gid_t) (err error) { |
33 func setgroups(ngid int, gid *_Gid_t) (err error) { |
29 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) |
34 _, _, e1 := syscall_rawSyscall(funcPC(libc_setgroups_trampoline), uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) |
30 if e1 != 0 { |
35 if e1 != 0 { |
31 err = errnoErr(e1) |
36 err = errnoErr(e1) |
32 } |
37 } |
33 return |
38 return |
34 } |
39 } |
|
40 |
|
41 func libc_setgroups_trampoline() |
|
42 |
|
43 //go:linkname libc_setgroups libc_setgroups |
|
44 //go:cgo_import_dynamic libc_setgroups setgroups "/usr/lib/libSystem.B.dylib" |
35 |
45 |
36 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
46 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
37 |
47 |
38 func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { |
48 func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { |
39 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) |
49 r0, _, e1 := syscall_syscall6(funcPC(libc_wait4_trampoline), uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) |
40 wpid = int(r0) |
50 wpid = int(r0) |
41 if e1 != 0 { |
51 if e1 != 0 { |
42 err = errnoErr(e1) |
52 err = errnoErr(e1) |
43 } |
53 } |
44 return |
54 return |
45 } |
55 } |
46 |
56 |
|
57 func libc_wait4_trampoline() |
|
58 |
|
59 //go:linkname libc_wait4 libc_wait4 |
|
60 //go:cgo_import_dynamic libc_wait4 wait4 "/usr/lib/libSystem.B.dylib" |
|
61 |
47 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
62 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
48 |
63 |
49 func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { |
64 func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { |
50 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) |
65 r0, _, e1 := syscall_syscall(funcPC(libc_accept_trampoline), uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) |
51 fd = int(r0) |
66 fd = int(r0) |
52 if e1 != 0 { |
67 if e1 != 0 { |
53 err = errnoErr(e1) |
68 err = errnoErr(e1) |
54 } |
69 } |
55 return |
70 return |
56 } |
71 } |
57 |
72 |
|
73 func libc_accept_trampoline() |
|
74 |
|
75 //go:linkname libc_accept libc_accept |
|
76 //go:cgo_import_dynamic libc_accept accept "/usr/lib/libSystem.B.dylib" |
|
77 |
58 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
78 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
59 |
79 |
60 func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { |
80 func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { |
61 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) |
81 _, _, e1 := syscall_syscall(funcPC(libc_bind_trampoline), uintptr(s), uintptr(addr), uintptr(addrlen)) |
62 if e1 != 0 { |
82 if e1 != 0 { |
63 err = errnoErr(e1) |
83 err = errnoErr(e1) |
64 } |
84 } |
65 return |
85 return |
66 } |
86 } |
|
87 |
|
88 func libc_bind_trampoline() |
|
89 |
|
90 //go:linkname libc_bind libc_bind |
|
91 //go:cgo_import_dynamic libc_bind bind "/usr/lib/libSystem.B.dylib" |
67 |
92 |
68 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
93 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
69 |
94 |
70 func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { |
95 func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { |
71 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) |
96 _, _, e1 := syscall_syscall(funcPC(libc_connect_trampoline), uintptr(s), uintptr(addr), uintptr(addrlen)) |
72 if e1 != 0 { |
97 if e1 != 0 { |
73 err = errnoErr(e1) |
98 err = errnoErr(e1) |
74 } |
99 } |
75 return |
100 return |
76 } |
101 } |
|
102 |
|
103 func libc_connect_trampoline() |
|
104 |
|
105 //go:linkname libc_connect libc_connect |
|
106 //go:cgo_import_dynamic libc_connect connect "/usr/lib/libSystem.B.dylib" |
77 |
107 |
78 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
108 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
79 |
109 |
80 func socket(domain int, typ int, proto int) (fd int, err error) { |
110 func socket(domain int, typ int, proto int) (fd int, err error) { |
81 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) |
111 r0, _, e1 := syscall_rawSyscall(funcPC(libc_socket_trampoline), uintptr(domain), uintptr(typ), uintptr(proto)) |
82 fd = int(r0) |
112 fd = int(r0) |
83 if e1 != 0 { |
113 if e1 != 0 { |
84 err = errnoErr(e1) |
114 err = errnoErr(e1) |
85 } |
115 } |
86 return |
116 return |
87 } |
117 } |
88 |
118 |
|
119 func libc_socket_trampoline() |
|
120 |
|
121 //go:linkname libc_socket libc_socket |
|
122 //go:cgo_import_dynamic libc_socket socket "/usr/lib/libSystem.B.dylib" |
|
123 |
89 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
124 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
90 |
125 |
91 func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { |
126 func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { |
92 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) |
127 _, _, e1 := syscall_syscall6(funcPC(libc_getsockopt_trampoline), uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) |
93 if e1 != 0 { |
128 if e1 != 0 { |
94 err = errnoErr(e1) |
129 err = errnoErr(e1) |
95 } |
130 } |
96 return |
131 return |
97 } |
132 } |
|
133 |
|
134 func libc_getsockopt_trampoline() |
|
135 |
|
136 //go:linkname libc_getsockopt libc_getsockopt |
|
137 //go:cgo_import_dynamic libc_getsockopt getsockopt "/usr/lib/libSystem.B.dylib" |
98 |
138 |
99 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
139 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
100 |
140 |
101 func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { |
141 func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { |
102 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) |
142 _, _, e1 := syscall_syscall6(funcPC(libc_setsockopt_trampoline), uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) |
103 if e1 != 0 { |
143 if e1 != 0 { |
104 err = errnoErr(e1) |
144 err = errnoErr(e1) |
105 } |
145 } |
106 return |
146 return |
107 } |
147 } |
|
148 |
|
149 func libc_setsockopt_trampoline() |
|
150 |
|
151 //go:linkname libc_setsockopt libc_setsockopt |
|
152 //go:cgo_import_dynamic libc_setsockopt setsockopt "/usr/lib/libSystem.B.dylib" |
108 |
153 |
109 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
154 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
110 |
155 |
111 func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { |
156 func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { |
112 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) |
157 _, _, e1 := syscall_rawSyscall(funcPC(libc_getpeername_trampoline), uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) |
113 if e1 != 0 { |
158 if e1 != 0 { |
114 err = errnoErr(e1) |
159 err = errnoErr(e1) |
115 } |
160 } |
116 return |
161 return |
117 } |
162 } |
|
163 |
|
164 func libc_getpeername_trampoline() |
|
165 |
|
166 //go:linkname libc_getpeername libc_getpeername |
|
167 //go:cgo_import_dynamic libc_getpeername getpeername "/usr/lib/libSystem.B.dylib" |
118 |
168 |
119 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
169 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
120 |
170 |
121 func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { |
171 func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { |
122 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) |
172 _, _, e1 := syscall_rawSyscall(funcPC(libc_getsockname_trampoline), uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) |
123 if e1 != 0 { |
173 if e1 != 0 { |
124 err = errnoErr(e1) |
174 err = errnoErr(e1) |
125 } |
175 } |
126 return |
176 return |
127 } |
177 } |
|
178 |
|
179 func libc_getsockname_trampoline() |
|
180 |
|
181 //go:linkname libc_getsockname libc_getsockname |
|
182 //go:cgo_import_dynamic libc_getsockname getsockname "/usr/lib/libSystem.B.dylib" |
128 |
183 |
129 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
184 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
130 |
185 |
131 func Shutdown(s int, how int) (err error) { |
186 func Shutdown(s int, how int) (err error) { |
132 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) |
187 _, _, e1 := syscall_syscall(funcPC(libc_shutdown_trampoline), uintptr(s), uintptr(how), 0) |
133 if e1 != 0 { |
188 if e1 != 0 { |
134 err = errnoErr(e1) |
189 err = errnoErr(e1) |
135 } |
190 } |
136 return |
191 return |
137 } |
192 } |
|
193 |
|
194 func libc_shutdown_trampoline() |
|
195 |
|
196 //go:linkname libc_shutdown libc_shutdown |
|
197 //go:cgo_import_dynamic libc_shutdown shutdown "/usr/lib/libSystem.B.dylib" |
138 |
198 |
139 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
199 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
140 |
200 |
141 func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { |
201 func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { |
142 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) |
202 _, _, e1 := syscall_rawSyscall6(funcPC(libc_socketpair_trampoline), uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) |
143 if e1 != 0 { |
203 if e1 != 0 { |
144 err = errnoErr(e1) |
204 err = errnoErr(e1) |
145 } |
205 } |
146 return |
206 return |
147 } |
207 } |
|
208 |
|
209 func libc_socketpair_trampoline() |
|
210 |
|
211 //go:linkname libc_socketpair libc_socketpair |
|
212 //go:cgo_import_dynamic libc_socketpair socketpair "/usr/lib/libSystem.B.dylib" |
148 |
213 |
149 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
214 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
150 |
215 |
151 func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { |
216 func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { |
152 var _p0 unsafe.Pointer |
217 var _p0 unsafe.Pointer |
153 if len(p) > 0 { |
218 if len(p) > 0 { |
154 _p0 = unsafe.Pointer(&p[0]) |
219 _p0 = unsafe.Pointer(&p[0]) |
155 } else { |
220 } else { |
156 _p0 = unsafe.Pointer(&_zero) |
221 _p0 = unsafe.Pointer(&_zero) |
157 } |
222 } |
158 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) |
223 r0, _, e1 := syscall_syscall6(funcPC(libc_recvfrom_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) |
159 n = int(r0) |
224 n = int(r0) |
160 if e1 != 0 { |
225 if e1 != 0 { |
161 err = errnoErr(e1) |
226 err = errnoErr(e1) |
162 } |
227 } |
163 return |
228 return |
164 } |
229 } |
|
230 |
|
231 func libc_recvfrom_trampoline() |
|
232 |
|
233 //go:linkname libc_recvfrom libc_recvfrom |
|
234 //go:cgo_import_dynamic libc_recvfrom recvfrom "/usr/lib/libSystem.B.dylib" |
165 |
235 |
166 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
236 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
167 |
237 |
168 func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { |
238 func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { |
169 var _p0 unsafe.Pointer |
239 var _p0 unsafe.Pointer |
170 if len(buf) > 0 { |
240 if len(buf) > 0 { |
171 _p0 = unsafe.Pointer(&buf[0]) |
241 _p0 = unsafe.Pointer(&buf[0]) |
172 } else { |
242 } else { |
173 _p0 = unsafe.Pointer(&_zero) |
243 _p0 = unsafe.Pointer(&_zero) |
174 } |
244 } |
175 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) |
245 _, _, e1 := syscall_syscall6(funcPC(libc_sendto_trampoline), uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) |
176 if e1 != 0 { |
246 if e1 != 0 { |
177 err = errnoErr(e1) |
247 err = errnoErr(e1) |
178 } |
248 } |
179 return |
249 return |
180 } |
250 } |
|
251 |
|
252 func libc_sendto_trampoline() |
|
253 |
|
254 //go:linkname libc_sendto libc_sendto |
|
255 //go:cgo_import_dynamic libc_sendto sendto "/usr/lib/libSystem.B.dylib" |
181 |
256 |
182 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
257 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
183 |
258 |
184 func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { |
259 func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { |
185 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) |
260 r0, _, e1 := syscall_syscall(funcPC(libc_recvmsg_trampoline), uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) |
186 n = int(r0) |
261 n = int(r0) |
187 if e1 != 0 { |
262 if e1 != 0 { |
188 err = errnoErr(e1) |
263 err = errnoErr(e1) |
189 } |
264 } |
190 return |
265 return |
191 } |
266 } |
192 |
267 |
|
268 func libc_recvmsg_trampoline() |
|
269 |
|
270 //go:linkname libc_recvmsg libc_recvmsg |
|
271 //go:cgo_import_dynamic libc_recvmsg recvmsg "/usr/lib/libSystem.B.dylib" |
|
272 |
193 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
273 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
194 |
274 |
195 func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { |
275 func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { |
196 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) |
276 r0, _, e1 := syscall_syscall(funcPC(libc_sendmsg_trampoline), uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) |
197 n = int(r0) |
277 n = int(r0) |
198 if e1 != 0 { |
278 if e1 != 0 { |
199 err = errnoErr(e1) |
279 err = errnoErr(e1) |
200 } |
280 } |
201 return |
281 return |
202 } |
282 } |
203 |
283 |
|
284 func libc_sendmsg_trampoline() |
|
285 |
|
286 //go:linkname libc_sendmsg libc_sendmsg |
|
287 //go:cgo_import_dynamic libc_sendmsg sendmsg "/usr/lib/libSystem.B.dylib" |
|
288 |
204 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
289 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
205 |
290 |
206 func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { |
291 func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { |
207 r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) |
292 r0, _, e1 := syscall_syscall6(funcPC(libc_kevent_trampoline), uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) |
208 n = int(r0) |
293 n = int(r0) |
209 if e1 != 0 { |
294 if e1 != 0 { |
210 err = errnoErr(e1) |
295 err = errnoErr(e1) |
211 } |
296 } |
212 return |
297 return |
213 } |
298 } |
|
299 |
|
300 func libc_kevent_trampoline() |
|
301 |
|
302 //go:linkname libc_kevent libc_kevent |
|
303 //go:cgo_import_dynamic libc_kevent kevent "/usr/lib/libSystem.B.dylib" |
|
304 |
|
305 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
306 |
|
307 func utimes(path string, timeval *[2]Timeval) (err error) { |
|
308 var _p0 *byte |
|
309 _p0, err = BytePtrFromString(path) |
|
310 if err != nil { |
|
311 return |
|
312 } |
|
313 _, _, e1 := syscall_syscall(funcPC(libc_utimes_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) |
|
314 if e1 != 0 { |
|
315 err = errnoErr(e1) |
|
316 } |
|
317 return |
|
318 } |
|
319 |
|
320 func libc_utimes_trampoline() |
|
321 |
|
322 //go:linkname libc_utimes libc_utimes |
|
323 //go:cgo_import_dynamic libc_utimes utimes "/usr/lib/libSystem.B.dylib" |
|
324 |
|
325 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
326 |
|
327 func futimes(fd int, timeval *[2]Timeval) (err error) { |
|
328 _, _, e1 := syscall_syscall(funcPC(libc_futimes_trampoline), uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) |
|
329 if e1 != 0 { |
|
330 err = errnoErr(e1) |
|
331 } |
|
332 return |
|
333 } |
|
334 |
|
335 func libc_futimes_trampoline() |
|
336 |
|
337 //go:linkname libc_futimes libc_futimes |
|
338 //go:cgo_import_dynamic libc_futimes futimes "/usr/lib/libSystem.B.dylib" |
|
339 |
|
340 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
341 |
|
342 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { |
|
343 r0, _, e1 := syscall_syscall(funcPC(libc_poll_trampoline), uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) |
|
344 n = int(r0) |
|
345 if e1 != 0 { |
|
346 err = errnoErr(e1) |
|
347 } |
|
348 return |
|
349 } |
|
350 |
|
351 func libc_poll_trampoline() |
|
352 |
|
353 //go:linkname libc_poll libc_poll |
|
354 //go:cgo_import_dynamic libc_poll poll "/usr/lib/libSystem.B.dylib" |
|
355 |
|
356 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
357 |
|
358 func Madvise(b []byte, behav int) (err error) { |
|
359 var _p0 unsafe.Pointer |
|
360 if len(b) > 0 { |
|
361 _p0 = unsafe.Pointer(&b[0]) |
|
362 } else { |
|
363 _p0 = unsafe.Pointer(&_zero) |
|
364 } |
|
365 _, _, e1 := syscall_syscall(funcPC(libc_madvise_trampoline), uintptr(_p0), uintptr(len(b)), uintptr(behav)) |
|
366 if e1 != 0 { |
|
367 err = errnoErr(e1) |
|
368 } |
|
369 return |
|
370 } |
|
371 |
|
372 func libc_madvise_trampoline() |
|
373 |
|
374 //go:linkname libc_madvise libc_madvise |
|
375 //go:cgo_import_dynamic libc_madvise madvise "/usr/lib/libSystem.B.dylib" |
|
376 |
|
377 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
378 |
|
379 func Mlock(b []byte) (err error) { |
|
380 var _p0 unsafe.Pointer |
|
381 if len(b) > 0 { |
|
382 _p0 = unsafe.Pointer(&b[0]) |
|
383 } else { |
|
384 _p0 = unsafe.Pointer(&_zero) |
|
385 } |
|
386 _, _, e1 := syscall_syscall(funcPC(libc_mlock_trampoline), uintptr(_p0), uintptr(len(b)), 0) |
|
387 if e1 != 0 { |
|
388 err = errnoErr(e1) |
|
389 } |
|
390 return |
|
391 } |
|
392 |
|
393 func libc_mlock_trampoline() |
|
394 |
|
395 //go:linkname libc_mlock libc_mlock |
|
396 //go:cgo_import_dynamic libc_mlock mlock "/usr/lib/libSystem.B.dylib" |
|
397 |
|
398 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
399 |
|
400 func Mlockall(flags int) (err error) { |
|
401 _, _, e1 := syscall_syscall(funcPC(libc_mlockall_trampoline), uintptr(flags), 0, 0) |
|
402 if e1 != 0 { |
|
403 err = errnoErr(e1) |
|
404 } |
|
405 return |
|
406 } |
|
407 |
|
408 func libc_mlockall_trampoline() |
|
409 |
|
410 //go:linkname libc_mlockall libc_mlockall |
|
411 //go:cgo_import_dynamic libc_mlockall mlockall "/usr/lib/libSystem.B.dylib" |
|
412 |
|
413 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
414 |
|
415 func Mprotect(b []byte, prot int) (err error) { |
|
416 var _p0 unsafe.Pointer |
|
417 if len(b) > 0 { |
|
418 _p0 = unsafe.Pointer(&b[0]) |
|
419 } else { |
|
420 _p0 = unsafe.Pointer(&_zero) |
|
421 } |
|
422 _, _, e1 := syscall_syscall(funcPC(libc_mprotect_trampoline), uintptr(_p0), uintptr(len(b)), uintptr(prot)) |
|
423 if e1 != 0 { |
|
424 err = errnoErr(e1) |
|
425 } |
|
426 return |
|
427 } |
|
428 |
|
429 func libc_mprotect_trampoline() |
|
430 |
|
431 //go:linkname libc_mprotect libc_mprotect |
|
432 //go:cgo_import_dynamic libc_mprotect mprotect "/usr/lib/libSystem.B.dylib" |
|
433 |
|
434 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
435 |
|
436 func Msync(b []byte, flags int) (err error) { |
|
437 var _p0 unsafe.Pointer |
|
438 if len(b) > 0 { |
|
439 _p0 = unsafe.Pointer(&b[0]) |
|
440 } else { |
|
441 _p0 = unsafe.Pointer(&_zero) |
|
442 } |
|
443 _, _, e1 := syscall_syscall(funcPC(libc_msync_trampoline), uintptr(_p0), uintptr(len(b)), uintptr(flags)) |
|
444 if e1 != 0 { |
|
445 err = errnoErr(e1) |
|
446 } |
|
447 return |
|
448 } |
|
449 |
|
450 func libc_msync_trampoline() |
|
451 |
|
452 //go:linkname libc_msync libc_msync |
|
453 //go:cgo_import_dynamic libc_msync msync "/usr/lib/libSystem.B.dylib" |
|
454 |
|
455 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
456 |
|
457 func Munlock(b []byte) (err error) { |
|
458 var _p0 unsafe.Pointer |
|
459 if len(b) > 0 { |
|
460 _p0 = unsafe.Pointer(&b[0]) |
|
461 } else { |
|
462 _p0 = unsafe.Pointer(&_zero) |
|
463 } |
|
464 _, _, e1 := syscall_syscall(funcPC(libc_munlock_trampoline), uintptr(_p0), uintptr(len(b)), 0) |
|
465 if e1 != 0 { |
|
466 err = errnoErr(e1) |
|
467 } |
|
468 return |
|
469 } |
|
470 |
|
471 func libc_munlock_trampoline() |
|
472 |
|
473 //go:linkname libc_munlock libc_munlock |
|
474 //go:cgo_import_dynamic libc_munlock munlock "/usr/lib/libSystem.B.dylib" |
|
475 |
|
476 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
477 |
|
478 func Munlockall() (err error) { |
|
479 _, _, e1 := syscall_syscall(funcPC(libc_munlockall_trampoline), 0, 0, 0) |
|
480 if e1 != 0 { |
|
481 err = errnoErr(e1) |
|
482 } |
|
483 return |
|
484 } |
|
485 |
|
486 func libc_munlockall_trampoline() |
|
487 |
|
488 //go:linkname libc_munlockall libc_munlockall |
|
489 //go:cgo_import_dynamic libc_munlockall munlockall "/usr/lib/libSystem.B.dylib" |
|
490 |
|
491 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
492 |
|
493 func getattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) { |
|
494 _, _, e1 := syscall_syscall6(funcPC(libc_getattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0) |
|
495 if e1 != 0 { |
|
496 err = errnoErr(e1) |
|
497 } |
|
498 return |
|
499 } |
|
500 |
|
501 func libc_getattrlist_trampoline() |
|
502 |
|
503 //go:linkname libc_getattrlist libc_getattrlist |
|
504 //go:cgo_import_dynamic libc_getattrlist getattrlist "/usr/lib/libSystem.B.dylib" |
|
505 |
|
506 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
507 |
|
508 func pipe() (r int, w int, err error) { |
|
509 r0, r1, e1 := syscall_rawSyscall(funcPC(libc_pipe_trampoline), 0, 0, 0) |
|
510 r = int(r0) |
|
511 w = int(r1) |
|
512 if e1 != 0 { |
|
513 err = errnoErr(e1) |
|
514 } |
|
515 return |
|
516 } |
|
517 |
|
518 func libc_pipe_trampoline() |
|
519 |
|
520 //go:linkname libc_pipe libc_pipe |
|
521 //go:cgo_import_dynamic libc_pipe pipe "/usr/lib/libSystem.B.dylib" |
|
522 |
|
523 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
524 |
|
525 func getxattr(path string, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) { |
|
526 var _p0 *byte |
|
527 _p0, err = BytePtrFromString(path) |
|
528 if err != nil { |
|
529 return |
|
530 } |
|
531 var _p1 *byte |
|
532 _p1, err = BytePtrFromString(attr) |
|
533 if err != nil { |
|
534 return |
|
535 } |
|
536 r0, _, e1 := syscall_syscall6(funcPC(libc_getxattr_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options)) |
|
537 sz = int(r0) |
|
538 if e1 != 0 { |
|
539 err = errnoErr(e1) |
|
540 } |
|
541 return |
|
542 } |
|
543 |
|
544 func libc_getxattr_trampoline() |
|
545 |
|
546 //go:linkname libc_getxattr libc_getxattr |
|
547 //go:cgo_import_dynamic libc_getxattr getxattr "/usr/lib/libSystem.B.dylib" |
|
548 |
|
549 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
550 |
|
551 func fgetxattr(fd int, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) { |
|
552 var _p0 *byte |
|
553 _p0, err = BytePtrFromString(attr) |
|
554 if err != nil { |
|
555 return |
|
556 } |
|
557 r0, _, e1 := syscall_syscall6(funcPC(libc_fgetxattr_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options)) |
|
558 sz = int(r0) |
|
559 if e1 != 0 { |
|
560 err = errnoErr(e1) |
|
561 } |
|
562 return |
|
563 } |
|
564 |
|
565 func libc_fgetxattr_trampoline() |
|
566 |
|
567 //go:linkname libc_fgetxattr libc_fgetxattr |
|
568 //go:cgo_import_dynamic libc_fgetxattr fgetxattr "/usr/lib/libSystem.B.dylib" |
|
569 |
|
570 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
571 |
|
572 func setxattr(path string, attr string, data *byte, size int, position uint32, options int) (err error) { |
|
573 var _p0 *byte |
|
574 _p0, err = BytePtrFromString(path) |
|
575 if err != nil { |
|
576 return |
|
577 } |
|
578 var _p1 *byte |
|
579 _p1, err = BytePtrFromString(attr) |
|
580 if err != nil { |
|
581 return |
|
582 } |
|
583 _, _, e1 := syscall_syscall6(funcPC(libc_setxattr_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options)) |
|
584 if e1 != 0 { |
|
585 err = errnoErr(e1) |
|
586 } |
|
587 return |
|
588 } |
|
589 |
|
590 func libc_setxattr_trampoline() |
|
591 |
|
592 //go:linkname libc_setxattr libc_setxattr |
|
593 //go:cgo_import_dynamic libc_setxattr setxattr "/usr/lib/libSystem.B.dylib" |
|
594 |
|
595 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
596 |
|
597 func fsetxattr(fd int, attr string, data *byte, size int, position uint32, options int) (err error) { |
|
598 var _p0 *byte |
|
599 _p0, err = BytePtrFromString(attr) |
|
600 if err != nil { |
|
601 return |
|
602 } |
|
603 _, _, e1 := syscall_syscall6(funcPC(libc_fsetxattr_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options)) |
|
604 if e1 != 0 { |
|
605 err = errnoErr(e1) |
|
606 } |
|
607 return |
|
608 } |
|
609 |
|
610 func libc_fsetxattr_trampoline() |
|
611 |
|
612 //go:linkname libc_fsetxattr libc_fsetxattr |
|
613 //go:cgo_import_dynamic libc_fsetxattr fsetxattr "/usr/lib/libSystem.B.dylib" |
|
614 |
|
615 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
616 |
|
617 func removexattr(path string, attr string, options int) (err error) { |
|
618 var _p0 *byte |
|
619 _p0, err = BytePtrFromString(path) |
|
620 if err != nil { |
|
621 return |
|
622 } |
|
623 var _p1 *byte |
|
624 _p1, err = BytePtrFromString(attr) |
|
625 if err != nil { |
|
626 return |
|
627 } |
|
628 _, _, e1 := syscall_syscall(funcPC(libc_removexattr_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options)) |
|
629 if e1 != 0 { |
|
630 err = errnoErr(e1) |
|
631 } |
|
632 return |
|
633 } |
|
634 |
|
635 func libc_removexattr_trampoline() |
|
636 |
|
637 //go:linkname libc_removexattr libc_removexattr |
|
638 //go:cgo_import_dynamic libc_removexattr removexattr "/usr/lib/libSystem.B.dylib" |
|
639 |
|
640 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
641 |
|
642 func fremovexattr(fd int, attr string, options int) (err error) { |
|
643 var _p0 *byte |
|
644 _p0, err = BytePtrFromString(attr) |
|
645 if err != nil { |
|
646 return |
|
647 } |
|
648 _, _, e1 := syscall_syscall(funcPC(libc_fremovexattr_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(options)) |
|
649 if e1 != 0 { |
|
650 err = errnoErr(e1) |
|
651 } |
|
652 return |
|
653 } |
|
654 |
|
655 func libc_fremovexattr_trampoline() |
|
656 |
|
657 //go:linkname libc_fremovexattr libc_fremovexattr |
|
658 //go:cgo_import_dynamic libc_fremovexattr fremovexattr "/usr/lib/libSystem.B.dylib" |
|
659 |
|
660 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
661 |
|
662 func listxattr(path string, dest *byte, size int, options int) (sz int, err error) { |
|
663 var _p0 *byte |
|
664 _p0, err = BytePtrFromString(path) |
|
665 if err != nil { |
|
666 return |
|
667 } |
|
668 r0, _, e1 := syscall_syscall6(funcPC(libc_listxattr_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0) |
|
669 sz = int(r0) |
|
670 if e1 != 0 { |
|
671 err = errnoErr(e1) |
|
672 } |
|
673 return |
|
674 } |
|
675 |
|
676 func libc_listxattr_trampoline() |
|
677 |
|
678 //go:linkname libc_listxattr libc_listxattr |
|
679 //go:cgo_import_dynamic libc_listxattr listxattr "/usr/lib/libSystem.B.dylib" |
|
680 |
|
681 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
682 |
|
683 func flistxattr(fd int, dest *byte, size int, options int) (sz int, err error) { |
|
684 r0, _, e1 := syscall_syscall6(funcPC(libc_flistxattr_trampoline), uintptr(fd), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0) |
|
685 sz = int(r0) |
|
686 if e1 != 0 { |
|
687 err = errnoErr(e1) |
|
688 } |
|
689 return |
|
690 } |
|
691 |
|
692 func libc_flistxattr_trampoline() |
|
693 |
|
694 //go:linkname libc_flistxattr libc_flistxattr |
|
695 //go:cgo_import_dynamic libc_flistxattr flistxattr "/usr/lib/libSystem.B.dylib" |
|
696 |
|
697 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
698 |
|
699 func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) { |
|
700 _, _, e1 := syscall_syscall6(funcPC(libc_setattrlist_trampoline), uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0) |
|
701 if e1 != 0 { |
|
702 err = errnoErr(e1) |
|
703 } |
|
704 return |
|
705 } |
|
706 |
|
707 func libc_setattrlist_trampoline() |
|
708 |
|
709 //go:linkname libc_setattrlist libc_setattrlist |
|
710 //go:cgo_import_dynamic libc_setattrlist setattrlist "/usr/lib/libSystem.B.dylib" |
|
711 |
|
712 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
713 |
|
714 func fcntl(fd int, cmd int, arg int) (val int, err error) { |
|
715 r0, _, e1 := syscall_syscall(funcPC(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg)) |
|
716 val = int(r0) |
|
717 if e1 != 0 { |
|
718 err = errnoErr(e1) |
|
719 } |
|
720 return |
|
721 } |
|
722 |
|
723 func libc_fcntl_trampoline() |
|
724 |
|
725 //go:linkname libc_fcntl libc_fcntl |
|
726 //go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib" |
|
727 |
|
728 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
729 |
|
730 func kill(pid int, signum int, posix int) (err error) { |
|
731 _, _, e1 := syscall_syscall(funcPC(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix)) |
|
732 if e1 != 0 { |
|
733 err = errnoErr(e1) |
|
734 } |
|
735 return |
|
736 } |
|
737 |
|
738 func libc_kill_trampoline() |
|
739 |
|
740 //go:linkname libc_kill libc_kill |
|
741 //go:cgo_import_dynamic libc_kill kill "/usr/lib/libSystem.B.dylib" |
|
742 |
|
743 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
744 |
|
745 func ioctl(fd int, req uint, arg uintptr) (err error) { |
|
746 _, _, e1 := syscall_syscall(funcPC(libc_ioctl_trampoline), uintptr(fd), uintptr(req), uintptr(arg)) |
|
747 if e1 != 0 { |
|
748 err = errnoErr(e1) |
|
749 } |
|
750 return |
|
751 } |
|
752 |
|
753 func libc_ioctl_trampoline() |
|
754 |
|
755 //go:linkname libc_ioctl libc_ioctl |
|
756 //go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib" |
214 |
757 |
215 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
758 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
216 |
759 |
217 func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { |
760 func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { |
218 var _p0 unsafe.Pointer |
761 var _p0 unsafe.Pointer |
219 if len(mib) > 0 { |
762 if len(mib) > 0 { |
220 _p0 = unsafe.Pointer(&mib[0]) |
763 _p0 = unsafe.Pointer(&mib[0]) |
221 } else { |
764 } else { |
222 _p0 = unsafe.Pointer(&_zero) |
765 _p0 = unsafe.Pointer(&_zero) |
223 } |
766 } |
224 _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) |
767 _, _, e1 := syscall_syscall6(funcPC(libc_sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) |
225 if e1 != 0 { |
768 if e1 != 0 { |
226 err = errnoErr(e1) |
769 err = errnoErr(e1) |
227 } |
770 } |
228 return |
771 return |
229 } |
772 } |
230 |
773 |
231 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
774 func libc_sysctl_trampoline() |
232 |
775 |
233 func utimes(path string, timeval *[2]Timeval) (err error) { |
776 //go:linkname libc_sysctl libc_sysctl |
234 var _p0 *byte |
777 //go:cgo_import_dynamic libc_sysctl sysctl "/usr/lib/libSystem.B.dylib" |
235 _p0, err = BytePtrFromString(path) |
778 |
236 if err != nil { |
779 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
237 return |
780 |
238 } |
781 func sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error) { |
239 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) |
782 _, _, e1 := syscall_syscall9(funcPC(libc_sendfile_trampoline), uintptr(infd), uintptr(outfd), uintptr(offset), uintptr(offset>>32), uintptr(unsafe.Pointer(len)), uintptr(hdtr), uintptr(flags), 0, 0) |
240 if e1 != 0 { |
783 if e1 != 0 { |
241 err = errnoErr(e1) |
784 err = errnoErr(e1) |
242 } |
785 } |
243 return |
786 return |
244 } |
787 } |
245 |
788 |
246 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
789 func libc_sendfile_trampoline() |
247 |
790 |
248 func futimes(fd int, timeval *[2]Timeval) (err error) { |
791 //go:linkname libc_sendfile libc_sendfile |
249 _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) |
792 //go:cgo_import_dynamic libc_sendfile sendfile "/usr/lib/libSystem.B.dylib" |
250 if e1 != 0 { |
|
251 err = errnoErr(e1) |
|
252 } |
|
253 return |
|
254 } |
|
255 |
|
256 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
257 |
|
258 func fcntl(fd int, cmd int, arg int) (val int, err error) { |
|
259 r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) |
|
260 val = int(r0) |
|
261 if e1 != 0 { |
|
262 err = errnoErr(e1) |
|
263 } |
|
264 return |
|
265 } |
|
266 |
|
267 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
268 |
|
269 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { |
|
270 r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) |
|
271 n = int(r0) |
|
272 if e1 != 0 { |
|
273 err = errnoErr(e1) |
|
274 } |
|
275 return |
|
276 } |
|
277 |
|
278 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
279 |
|
280 func Madvise(b []byte, behav int) (err error) { |
|
281 var _p0 unsafe.Pointer |
|
282 if len(b) > 0 { |
|
283 _p0 = unsafe.Pointer(&b[0]) |
|
284 } else { |
|
285 _p0 = unsafe.Pointer(&_zero) |
|
286 } |
|
287 _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) |
|
288 if e1 != 0 { |
|
289 err = errnoErr(e1) |
|
290 } |
|
291 return |
|
292 } |
|
293 |
|
294 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
295 |
|
296 func Mlock(b []byte) (err error) { |
|
297 var _p0 unsafe.Pointer |
|
298 if len(b) > 0 { |
|
299 _p0 = unsafe.Pointer(&b[0]) |
|
300 } else { |
|
301 _p0 = unsafe.Pointer(&_zero) |
|
302 } |
|
303 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) |
|
304 if e1 != 0 { |
|
305 err = errnoErr(e1) |
|
306 } |
|
307 return |
|
308 } |
|
309 |
|
310 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
311 |
|
312 func Mlockall(flags int) (err error) { |
|
313 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) |
|
314 if e1 != 0 { |
|
315 err = errnoErr(e1) |
|
316 } |
|
317 return |
|
318 } |
|
319 |
|
320 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
321 |
|
322 func Mprotect(b []byte, prot int) (err error) { |
|
323 var _p0 unsafe.Pointer |
|
324 if len(b) > 0 { |
|
325 _p0 = unsafe.Pointer(&b[0]) |
|
326 } else { |
|
327 _p0 = unsafe.Pointer(&_zero) |
|
328 } |
|
329 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) |
|
330 if e1 != 0 { |
|
331 err = errnoErr(e1) |
|
332 } |
|
333 return |
|
334 } |
|
335 |
|
336 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
337 |
|
338 func Msync(b []byte, flags int) (err error) { |
|
339 var _p0 unsafe.Pointer |
|
340 if len(b) > 0 { |
|
341 _p0 = unsafe.Pointer(&b[0]) |
|
342 } else { |
|
343 _p0 = unsafe.Pointer(&_zero) |
|
344 } |
|
345 _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) |
|
346 if e1 != 0 { |
|
347 err = errnoErr(e1) |
|
348 } |
|
349 return |
|
350 } |
|
351 |
|
352 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
353 |
|
354 func Munlock(b []byte) (err error) { |
|
355 var _p0 unsafe.Pointer |
|
356 if len(b) > 0 { |
|
357 _p0 = unsafe.Pointer(&b[0]) |
|
358 } else { |
|
359 _p0 = unsafe.Pointer(&_zero) |
|
360 } |
|
361 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) |
|
362 if e1 != 0 { |
|
363 err = errnoErr(e1) |
|
364 } |
|
365 return |
|
366 } |
|
367 |
|
368 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
369 |
|
370 func Munlockall() (err error) { |
|
371 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) |
|
372 if e1 != 0 { |
|
373 err = errnoErr(e1) |
|
374 } |
|
375 return |
|
376 } |
|
377 |
|
378 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
379 |
|
380 func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { |
|
381 _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) |
|
382 if e1 != 0 { |
|
383 err = errnoErr(e1) |
|
384 } |
|
385 return |
|
386 } |
|
387 |
|
388 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
389 |
|
390 func pipe() (r int, w int, err error) { |
|
391 r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) |
|
392 r = int(r0) |
|
393 w = int(r1) |
|
394 if e1 != 0 { |
|
395 err = errnoErr(e1) |
|
396 } |
|
397 return |
|
398 } |
|
399 |
|
400 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
401 |
|
402 func getxattr(path string, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) { |
|
403 var _p0 *byte |
|
404 _p0, err = BytePtrFromString(path) |
|
405 if err != nil { |
|
406 return |
|
407 } |
|
408 var _p1 *byte |
|
409 _p1, err = BytePtrFromString(attr) |
|
410 if err != nil { |
|
411 return |
|
412 } |
|
413 r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options)) |
|
414 sz = int(r0) |
|
415 if e1 != 0 { |
|
416 err = errnoErr(e1) |
|
417 } |
|
418 return |
|
419 } |
|
420 |
|
421 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
422 |
|
423 func fgetxattr(fd int, attr string, dest *byte, size int, position uint32, options int) (sz int, err error) { |
|
424 var _p0 *byte |
|
425 _p0, err = BytePtrFromString(attr) |
|
426 if err != nil { |
|
427 return |
|
428 } |
|
429 r0, _, e1 := Syscall6(SYS_FGETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(position), uintptr(options)) |
|
430 sz = int(r0) |
|
431 if e1 != 0 { |
|
432 err = errnoErr(e1) |
|
433 } |
|
434 return |
|
435 } |
|
436 |
|
437 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
438 |
|
439 func setxattr(path string, attr string, data *byte, size int, position uint32, options int) (err error) { |
|
440 var _p0 *byte |
|
441 _p0, err = BytePtrFromString(path) |
|
442 if err != nil { |
|
443 return |
|
444 } |
|
445 var _p1 *byte |
|
446 _p1, err = BytePtrFromString(attr) |
|
447 if err != nil { |
|
448 return |
|
449 } |
|
450 _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options)) |
|
451 if e1 != 0 { |
|
452 err = errnoErr(e1) |
|
453 } |
|
454 return |
|
455 } |
|
456 |
|
457 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
458 |
|
459 func fsetxattr(fd int, attr string, data *byte, size int, position uint32, options int) (err error) { |
|
460 var _p0 *byte |
|
461 _p0, err = BytePtrFromString(attr) |
|
462 if err != nil { |
|
463 return |
|
464 } |
|
465 _, _, e1 := Syscall6(SYS_FSETXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(data)), uintptr(size), uintptr(position), uintptr(options)) |
|
466 if e1 != 0 { |
|
467 err = errnoErr(e1) |
|
468 } |
|
469 return |
|
470 } |
|
471 |
|
472 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
473 |
|
474 func removexattr(path string, attr string, options int) (err error) { |
|
475 var _p0 *byte |
|
476 _p0, err = BytePtrFromString(path) |
|
477 if err != nil { |
|
478 return |
|
479 } |
|
480 var _p1 *byte |
|
481 _p1, err = BytePtrFromString(attr) |
|
482 if err != nil { |
|
483 return |
|
484 } |
|
485 _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options)) |
|
486 if e1 != 0 { |
|
487 err = errnoErr(e1) |
|
488 } |
|
489 return |
|
490 } |
|
491 |
|
492 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
493 |
|
494 func fremovexattr(fd int, attr string, options int) (err error) { |
|
495 var _p0 *byte |
|
496 _p0, err = BytePtrFromString(attr) |
|
497 if err != nil { |
|
498 return |
|
499 } |
|
500 _, _, e1 := Syscall(SYS_FREMOVEXATTR, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(options)) |
|
501 if e1 != 0 { |
|
502 err = errnoErr(e1) |
|
503 } |
|
504 return |
|
505 } |
|
506 |
|
507 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
508 |
|
509 func listxattr(path string, dest *byte, size int, options int) (sz int, err error) { |
|
510 var _p0 *byte |
|
511 _p0, err = BytePtrFromString(path) |
|
512 if err != nil { |
|
513 return |
|
514 } |
|
515 r0, _, e1 := Syscall6(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0) |
|
516 sz = int(r0) |
|
517 if e1 != 0 { |
|
518 err = errnoErr(e1) |
|
519 } |
|
520 return |
|
521 } |
|
522 |
|
523 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
524 |
|
525 func flistxattr(fd int, dest *byte, size int, options int) (sz int, err error) { |
|
526 r0, _, e1 := Syscall6(SYS_FLISTXATTR, uintptr(fd), uintptr(unsafe.Pointer(dest)), uintptr(size), uintptr(options), 0, 0) |
|
527 sz = int(r0) |
|
528 if e1 != 0 { |
|
529 err = errnoErr(e1) |
|
530 } |
|
531 return |
|
532 } |
|
533 |
|
534 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
535 |
|
536 func kill(pid int, signum int, posix int) (err error) { |
|
537 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix)) |
|
538 if e1 != 0 { |
|
539 err = errnoErr(e1) |
|
540 } |
|
541 return |
|
542 } |
|
543 |
|
544 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
545 |
|
546 func ioctl(fd int, req uint, arg uintptr) (err error) { |
|
547 _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) |
|
548 if e1 != 0 { |
|
549 err = errnoErr(e1) |
|
550 } |
|
551 return |
|
552 } |
|
553 |
793 |
554 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
794 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
555 |
795 |
556 func Access(path string, mode uint32) (err error) { |
796 func Access(path string, mode uint32) (err error) { |
557 var _p0 *byte |
797 var _p0 *byte |
558 _p0, err = BytePtrFromString(path) |
798 _p0, err = BytePtrFromString(path) |
559 if err != nil { |
799 if err != nil { |
560 return |
800 return |
561 } |
801 } |
562 _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) |
802 _, _, e1 := syscall_syscall(funcPC(libc_access_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) |
563 if e1 != 0 { |
803 if e1 != 0 { |
564 err = errnoErr(e1) |
804 err = errnoErr(e1) |
565 } |
805 } |
566 return |
806 return |
567 } |
807 } |
|
808 |
|
809 func libc_access_trampoline() |
|
810 |
|
811 //go:linkname libc_access libc_access |
|
812 //go:cgo_import_dynamic libc_access access "/usr/lib/libSystem.B.dylib" |
568 |
813 |
569 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
814 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
570 |
815 |
571 func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { |
816 func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { |
572 _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) |
817 _, _, e1 := syscall_syscall(funcPC(libc_adjtime_trampoline), uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) |
573 if e1 != 0 { |
818 if e1 != 0 { |
574 err = errnoErr(e1) |
819 err = errnoErr(e1) |
575 } |
820 } |
576 return |
821 return |
577 } |
822 } |
|
823 |
|
824 func libc_adjtime_trampoline() |
|
825 |
|
826 //go:linkname libc_adjtime libc_adjtime |
|
827 //go:cgo_import_dynamic libc_adjtime adjtime "/usr/lib/libSystem.B.dylib" |
578 |
828 |
579 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
829 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
580 |
830 |
581 func Chdir(path string) (err error) { |
831 func Chdir(path string) (err error) { |
582 var _p0 *byte |
832 var _p0 *byte |
583 _p0, err = BytePtrFromString(path) |
833 _p0, err = BytePtrFromString(path) |
584 if err != nil { |
834 if err != nil { |
585 return |
835 return |
586 } |
836 } |
587 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) |
837 _, _, e1 := syscall_syscall(funcPC(libc_chdir_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0) |
588 if e1 != 0 { |
838 if e1 != 0 { |
589 err = errnoErr(e1) |
839 err = errnoErr(e1) |
590 } |
840 } |
591 return |
841 return |
592 } |
842 } |
|
843 |
|
844 func libc_chdir_trampoline() |
|
845 |
|
846 //go:linkname libc_chdir libc_chdir |
|
847 //go:cgo_import_dynamic libc_chdir chdir "/usr/lib/libSystem.B.dylib" |
593 |
848 |
594 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
849 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
595 |
850 |
596 func Chflags(path string, flags int) (err error) { |
851 func Chflags(path string, flags int) (err error) { |
597 var _p0 *byte |
852 var _p0 *byte |
598 _p0, err = BytePtrFromString(path) |
853 _p0, err = BytePtrFromString(path) |
599 if err != nil { |
854 if err != nil { |
600 return |
855 return |
601 } |
856 } |
602 _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) |
857 _, _, e1 := syscall_syscall(funcPC(libc_chflags_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) |
603 if e1 != 0 { |
858 if e1 != 0 { |
604 err = errnoErr(e1) |
859 err = errnoErr(e1) |
605 } |
860 } |
606 return |
861 return |
607 } |
862 } |
|
863 |
|
864 func libc_chflags_trampoline() |
|
865 |
|
866 //go:linkname libc_chflags libc_chflags |
|
867 //go:cgo_import_dynamic libc_chflags chflags "/usr/lib/libSystem.B.dylib" |
608 |
868 |
609 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
869 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
610 |
870 |
611 func Chmod(path string, mode uint32) (err error) { |
871 func Chmod(path string, mode uint32) (err error) { |
612 var _p0 *byte |
872 var _p0 *byte |
613 _p0, err = BytePtrFromString(path) |
873 _p0, err = BytePtrFromString(path) |
614 if err != nil { |
874 if err != nil { |
615 return |
875 return |
616 } |
876 } |
617 _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) |
877 _, _, e1 := syscall_syscall(funcPC(libc_chmod_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) |
618 if e1 != 0 { |
878 if e1 != 0 { |
619 err = errnoErr(e1) |
879 err = errnoErr(e1) |
620 } |
880 } |
621 return |
881 return |
622 } |
882 } |
|
883 |
|
884 func libc_chmod_trampoline() |
|
885 |
|
886 //go:linkname libc_chmod libc_chmod |
|
887 //go:cgo_import_dynamic libc_chmod chmod "/usr/lib/libSystem.B.dylib" |
623 |
888 |
624 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
889 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
625 |
890 |
626 func Chown(path string, uid int, gid int) (err error) { |
891 func Chown(path string, uid int, gid int) (err error) { |
627 var _p0 *byte |
892 var _p0 *byte |
628 _p0, err = BytePtrFromString(path) |
893 _p0, err = BytePtrFromString(path) |
629 if err != nil { |
894 if err != nil { |
630 return |
895 return |
631 } |
896 } |
632 _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) |
897 _, _, e1 := syscall_syscall(funcPC(libc_chown_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) |
633 if e1 != 0 { |
898 if e1 != 0 { |
634 err = errnoErr(e1) |
899 err = errnoErr(e1) |
635 } |
900 } |
636 return |
901 return |
637 } |
902 } |
|
903 |
|
904 func libc_chown_trampoline() |
|
905 |
|
906 //go:linkname libc_chown libc_chown |
|
907 //go:cgo_import_dynamic libc_chown chown "/usr/lib/libSystem.B.dylib" |
638 |
908 |
639 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
909 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
640 |
910 |
641 func Chroot(path string) (err error) { |
911 func Chroot(path string) (err error) { |
642 var _p0 *byte |
912 var _p0 *byte |
643 _p0, err = BytePtrFromString(path) |
913 _p0, err = BytePtrFromString(path) |
644 if err != nil { |
914 if err != nil { |
645 return |
915 return |
646 } |
916 } |
647 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) |
917 _, _, e1 := syscall_syscall(funcPC(libc_chroot_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0) |
648 if e1 != 0 { |
918 if e1 != 0 { |
649 err = errnoErr(e1) |
919 err = errnoErr(e1) |
650 } |
920 } |
651 return |
921 return |
652 } |
922 } |
|
923 |
|
924 func libc_chroot_trampoline() |
|
925 |
|
926 //go:linkname libc_chroot libc_chroot |
|
927 //go:cgo_import_dynamic libc_chroot chroot "/usr/lib/libSystem.B.dylib" |
|
928 |
|
929 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
930 |
|
931 func ClockGettime(clockid int32, time *Timespec) (err error) { |
|
932 _, _, e1 := syscall_syscall(funcPC(libc_clock_gettime_trampoline), uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) |
|
933 if e1 != 0 { |
|
934 err = errnoErr(e1) |
|
935 } |
|
936 return |
|
937 } |
|
938 |
|
939 func libc_clock_gettime_trampoline() |
|
940 |
|
941 //go:linkname libc_clock_gettime libc_clock_gettime |
|
942 //go:cgo_import_dynamic libc_clock_gettime clock_gettime "/usr/lib/libSystem.B.dylib" |
653 |
943 |
654 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
944 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
655 |
945 |
656 func Close(fd int) (err error) { |
946 func Close(fd int) (err error) { |
657 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) |
947 _, _, e1 := syscall_syscall(funcPC(libc_close_trampoline), uintptr(fd), 0, 0) |
658 if e1 != 0 { |
948 if e1 != 0 { |
659 err = errnoErr(e1) |
949 err = errnoErr(e1) |
660 } |
950 } |
661 return |
951 return |
662 } |
952 } |
|
953 |
|
954 func libc_close_trampoline() |
|
955 |
|
956 //go:linkname libc_close libc_close |
|
957 //go:cgo_import_dynamic libc_close close "/usr/lib/libSystem.B.dylib" |
663 |
958 |
664 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
959 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
665 |
960 |
666 func Dup(fd int) (nfd int, err error) { |
961 func Dup(fd int) (nfd int, err error) { |
667 r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) |
962 r0, _, e1 := syscall_syscall(funcPC(libc_dup_trampoline), uintptr(fd), 0, 0) |
668 nfd = int(r0) |
963 nfd = int(r0) |
669 if e1 != 0 { |
964 if e1 != 0 { |
670 err = errnoErr(e1) |
965 err = errnoErr(e1) |
671 } |
966 } |
672 return |
967 return |
673 } |
968 } |
674 |
969 |
|
970 func libc_dup_trampoline() |
|
971 |
|
972 //go:linkname libc_dup libc_dup |
|
973 //go:cgo_import_dynamic libc_dup dup "/usr/lib/libSystem.B.dylib" |
|
974 |
675 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
975 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
676 |
976 |
677 func Dup2(from int, to int) (err error) { |
977 func Dup2(from int, to int) (err error) { |
678 _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) |
978 _, _, e1 := syscall_syscall(funcPC(libc_dup2_trampoline), uintptr(from), uintptr(to), 0) |
679 if e1 != 0 { |
979 if e1 != 0 { |
680 err = errnoErr(e1) |
980 err = errnoErr(e1) |
681 } |
981 } |
682 return |
982 return |
683 } |
983 } |
|
984 |
|
985 func libc_dup2_trampoline() |
|
986 |
|
987 //go:linkname libc_dup2 libc_dup2 |
|
988 //go:cgo_import_dynamic libc_dup2 dup2 "/usr/lib/libSystem.B.dylib" |
684 |
989 |
685 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
990 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
686 |
991 |
687 func Exchangedata(path1 string, path2 string, options int) (err error) { |
992 func Exchangedata(path1 string, path2 string, options int) (err error) { |
688 var _p0 *byte |
993 var _p0 *byte |
693 var _p1 *byte |
998 var _p1 *byte |
694 _p1, err = BytePtrFromString(path2) |
999 _p1, err = BytePtrFromString(path2) |
695 if err != nil { |
1000 if err != nil { |
696 return |
1001 return |
697 } |
1002 } |
698 _, _, e1 := Syscall(SYS_EXCHANGEDATA, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options)) |
1003 _, _, e1 := syscall_syscall(funcPC(libc_exchangedata_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options)) |
699 if e1 != 0 { |
1004 if e1 != 0 { |
700 err = errnoErr(e1) |
1005 err = errnoErr(e1) |
701 } |
1006 } |
702 return |
1007 return |
703 } |
1008 } |
|
1009 |
|
1010 func libc_exchangedata_trampoline() |
|
1011 |
|
1012 //go:linkname libc_exchangedata libc_exchangedata |
|
1013 //go:cgo_import_dynamic libc_exchangedata exchangedata "/usr/lib/libSystem.B.dylib" |
704 |
1014 |
705 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1015 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
706 |
1016 |
707 func Exit(code int) { |
1017 func Exit(code int) { |
708 Syscall(SYS_EXIT, uintptr(code), 0, 0) |
1018 syscall_syscall(funcPC(libc_exit_trampoline), uintptr(code), 0, 0) |
709 return |
1019 return |
710 } |
1020 } |
|
1021 |
|
1022 func libc_exit_trampoline() |
|
1023 |
|
1024 //go:linkname libc_exit libc_exit |
|
1025 //go:cgo_import_dynamic libc_exit exit "/usr/lib/libSystem.B.dylib" |
711 |
1026 |
712 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1027 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
713 |
1028 |
714 func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { |
1029 func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { |
715 var _p0 *byte |
1030 var _p0 *byte |
716 _p0, err = BytePtrFromString(path) |
1031 _p0, err = BytePtrFromString(path) |
717 if err != nil { |
1032 if err != nil { |
718 return |
1033 return |
719 } |
1034 } |
720 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) |
1035 _, _, e1 := syscall_syscall6(funcPC(libc_faccessat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) |
721 if e1 != 0 { |
1036 if e1 != 0 { |
722 err = errnoErr(e1) |
1037 err = errnoErr(e1) |
723 } |
1038 } |
724 return |
1039 return |
725 } |
1040 } |
|
1041 |
|
1042 func libc_faccessat_trampoline() |
|
1043 |
|
1044 //go:linkname libc_faccessat libc_faccessat |
|
1045 //go:cgo_import_dynamic libc_faccessat faccessat "/usr/lib/libSystem.B.dylib" |
726 |
1046 |
727 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1047 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
728 |
1048 |
729 func Fchdir(fd int) (err error) { |
1049 func Fchdir(fd int) (err error) { |
730 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) |
1050 _, _, e1 := syscall_syscall(funcPC(libc_fchdir_trampoline), uintptr(fd), 0, 0) |
731 if e1 != 0 { |
1051 if e1 != 0 { |
732 err = errnoErr(e1) |
1052 err = errnoErr(e1) |
733 } |
1053 } |
734 return |
1054 return |
735 } |
1055 } |
|
1056 |
|
1057 func libc_fchdir_trampoline() |
|
1058 |
|
1059 //go:linkname libc_fchdir libc_fchdir |
|
1060 //go:cgo_import_dynamic libc_fchdir fchdir "/usr/lib/libSystem.B.dylib" |
736 |
1061 |
737 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1062 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
738 |
1063 |
739 func Fchflags(fd int, flags int) (err error) { |
1064 func Fchflags(fd int, flags int) (err error) { |
740 _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) |
1065 _, _, e1 := syscall_syscall(funcPC(libc_fchflags_trampoline), uintptr(fd), uintptr(flags), 0) |
741 if e1 != 0 { |
1066 if e1 != 0 { |
742 err = errnoErr(e1) |
1067 err = errnoErr(e1) |
743 } |
1068 } |
744 return |
1069 return |
745 } |
1070 } |
|
1071 |
|
1072 func libc_fchflags_trampoline() |
|
1073 |
|
1074 //go:linkname libc_fchflags libc_fchflags |
|
1075 //go:cgo_import_dynamic libc_fchflags fchflags "/usr/lib/libSystem.B.dylib" |
746 |
1076 |
747 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1077 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
748 |
1078 |
749 func Fchmod(fd int, mode uint32) (err error) { |
1079 func Fchmod(fd int, mode uint32) (err error) { |
750 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) |
1080 _, _, e1 := syscall_syscall(funcPC(libc_fchmod_trampoline), uintptr(fd), uintptr(mode), 0) |
751 if e1 != 0 { |
1081 if e1 != 0 { |
752 err = errnoErr(e1) |
1082 err = errnoErr(e1) |
753 } |
1083 } |
754 return |
1084 return |
755 } |
1085 } |
|
1086 |
|
1087 func libc_fchmod_trampoline() |
|
1088 |
|
1089 //go:linkname libc_fchmod libc_fchmod |
|
1090 //go:cgo_import_dynamic libc_fchmod fchmod "/usr/lib/libSystem.B.dylib" |
756 |
1091 |
757 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1092 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
758 |
1093 |
759 func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { |
1094 func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { |
760 var _p0 *byte |
1095 var _p0 *byte |
761 _p0, err = BytePtrFromString(path) |
1096 _p0, err = BytePtrFromString(path) |
762 if err != nil { |
1097 if err != nil { |
763 return |
1098 return |
764 } |
1099 } |
765 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) |
1100 _, _, e1 := syscall_syscall6(funcPC(libc_fchmodat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) |
766 if e1 != 0 { |
1101 if e1 != 0 { |
767 err = errnoErr(e1) |
1102 err = errnoErr(e1) |
768 } |
1103 } |
769 return |
1104 return |
770 } |
1105 } |
|
1106 |
|
1107 func libc_fchmodat_trampoline() |
|
1108 |
|
1109 //go:linkname libc_fchmodat libc_fchmodat |
|
1110 //go:cgo_import_dynamic libc_fchmodat fchmodat "/usr/lib/libSystem.B.dylib" |
771 |
1111 |
772 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1112 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
773 |
1113 |
774 func Fchown(fd int, uid int, gid int) (err error) { |
1114 func Fchown(fd int, uid int, gid int) (err error) { |
775 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) |
1115 _, _, e1 := syscall_syscall(funcPC(libc_fchown_trampoline), uintptr(fd), uintptr(uid), uintptr(gid)) |
776 if e1 != 0 { |
1116 if e1 != 0 { |
777 err = errnoErr(e1) |
1117 err = errnoErr(e1) |
778 } |
1118 } |
779 return |
1119 return |
780 } |
1120 } |
|
1121 |
|
1122 func libc_fchown_trampoline() |
|
1123 |
|
1124 //go:linkname libc_fchown libc_fchown |
|
1125 //go:cgo_import_dynamic libc_fchown fchown "/usr/lib/libSystem.B.dylib" |
781 |
1126 |
782 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1127 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
783 |
1128 |
784 func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { |
1129 func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { |
785 var _p0 *byte |
1130 var _p0 *byte |
786 _p0, err = BytePtrFromString(path) |
1131 _p0, err = BytePtrFromString(path) |
787 if err != nil { |
1132 if err != nil { |
788 return |
1133 return |
789 } |
1134 } |
790 _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) |
1135 _, _, e1 := syscall_syscall6(funcPC(libc_fchownat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) |
791 if e1 != 0 { |
1136 if e1 != 0 { |
792 err = errnoErr(e1) |
1137 err = errnoErr(e1) |
793 } |
1138 } |
794 return |
1139 return |
795 } |
1140 } |
|
1141 |
|
1142 func libc_fchownat_trampoline() |
|
1143 |
|
1144 //go:linkname libc_fchownat libc_fchownat |
|
1145 //go:cgo_import_dynamic libc_fchownat fchownat "/usr/lib/libSystem.B.dylib" |
796 |
1146 |
797 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1147 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
798 |
1148 |
799 func Flock(fd int, how int) (err error) { |
1149 func Flock(fd int, how int) (err error) { |
800 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) |
1150 _, _, e1 := syscall_syscall(funcPC(libc_flock_trampoline), uintptr(fd), uintptr(how), 0) |
801 if e1 != 0 { |
1151 if e1 != 0 { |
802 err = errnoErr(e1) |
1152 err = errnoErr(e1) |
803 } |
1153 } |
804 return |
1154 return |
805 } |
1155 } |
|
1156 |
|
1157 func libc_flock_trampoline() |
|
1158 |
|
1159 //go:linkname libc_flock libc_flock |
|
1160 //go:cgo_import_dynamic libc_flock flock "/usr/lib/libSystem.B.dylib" |
806 |
1161 |
807 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1162 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
808 |
1163 |
809 func Fpathconf(fd int, name int) (val int, err error) { |
1164 func Fpathconf(fd int, name int) (val int, err error) { |
810 r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) |
1165 r0, _, e1 := syscall_syscall(funcPC(libc_fpathconf_trampoline), uintptr(fd), uintptr(name), 0) |
811 val = int(r0) |
1166 val = int(r0) |
812 if e1 != 0 { |
1167 if e1 != 0 { |
813 err = errnoErr(e1) |
1168 err = errnoErr(e1) |
814 } |
1169 } |
815 return |
1170 return |
816 } |
1171 } |
817 |
1172 |
818 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1173 func libc_fpathconf_trampoline() |
819 |
1174 |
820 func Fstat(fd int, stat *Stat_t) (err error) { |
1175 //go:linkname libc_fpathconf libc_fpathconf |
821 _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) |
1176 //go:cgo_import_dynamic libc_fpathconf fpathconf "/usr/lib/libSystem.B.dylib" |
822 if e1 != 0 { |
|
823 err = errnoErr(e1) |
|
824 } |
|
825 return |
|
826 } |
|
827 |
|
828 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
829 |
|
830 func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { |
|
831 var _p0 *byte |
|
832 _p0, err = BytePtrFromString(path) |
|
833 if err != nil { |
|
834 return |
|
835 } |
|
836 _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) |
|
837 if e1 != 0 { |
|
838 err = errnoErr(e1) |
|
839 } |
|
840 return |
|
841 } |
|
842 |
|
843 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
844 |
|
845 func Fstatfs(fd int, stat *Statfs_t) (err error) { |
|
846 _, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) |
|
847 if e1 != 0 { |
|
848 err = errnoErr(e1) |
|
849 } |
|
850 return |
|
851 } |
|
852 |
1177 |
853 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1178 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
854 |
1179 |
855 func Fsync(fd int) (err error) { |
1180 func Fsync(fd int) (err error) { |
856 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) |
1181 _, _, e1 := syscall_syscall(funcPC(libc_fsync_trampoline), uintptr(fd), 0, 0) |
857 if e1 != 0 { |
1182 if e1 != 0 { |
858 err = errnoErr(e1) |
1183 err = errnoErr(e1) |
859 } |
1184 } |
860 return |
1185 return |
861 } |
1186 } |
|
1187 |
|
1188 func libc_fsync_trampoline() |
|
1189 |
|
1190 //go:linkname libc_fsync libc_fsync |
|
1191 //go:cgo_import_dynamic libc_fsync fsync "/usr/lib/libSystem.B.dylib" |
862 |
1192 |
863 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1193 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
864 |
1194 |
865 func Ftruncate(fd int, length int64) (err error) { |
1195 func Ftruncate(fd int, length int64) (err error) { |
866 _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), uintptr(length>>32)) |
1196 _, _, e1 := syscall_syscall(funcPC(libc_ftruncate_trampoline), uintptr(fd), uintptr(length), uintptr(length>>32)) |
867 if e1 != 0 { |
1197 if e1 != 0 { |
868 err = errnoErr(e1) |
1198 err = errnoErr(e1) |
869 } |
1199 } |
870 return |
1200 return |
871 } |
1201 } |
872 |
1202 |
873 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1203 func libc_ftruncate_trampoline() |
874 |
1204 |
875 func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { |
1205 //go:linkname libc_ftruncate libc_ftruncate |
876 var _p0 unsafe.Pointer |
1206 //go:cgo_import_dynamic libc_ftruncate ftruncate "/usr/lib/libSystem.B.dylib" |
877 if len(buf) > 0 { |
|
878 _p0 = unsafe.Pointer(&buf[0]) |
|
879 } else { |
|
880 _p0 = unsafe.Pointer(&_zero) |
|
881 } |
|
882 r0, _, e1 := Syscall6(SYS_GETDIRENTRIES64, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) |
|
883 n = int(r0) |
|
884 if e1 != 0 { |
|
885 err = errnoErr(e1) |
|
886 } |
|
887 return |
|
888 } |
|
889 |
1207 |
890 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1208 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
891 |
1209 |
892 func Getdtablesize() (size int) { |
1210 func Getdtablesize() (size int) { |
893 r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0) |
1211 r0, _, _ := syscall_syscall(funcPC(libc_getdtablesize_trampoline), 0, 0, 0) |
894 size = int(r0) |
1212 size = int(r0) |
895 return |
1213 return |
896 } |
1214 } |
897 |
1215 |
|
1216 func libc_getdtablesize_trampoline() |
|
1217 |
|
1218 //go:linkname libc_getdtablesize libc_getdtablesize |
|
1219 //go:cgo_import_dynamic libc_getdtablesize getdtablesize "/usr/lib/libSystem.B.dylib" |
|
1220 |
898 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1221 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
899 |
1222 |
900 func Getegid() (egid int) { |
1223 func Getegid() (egid int) { |
901 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) |
1224 r0, _, _ := syscall_rawSyscall(funcPC(libc_getegid_trampoline), 0, 0, 0) |
902 egid = int(r0) |
1225 egid = int(r0) |
903 return |
1226 return |
904 } |
1227 } |
905 |
1228 |
|
1229 func libc_getegid_trampoline() |
|
1230 |
|
1231 //go:linkname libc_getegid libc_getegid |
|
1232 //go:cgo_import_dynamic libc_getegid getegid "/usr/lib/libSystem.B.dylib" |
|
1233 |
906 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1234 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
907 |
1235 |
908 func Geteuid() (uid int) { |
1236 func Geteuid() (uid int) { |
909 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) |
1237 r0, _, _ := syscall_rawSyscall(funcPC(libc_geteuid_trampoline), 0, 0, 0) |
910 uid = int(r0) |
1238 uid = int(r0) |
911 return |
1239 return |
912 } |
1240 } |
913 |
1241 |
|
1242 func libc_geteuid_trampoline() |
|
1243 |
|
1244 //go:linkname libc_geteuid libc_geteuid |
|
1245 //go:cgo_import_dynamic libc_geteuid geteuid "/usr/lib/libSystem.B.dylib" |
|
1246 |
914 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1247 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
915 |
1248 |
916 func Getgid() (gid int) { |
1249 func Getgid() (gid int) { |
917 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) |
1250 r0, _, _ := syscall_rawSyscall(funcPC(libc_getgid_trampoline), 0, 0, 0) |
918 gid = int(r0) |
1251 gid = int(r0) |
919 return |
1252 return |
920 } |
1253 } |
921 |
1254 |
|
1255 func libc_getgid_trampoline() |
|
1256 |
|
1257 //go:linkname libc_getgid libc_getgid |
|
1258 //go:cgo_import_dynamic libc_getgid getgid "/usr/lib/libSystem.B.dylib" |
|
1259 |
922 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1260 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
923 |
1261 |
924 func Getpgid(pid int) (pgid int, err error) { |
1262 func Getpgid(pid int) (pgid int, err error) { |
925 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) |
1263 r0, _, e1 := syscall_rawSyscall(funcPC(libc_getpgid_trampoline), uintptr(pid), 0, 0) |
926 pgid = int(r0) |
1264 pgid = int(r0) |
927 if e1 != 0 { |
1265 if e1 != 0 { |
928 err = errnoErr(e1) |
1266 err = errnoErr(e1) |
929 } |
1267 } |
930 return |
1268 return |
931 } |
1269 } |
932 |
1270 |
|
1271 func libc_getpgid_trampoline() |
|
1272 |
|
1273 //go:linkname libc_getpgid libc_getpgid |
|
1274 //go:cgo_import_dynamic libc_getpgid getpgid "/usr/lib/libSystem.B.dylib" |
|
1275 |
933 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1276 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
934 |
1277 |
935 func Getpgrp() (pgrp int) { |
1278 func Getpgrp() (pgrp int) { |
936 r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) |
1279 r0, _, _ := syscall_rawSyscall(funcPC(libc_getpgrp_trampoline), 0, 0, 0) |
937 pgrp = int(r0) |
1280 pgrp = int(r0) |
938 return |
1281 return |
939 } |
1282 } |
940 |
1283 |
|
1284 func libc_getpgrp_trampoline() |
|
1285 |
|
1286 //go:linkname libc_getpgrp libc_getpgrp |
|
1287 //go:cgo_import_dynamic libc_getpgrp getpgrp "/usr/lib/libSystem.B.dylib" |
|
1288 |
941 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1289 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
942 |
1290 |
943 func Getpid() (pid int) { |
1291 func Getpid() (pid int) { |
944 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) |
1292 r0, _, _ := syscall_rawSyscall(funcPC(libc_getpid_trampoline), 0, 0, 0) |
945 pid = int(r0) |
1293 pid = int(r0) |
946 return |
1294 return |
947 } |
1295 } |
948 |
1296 |
|
1297 func libc_getpid_trampoline() |
|
1298 |
|
1299 //go:linkname libc_getpid libc_getpid |
|
1300 //go:cgo_import_dynamic libc_getpid getpid "/usr/lib/libSystem.B.dylib" |
|
1301 |
949 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1302 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
950 |
1303 |
951 func Getppid() (ppid int) { |
1304 func Getppid() (ppid int) { |
952 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) |
1305 r0, _, _ := syscall_rawSyscall(funcPC(libc_getppid_trampoline), 0, 0, 0) |
953 ppid = int(r0) |
1306 ppid = int(r0) |
954 return |
1307 return |
955 } |
1308 } |
956 |
1309 |
|
1310 func libc_getppid_trampoline() |
|
1311 |
|
1312 //go:linkname libc_getppid libc_getppid |
|
1313 //go:cgo_import_dynamic libc_getppid getppid "/usr/lib/libSystem.B.dylib" |
|
1314 |
957 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1315 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
958 |
1316 |
959 func Getpriority(which int, who int) (prio int, err error) { |
1317 func Getpriority(which int, who int) (prio int, err error) { |
960 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) |
1318 r0, _, e1 := syscall_syscall(funcPC(libc_getpriority_trampoline), uintptr(which), uintptr(who), 0) |
961 prio = int(r0) |
1319 prio = int(r0) |
962 if e1 != 0 { |
1320 if e1 != 0 { |
963 err = errnoErr(e1) |
1321 err = errnoErr(e1) |
964 } |
1322 } |
965 return |
1323 return |
966 } |
1324 } |
967 |
1325 |
|
1326 func libc_getpriority_trampoline() |
|
1327 |
|
1328 //go:linkname libc_getpriority libc_getpriority |
|
1329 //go:cgo_import_dynamic libc_getpriority getpriority "/usr/lib/libSystem.B.dylib" |
|
1330 |
968 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1331 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
969 |
1332 |
970 func Getrlimit(which int, lim *Rlimit) (err error) { |
1333 func Getrlimit(which int, lim *Rlimit) (err error) { |
971 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) |
1334 _, _, e1 := syscall_rawSyscall(funcPC(libc_getrlimit_trampoline), uintptr(which), uintptr(unsafe.Pointer(lim)), 0) |
972 if e1 != 0 { |
1335 if e1 != 0 { |
973 err = errnoErr(e1) |
1336 err = errnoErr(e1) |
974 } |
1337 } |
975 return |
1338 return |
976 } |
1339 } |
|
1340 |
|
1341 func libc_getrlimit_trampoline() |
|
1342 |
|
1343 //go:linkname libc_getrlimit libc_getrlimit |
|
1344 //go:cgo_import_dynamic libc_getrlimit getrlimit "/usr/lib/libSystem.B.dylib" |
977 |
1345 |
978 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1346 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
979 |
1347 |
980 func Getrusage(who int, rusage *Rusage) (err error) { |
1348 func Getrusage(who int, rusage *Rusage) (err error) { |
981 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) |
1349 _, _, e1 := syscall_rawSyscall(funcPC(libc_getrusage_trampoline), uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) |
982 if e1 != 0 { |
1350 if e1 != 0 { |
983 err = errnoErr(e1) |
1351 err = errnoErr(e1) |
984 } |
1352 } |
985 return |
1353 return |
986 } |
1354 } |
|
1355 |
|
1356 func libc_getrusage_trampoline() |
|
1357 |
|
1358 //go:linkname libc_getrusage libc_getrusage |
|
1359 //go:cgo_import_dynamic libc_getrusage getrusage "/usr/lib/libSystem.B.dylib" |
987 |
1360 |
988 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1361 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
989 |
1362 |
990 func Getsid(pid int) (sid int, err error) { |
1363 func Getsid(pid int) (sid int, err error) { |
991 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) |
1364 r0, _, e1 := syscall_rawSyscall(funcPC(libc_getsid_trampoline), uintptr(pid), 0, 0) |
992 sid = int(r0) |
1365 sid = int(r0) |
993 if e1 != 0 { |
1366 if e1 != 0 { |
994 err = errnoErr(e1) |
1367 err = errnoErr(e1) |
995 } |
1368 } |
996 return |
1369 return |
997 } |
1370 } |
998 |
1371 |
|
1372 func libc_getsid_trampoline() |
|
1373 |
|
1374 //go:linkname libc_getsid libc_getsid |
|
1375 //go:cgo_import_dynamic libc_getsid getsid "/usr/lib/libSystem.B.dylib" |
|
1376 |
999 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1377 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1000 |
1378 |
1001 func Getuid() (uid int) { |
1379 func Getuid() (uid int) { |
1002 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) |
1380 r0, _, _ := syscall_rawSyscall(funcPC(libc_getuid_trampoline), 0, 0, 0) |
1003 uid = int(r0) |
1381 uid = int(r0) |
1004 return |
1382 return |
1005 } |
1383 } |
1006 |
1384 |
|
1385 func libc_getuid_trampoline() |
|
1386 |
|
1387 //go:linkname libc_getuid libc_getuid |
|
1388 //go:cgo_import_dynamic libc_getuid getuid "/usr/lib/libSystem.B.dylib" |
|
1389 |
1007 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1390 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1008 |
1391 |
1009 func Issetugid() (tainted bool) { |
1392 func Issetugid() (tainted bool) { |
1010 r0, _, _ := RawSyscall(SYS_ISSETUGID, 0, 0, 0) |
1393 r0, _, _ := syscall_rawSyscall(funcPC(libc_issetugid_trampoline), 0, 0, 0) |
1011 tainted = bool(r0 != 0) |
1394 tainted = bool(r0 != 0) |
1012 return |
1395 return |
1013 } |
1396 } |
1014 |
1397 |
|
1398 func libc_issetugid_trampoline() |
|
1399 |
|
1400 //go:linkname libc_issetugid libc_issetugid |
|
1401 //go:cgo_import_dynamic libc_issetugid issetugid "/usr/lib/libSystem.B.dylib" |
|
1402 |
1015 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1403 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1016 |
1404 |
1017 func Kqueue() (fd int, err error) { |
1405 func Kqueue() (fd int, err error) { |
1018 r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) |
1406 r0, _, e1 := syscall_syscall(funcPC(libc_kqueue_trampoline), 0, 0, 0) |
1019 fd = int(r0) |
1407 fd = int(r0) |
1020 if e1 != 0 { |
1408 if e1 != 0 { |
1021 err = errnoErr(e1) |
1409 err = errnoErr(e1) |
1022 } |
1410 } |
1023 return |
1411 return |
1024 } |
1412 } |
1025 |
1413 |
|
1414 func libc_kqueue_trampoline() |
|
1415 |
|
1416 //go:linkname libc_kqueue libc_kqueue |
|
1417 //go:cgo_import_dynamic libc_kqueue kqueue "/usr/lib/libSystem.B.dylib" |
|
1418 |
1026 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1419 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1027 |
1420 |
1028 func Lchown(path string, uid int, gid int) (err error) { |
1421 func Lchown(path string, uid int, gid int) (err error) { |
1029 var _p0 *byte |
1422 var _p0 *byte |
1030 _p0, err = BytePtrFromString(path) |
1423 _p0, err = BytePtrFromString(path) |
1031 if err != nil { |
1424 if err != nil { |
1032 return |
1425 return |
1033 } |
1426 } |
1034 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) |
1427 _, _, e1 := syscall_syscall(funcPC(libc_lchown_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) |
1035 if e1 != 0 { |
1428 if e1 != 0 { |
1036 err = errnoErr(e1) |
1429 err = errnoErr(e1) |
1037 } |
1430 } |
1038 return |
1431 return |
1039 } |
1432 } |
|
1433 |
|
1434 func libc_lchown_trampoline() |
|
1435 |
|
1436 //go:linkname libc_lchown libc_lchown |
|
1437 //go:cgo_import_dynamic libc_lchown lchown "/usr/lib/libSystem.B.dylib" |
1040 |
1438 |
1041 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1439 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1042 |
1440 |
1043 func Link(path string, link string) (err error) { |
1441 func Link(path string, link string) (err error) { |
1044 var _p0 *byte |
1442 var _p0 *byte |
1069 var _p1 *byte |
1472 var _p1 *byte |
1070 _p1, err = BytePtrFromString(link) |
1473 _p1, err = BytePtrFromString(link) |
1071 if err != nil { |
1474 if err != nil { |
1072 return |
1475 return |
1073 } |
1476 } |
1074 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) |
1477 _, _, e1 := syscall_syscall6(funcPC(libc_linkat_trampoline), uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) |
1075 if e1 != 0 { |
1478 if e1 != 0 { |
1076 err = errnoErr(e1) |
1479 err = errnoErr(e1) |
1077 } |
1480 } |
1078 return |
1481 return |
1079 } |
1482 } |
|
1483 |
|
1484 func libc_linkat_trampoline() |
|
1485 |
|
1486 //go:linkname libc_linkat libc_linkat |
|
1487 //go:cgo_import_dynamic libc_linkat linkat "/usr/lib/libSystem.B.dylib" |
1080 |
1488 |
1081 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1489 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1082 |
1490 |
1083 func Listen(s int, backlog int) (err error) { |
1491 func Listen(s int, backlog int) (err error) { |
1084 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) |
1492 _, _, e1 := syscall_syscall(funcPC(libc_listen_trampoline), uintptr(s), uintptr(backlog), 0) |
1085 if e1 != 0 { |
1493 if e1 != 0 { |
1086 err = errnoErr(e1) |
1494 err = errnoErr(e1) |
1087 } |
1495 } |
1088 return |
1496 return |
1089 } |
1497 } |
1090 |
1498 |
1091 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1499 func libc_listen_trampoline() |
1092 |
1500 |
1093 func Lstat(path string, stat *Stat_t) (err error) { |
1501 //go:linkname libc_listen libc_listen |
1094 var _p0 *byte |
1502 //go:cgo_import_dynamic libc_listen listen "/usr/lib/libSystem.B.dylib" |
1095 _p0, err = BytePtrFromString(path) |
|
1096 if err != nil { |
|
1097 return |
|
1098 } |
|
1099 _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) |
|
1100 if e1 != 0 { |
|
1101 err = errnoErr(e1) |
|
1102 } |
|
1103 return |
|
1104 } |
|
1105 |
1503 |
1106 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1504 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1107 |
1505 |
1108 func Mkdir(path string, mode uint32) (err error) { |
1506 func Mkdir(path string, mode uint32) (err error) { |
1109 var _p0 *byte |
1507 var _p0 *byte |
1110 _p0, err = BytePtrFromString(path) |
1508 _p0, err = BytePtrFromString(path) |
1111 if err != nil { |
1509 if err != nil { |
1112 return |
1510 return |
1113 } |
1511 } |
1114 _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) |
1512 _, _, e1 := syscall_syscall(funcPC(libc_mkdir_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) |
1115 if e1 != 0 { |
1513 if e1 != 0 { |
1116 err = errnoErr(e1) |
1514 err = errnoErr(e1) |
1117 } |
1515 } |
1118 return |
1516 return |
1119 } |
1517 } |
|
1518 |
|
1519 func libc_mkdir_trampoline() |
|
1520 |
|
1521 //go:linkname libc_mkdir libc_mkdir |
|
1522 //go:cgo_import_dynamic libc_mkdir mkdir "/usr/lib/libSystem.B.dylib" |
1120 |
1523 |
1121 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1524 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1122 |
1525 |
1123 func Mkdirat(dirfd int, path string, mode uint32) (err error) { |
1526 func Mkdirat(dirfd int, path string, mode uint32) (err error) { |
1124 var _p0 *byte |
1527 var _p0 *byte |
1125 _p0, err = BytePtrFromString(path) |
1528 _p0, err = BytePtrFromString(path) |
1126 if err != nil { |
1529 if err != nil { |
1127 return |
1530 return |
1128 } |
1531 } |
1129 _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) |
1532 _, _, e1 := syscall_syscall(funcPC(libc_mkdirat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) |
1130 if e1 != 0 { |
1533 if e1 != 0 { |
1131 err = errnoErr(e1) |
1534 err = errnoErr(e1) |
1132 } |
1535 } |
1133 return |
1536 return |
1134 } |
1537 } |
|
1538 |
|
1539 func libc_mkdirat_trampoline() |
|
1540 |
|
1541 //go:linkname libc_mkdirat libc_mkdirat |
|
1542 //go:cgo_import_dynamic libc_mkdirat mkdirat "/usr/lib/libSystem.B.dylib" |
1135 |
1543 |
1136 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1544 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1137 |
1545 |
1138 func Mkfifo(path string, mode uint32) (err error) { |
1546 func Mkfifo(path string, mode uint32) (err error) { |
1139 var _p0 *byte |
1547 var _p0 *byte |
1140 _p0, err = BytePtrFromString(path) |
1548 _p0, err = BytePtrFromString(path) |
1141 if err != nil { |
1549 if err != nil { |
1142 return |
1550 return |
1143 } |
1551 } |
1144 _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) |
1552 _, _, e1 := syscall_syscall(funcPC(libc_mkfifo_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) |
1145 if e1 != 0 { |
1553 if e1 != 0 { |
1146 err = errnoErr(e1) |
1554 err = errnoErr(e1) |
1147 } |
1555 } |
1148 return |
1556 return |
1149 } |
1557 } |
|
1558 |
|
1559 func libc_mkfifo_trampoline() |
|
1560 |
|
1561 //go:linkname libc_mkfifo libc_mkfifo |
|
1562 //go:cgo_import_dynamic libc_mkfifo mkfifo "/usr/lib/libSystem.B.dylib" |
1150 |
1563 |
1151 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1564 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1152 |
1565 |
1153 func Mknod(path string, mode uint32, dev int) (err error) { |
1566 func Mknod(path string, mode uint32, dev int) (err error) { |
1154 var _p0 *byte |
1567 var _p0 *byte |
1155 _p0, err = BytePtrFromString(path) |
1568 _p0, err = BytePtrFromString(path) |
1156 if err != nil { |
1569 if err != nil { |
1157 return |
1570 return |
1158 } |
1571 } |
1159 _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) |
1572 _, _, e1 := syscall_syscall(funcPC(libc_mknod_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) |
1160 if e1 != 0 { |
1573 if e1 != 0 { |
1161 err = errnoErr(e1) |
1574 err = errnoErr(e1) |
1162 } |
1575 } |
1163 return |
1576 return |
1164 } |
1577 } |
|
1578 |
|
1579 func libc_mknod_trampoline() |
|
1580 |
|
1581 //go:linkname libc_mknod libc_mknod |
|
1582 //go:cgo_import_dynamic libc_mknod mknod "/usr/lib/libSystem.B.dylib" |
1165 |
1583 |
1166 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1584 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1167 |
1585 |
1168 func Open(path string, mode int, perm uint32) (fd int, err error) { |
1586 func Open(path string, mode int, perm uint32) (fd int, err error) { |
1169 var _p0 *byte |
1587 var _p0 *byte |
1170 _p0, err = BytePtrFromString(path) |
1588 _p0, err = BytePtrFromString(path) |
1171 if err != nil { |
1589 if err != nil { |
1172 return |
1590 return |
1173 } |
1591 } |
1174 r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) |
1592 r0, _, e1 := syscall_syscall(funcPC(libc_open_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) |
1175 fd = int(r0) |
1593 fd = int(r0) |
1176 if e1 != 0 { |
1594 if e1 != 0 { |
1177 err = errnoErr(e1) |
1595 err = errnoErr(e1) |
1178 } |
1596 } |
1179 return |
1597 return |
1180 } |
1598 } |
1181 |
1599 |
|
1600 func libc_open_trampoline() |
|
1601 |
|
1602 //go:linkname libc_open libc_open |
|
1603 //go:cgo_import_dynamic libc_open open "/usr/lib/libSystem.B.dylib" |
|
1604 |
1182 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1605 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1183 |
1606 |
1184 func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { |
1607 func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { |
1185 var _p0 *byte |
1608 var _p0 *byte |
1186 _p0, err = BytePtrFromString(path) |
1609 _p0, err = BytePtrFromString(path) |
1187 if err != nil { |
1610 if err != nil { |
1188 return |
1611 return |
1189 } |
1612 } |
1190 r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) |
1613 r0, _, e1 := syscall_syscall6(funcPC(libc_openat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) |
1191 fd = int(r0) |
1614 fd = int(r0) |
1192 if e1 != 0 { |
1615 if e1 != 0 { |
1193 err = errnoErr(e1) |
1616 err = errnoErr(e1) |
1194 } |
1617 } |
1195 return |
1618 return |
1196 } |
1619 } |
1197 |
1620 |
|
1621 func libc_openat_trampoline() |
|
1622 |
|
1623 //go:linkname libc_openat libc_openat |
|
1624 //go:cgo_import_dynamic libc_openat openat "/usr/lib/libSystem.B.dylib" |
|
1625 |
1198 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1626 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1199 |
1627 |
1200 func Pathconf(path string, name int) (val int, err error) { |
1628 func Pathconf(path string, name int) (val int, err error) { |
1201 var _p0 *byte |
1629 var _p0 *byte |
1202 _p0, err = BytePtrFromString(path) |
1630 _p0, err = BytePtrFromString(path) |
1203 if err != nil { |
1631 if err != nil { |
1204 return |
1632 return |
1205 } |
1633 } |
1206 r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) |
1634 r0, _, e1 := syscall_syscall(funcPC(libc_pathconf_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) |
1207 val = int(r0) |
1635 val = int(r0) |
1208 if e1 != 0 { |
1636 if e1 != 0 { |
1209 err = errnoErr(e1) |
1637 err = errnoErr(e1) |
1210 } |
1638 } |
1211 return |
1639 return |
1212 } |
1640 } |
|
1641 |
|
1642 func libc_pathconf_trampoline() |
|
1643 |
|
1644 //go:linkname libc_pathconf libc_pathconf |
|
1645 //go:cgo_import_dynamic libc_pathconf pathconf "/usr/lib/libSystem.B.dylib" |
1213 |
1646 |
1214 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1647 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1215 |
1648 |
1216 func Pread(fd int, p []byte, offset int64) (n int, err error) { |
1649 func Pread(fd int, p []byte, offset int64) (n int, err error) { |
1217 var _p0 unsafe.Pointer |
1650 var _p0 unsafe.Pointer |
1218 if len(p) > 0 { |
1651 if len(p) > 0 { |
1219 _p0 = unsafe.Pointer(&p[0]) |
1652 _p0 = unsafe.Pointer(&p[0]) |
1220 } else { |
1653 } else { |
1221 _p0 = unsafe.Pointer(&_zero) |
1654 _p0 = unsafe.Pointer(&_zero) |
1222 } |
1655 } |
1223 r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0) |
1656 r0, _, e1 := syscall_syscall6(funcPC(libc_pread_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0) |
1224 n = int(r0) |
1657 n = int(r0) |
1225 if e1 != 0 { |
1658 if e1 != 0 { |
1226 err = errnoErr(e1) |
1659 err = errnoErr(e1) |
1227 } |
1660 } |
1228 return |
1661 return |
1229 } |
1662 } |
|
1663 |
|
1664 func libc_pread_trampoline() |
|
1665 |
|
1666 //go:linkname libc_pread libc_pread |
|
1667 //go:cgo_import_dynamic libc_pread pread "/usr/lib/libSystem.B.dylib" |
1230 |
1668 |
1231 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1669 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1232 |
1670 |
1233 func Pwrite(fd int, p []byte, offset int64) (n int, err error) { |
1671 func Pwrite(fd int, p []byte, offset int64) (n int, err error) { |
1234 var _p0 unsafe.Pointer |
1672 var _p0 unsafe.Pointer |
1235 if len(p) > 0 { |
1673 if len(p) > 0 { |
1236 _p0 = unsafe.Pointer(&p[0]) |
1674 _p0 = unsafe.Pointer(&p[0]) |
1237 } else { |
1675 } else { |
1238 _p0 = unsafe.Pointer(&_zero) |
1676 _p0 = unsafe.Pointer(&_zero) |
1239 } |
1677 } |
1240 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0) |
1678 r0, _, e1 := syscall_syscall6(funcPC(libc_pwrite_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0) |
1241 n = int(r0) |
1679 n = int(r0) |
1242 if e1 != 0 { |
1680 if e1 != 0 { |
1243 err = errnoErr(e1) |
1681 err = errnoErr(e1) |
1244 } |
1682 } |
1245 return |
1683 return |
1246 } |
1684 } |
|
1685 |
|
1686 func libc_pwrite_trampoline() |
|
1687 |
|
1688 //go:linkname libc_pwrite libc_pwrite |
|
1689 //go:cgo_import_dynamic libc_pwrite pwrite "/usr/lib/libSystem.B.dylib" |
1247 |
1690 |
1248 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1691 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1249 |
1692 |
1250 func read(fd int, p []byte) (n int, err error) { |
1693 func read(fd int, p []byte) (n int, err error) { |
1251 var _p0 unsafe.Pointer |
1694 var _p0 unsafe.Pointer |
1252 if len(p) > 0 { |
1695 if len(p) > 0 { |
1253 _p0 = unsafe.Pointer(&p[0]) |
1696 _p0 = unsafe.Pointer(&p[0]) |
1254 } else { |
1697 } else { |
1255 _p0 = unsafe.Pointer(&_zero) |
1698 _p0 = unsafe.Pointer(&_zero) |
1256 } |
1699 } |
1257 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) |
1700 r0, _, e1 := syscall_syscall(funcPC(libc_read_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p))) |
1258 n = int(r0) |
1701 n = int(r0) |
1259 if e1 != 0 { |
1702 if e1 != 0 { |
1260 err = errnoErr(e1) |
1703 err = errnoErr(e1) |
1261 } |
1704 } |
1262 return |
1705 return |
1263 } |
1706 } |
|
1707 |
|
1708 func libc_read_trampoline() |
|
1709 |
|
1710 //go:linkname libc_read libc_read |
|
1711 //go:cgo_import_dynamic libc_read read "/usr/lib/libSystem.B.dylib" |
1264 |
1712 |
1265 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1713 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1266 |
1714 |
1267 func Readlink(path string, buf []byte) (n int, err error) { |
1715 func Readlink(path string, buf []byte) (n int, err error) { |
1268 var _p0 *byte |
1716 var _p0 *byte |
1337 var _p1 *byte |
1800 var _p1 *byte |
1338 _p1, err = BytePtrFromString(to) |
1801 _p1, err = BytePtrFromString(to) |
1339 if err != nil { |
1802 if err != nil { |
1340 return |
1803 return |
1341 } |
1804 } |
1342 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) |
1805 _, _, e1 := syscall_syscall6(funcPC(libc_renameat_trampoline), uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) |
1343 if e1 != 0 { |
1806 if e1 != 0 { |
1344 err = errnoErr(e1) |
1807 err = errnoErr(e1) |
1345 } |
1808 } |
1346 return |
1809 return |
1347 } |
1810 } |
|
1811 |
|
1812 func libc_renameat_trampoline() |
|
1813 |
|
1814 //go:linkname libc_renameat libc_renameat |
|
1815 //go:cgo_import_dynamic libc_renameat renameat "/usr/lib/libSystem.B.dylib" |
1348 |
1816 |
1349 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1817 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1350 |
1818 |
1351 func Revoke(path string) (err error) { |
1819 func Revoke(path string) (err error) { |
1352 var _p0 *byte |
1820 var _p0 *byte |
1353 _p0, err = BytePtrFromString(path) |
1821 _p0, err = BytePtrFromString(path) |
1354 if err != nil { |
1822 if err != nil { |
1355 return |
1823 return |
1356 } |
1824 } |
1357 _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) |
1825 _, _, e1 := syscall_syscall(funcPC(libc_revoke_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0) |
1358 if e1 != 0 { |
1826 if e1 != 0 { |
1359 err = errnoErr(e1) |
1827 err = errnoErr(e1) |
1360 } |
1828 } |
1361 return |
1829 return |
1362 } |
1830 } |
|
1831 |
|
1832 func libc_revoke_trampoline() |
|
1833 |
|
1834 //go:linkname libc_revoke libc_revoke |
|
1835 //go:cgo_import_dynamic libc_revoke revoke "/usr/lib/libSystem.B.dylib" |
1363 |
1836 |
1364 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1837 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1365 |
1838 |
1366 func Rmdir(path string) (err error) { |
1839 func Rmdir(path string) (err error) { |
1367 var _p0 *byte |
1840 var _p0 *byte |
1368 _p0, err = BytePtrFromString(path) |
1841 _p0, err = BytePtrFromString(path) |
1369 if err != nil { |
1842 if err != nil { |
1370 return |
1843 return |
1371 } |
1844 } |
1372 _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) |
1845 _, _, e1 := syscall_syscall(funcPC(libc_rmdir_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0) |
1373 if e1 != 0 { |
1846 if e1 != 0 { |
1374 err = errnoErr(e1) |
1847 err = errnoErr(e1) |
1375 } |
1848 } |
1376 return |
1849 return |
1377 } |
1850 } |
|
1851 |
|
1852 func libc_rmdir_trampoline() |
|
1853 |
|
1854 //go:linkname libc_rmdir libc_rmdir |
|
1855 //go:cgo_import_dynamic libc_rmdir rmdir "/usr/lib/libSystem.B.dylib" |
1378 |
1856 |
1379 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1857 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1380 |
1858 |
1381 func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { |
1859 func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { |
1382 r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(offset>>32), uintptr(whence), 0, 0) |
1860 r0, r1, e1 := syscall_syscall6(funcPC(libc_lseek_trampoline), uintptr(fd), uintptr(offset), uintptr(offset>>32), uintptr(whence), 0, 0) |
1383 newoffset = int64(int64(r1)<<32 | int64(r0)) |
1861 newoffset = int64(int64(r1)<<32 | int64(r0)) |
1384 if e1 != 0 { |
1862 if e1 != 0 { |
1385 err = errnoErr(e1) |
1863 err = errnoErr(e1) |
1386 } |
1864 } |
1387 return |
1865 return |
1388 } |
1866 } |
1389 |
1867 |
1390 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1868 func libc_lseek_trampoline() |
1391 |
1869 |
1392 func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { |
1870 //go:linkname libc_lseek libc_lseek |
1393 _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) |
1871 //go:cgo_import_dynamic libc_lseek lseek "/usr/lib/libSystem.B.dylib" |
1394 if e1 != 0 { |
1872 |
1395 err = errnoErr(e1) |
1873 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1396 } |
1874 |
1397 return |
1875 func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { |
1398 } |
1876 r0, _, e1 := syscall_syscall6(funcPC(libc_select_trampoline), uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) |
|
1877 n = int(r0) |
|
1878 if e1 != 0 { |
|
1879 err = errnoErr(e1) |
|
1880 } |
|
1881 return |
|
1882 } |
|
1883 |
|
1884 func libc_select_trampoline() |
|
1885 |
|
1886 //go:linkname libc_select libc_select |
|
1887 //go:cgo_import_dynamic libc_select select "/usr/lib/libSystem.B.dylib" |
1399 |
1888 |
1400 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1889 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1401 |
1890 |
1402 func Setegid(egid int) (err error) { |
1891 func Setegid(egid int) (err error) { |
1403 _, _, e1 := Syscall(SYS_SETEGID, uintptr(egid), 0, 0) |
1892 _, _, e1 := syscall_syscall(funcPC(libc_setegid_trampoline), uintptr(egid), 0, 0) |
1404 if e1 != 0 { |
1893 if e1 != 0 { |
1405 err = errnoErr(e1) |
1894 err = errnoErr(e1) |
1406 } |
1895 } |
1407 return |
1896 return |
1408 } |
1897 } |
|
1898 |
|
1899 func libc_setegid_trampoline() |
|
1900 |
|
1901 //go:linkname libc_setegid libc_setegid |
|
1902 //go:cgo_import_dynamic libc_setegid setegid "/usr/lib/libSystem.B.dylib" |
1409 |
1903 |
1410 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1904 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1411 |
1905 |
1412 func Seteuid(euid int) (err error) { |
1906 func Seteuid(euid int) (err error) { |
1413 _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) |
1907 _, _, e1 := syscall_rawSyscall(funcPC(libc_seteuid_trampoline), uintptr(euid), 0, 0) |
1414 if e1 != 0 { |
1908 if e1 != 0 { |
1415 err = errnoErr(e1) |
1909 err = errnoErr(e1) |
1416 } |
1910 } |
1417 return |
1911 return |
1418 } |
1912 } |
|
1913 |
|
1914 func libc_seteuid_trampoline() |
|
1915 |
|
1916 //go:linkname libc_seteuid libc_seteuid |
|
1917 //go:cgo_import_dynamic libc_seteuid seteuid "/usr/lib/libSystem.B.dylib" |
1419 |
1918 |
1420 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1919 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1421 |
1920 |
1422 func Setgid(gid int) (err error) { |
1921 func Setgid(gid int) (err error) { |
1423 _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) |
1922 _, _, e1 := syscall_rawSyscall(funcPC(libc_setgid_trampoline), uintptr(gid), 0, 0) |
1424 if e1 != 0 { |
1923 if e1 != 0 { |
1425 err = errnoErr(e1) |
1924 err = errnoErr(e1) |
1426 } |
1925 } |
1427 return |
1926 return |
1428 } |
1927 } |
|
1928 |
|
1929 func libc_setgid_trampoline() |
|
1930 |
|
1931 //go:linkname libc_setgid libc_setgid |
|
1932 //go:cgo_import_dynamic libc_setgid setgid "/usr/lib/libSystem.B.dylib" |
1429 |
1933 |
1430 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1934 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1431 |
1935 |
1432 func Setlogin(name string) (err error) { |
1936 func Setlogin(name string) (err error) { |
1433 var _p0 *byte |
1937 var _p0 *byte |
1434 _p0, err = BytePtrFromString(name) |
1938 _p0, err = BytePtrFromString(name) |
1435 if err != nil { |
1939 if err != nil { |
1436 return |
1940 return |
1437 } |
1941 } |
1438 _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) |
1942 _, _, e1 := syscall_syscall(funcPC(libc_setlogin_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0) |
1439 if e1 != 0 { |
1943 if e1 != 0 { |
1440 err = errnoErr(e1) |
1944 err = errnoErr(e1) |
1441 } |
1945 } |
1442 return |
1946 return |
1443 } |
1947 } |
|
1948 |
|
1949 func libc_setlogin_trampoline() |
|
1950 |
|
1951 //go:linkname libc_setlogin libc_setlogin |
|
1952 //go:cgo_import_dynamic libc_setlogin setlogin "/usr/lib/libSystem.B.dylib" |
1444 |
1953 |
1445 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1954 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1446 |
1955 |
1447 func Setpgid(pid int, pgid int) (err error) { |
1956 func Setpgid(pid int, pgid int) (err error) { |
1448 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) |
1957 _, _, e1 := syscall_rawSyscall(funcPC(libc_setpgid_trampoline), uintptr(pid), uintptr(pgid), 0) |
1449 if e1 != 0 { |
1958 if e1 != 0 { |
1450 err = errnoErr(e1) |
1959 err = errnoErr(e1) |
1451 } |
1960 } |
1452 return |
1961 return |
1453 } |
1962 } |
|
1963 |
|
1964 func libc_setpgid_trampoline() |
|
1965 |
|
1966 //go:linkname libc_setpgid libc_setpgid |
|
1967 //go:cgo_import_dynamic libc_setpgid setpgid "/usr/lib/libSystem.B.dylib" |
1454 |
1968 |
1455 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1969 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1456 |
1970 |
1457 func Setpriority(which int, who int, prio int) (err error) { |
1971 func Setpriority(which int, who int, prio int) (err error) { |
1458 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) |
1972 _, _, e1 := syscall_syscall(funcPC(libc_setpriority_trampoline), uintptr(which), uintptr(who), uintptr(prio)) |
1459 if e1 != 0 { |
1973 if e1 != 0 { |
1460 err = errnoErr(e1) |
1974 err = errnoErr(e1) |
1461 } |
1975 } |
1462 return |
1976 return |
1463 } |
1977 } |
|
1978 |
|
1979 func libc_setpriority_trampoline() |
|
1980 |
|
1981 //go:linkname libc_setpriority libc_setpriority |
|
1982 //go:cgo_import_dynamic libc_setpriority setpriority "/usr/lib/libSystem.B.dylib" |
1464 |
1983 |
1465 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1984 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1466 |
1985 |
1467 func Setprivexec(flag int) (err error) { |
1986 func Setprivexec(flag int) (err error) { |
1468 _, _, e1 := Syscall(SYS_SETPRIVEXEC, uintptr(flag), 0, 0) |
1987 _, _, e1 := syscall_syscall(funcPC(libc_setprivexec_trampoline), uintptr(flag), 0, 0) |
1469 if e1 != 0 { |
1988 if e1 != 0 { |
1470 err = errnoErr(e1) |
1989 err = errnoErr(e1) |
1471 } |
1990 } |
1472 return |
1991 return |
1473 } |
1992 } |
|
1993 |
|
1994 func libc_setprivexec_trampoline() |
|
1995 |
|
1996 //go:linkname libc_setprivexec libc_setprivexec |
|
1997 //go:cgo_import_dynamic libc_setprivexec setprivexec "/usr/lib/libSystem.B.dylib" |
1474 |
1998 |
1475 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1999 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1476 |
2000 |
1477 func Setregid(rgid int, egid int) (err error) { |
2001 func Setregid(rgid int, egid int) (err error) { |
1478 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) |
2002 _, _, e1 := syscall_rawSyscall(funcPC(libc_setregid_trampoline), uintptr(rgid), uintptr(egid), 0) |
1479 if e1 != 0 { |
2003 if e1 != 0 { |
1480 err = errnoErr(e1) |
2004 err = errnoErr(e1) |
1481 } |
2005 } |
1482 return |
2006 return |
1483 } |
2007 } |
|
2008 |
|
2009 func libc_setregid_trampoline() |
|
2010 |
|
2011 //go:linkname libc_setregid libc_setregid |
|
2012 //go:cgo_import_dynamic libc_setregid setregid "/usr/lib/libSystem.B.dylib" |
1484 |
2013 |
1485 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2014 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1486 |
2015 |
1487 func Setreuid(ruid int, euid int) (err error) { |
2016 func Setreuid(ruid int, euid int) (err error) { |
1488 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) |
2017 _, _, e1 := syscall_rawSyscall(funcPC(libc_setreuid_trampoline), uintptr(ruid), uintptr(euid), 0) |
1489 if e1 != 0 { |
2018 if e1 != 0 { |
1490 err = errnoErr(e1) |
2019 err = errnoErr(e1) |
1491 } |
2020 } |
1492 return |
2021 return |
1493 } |
2022 } |
|
2023 |
|
2024 func libc_setreuid_trampoline() |
|
2025 |
|
2026 //go:linkname libc_setreuid libc_setreuid |
|
2027 //go:cgo_import_dynamic libc_setreuid setreuid "/usr/lib/libSystem.B.dylib" |
1494 |
2028 |
1495 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2029 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1496 |
2030 |
1497 func Setrlimit(which int, lim *Rlimit) (err error) { |
2031 func Setrlimit(which int, lim *Rlimit) (err error) { |
1498 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) |
2032 _, _, e1 := syscall_rawSyscall(funcPC(libc_setrlimit_trampoline), uintptr(which), uintptr(unsafe.Pointer(lim)), 0) |
1499 if e1 != 0 { |
2033 if e1 != 0 { |
1500 err = errnoErr(e1) |
2034 err = errnoErr(e1) |
1501 } |
2035 } |
1502 return |
2036 return |
1503 } |
2037 } |
|
2038 |
|
2039 func libc_setrlimit_trampoline() |
|
2040 |
|
2041 //go:linkname libc_setrlimit libc_setrlimit |
|
2042 //go:cgo_import_dynamic libc_setrlimit setrlimit "/usr/lib/libSystem.B.dylib" |
1504 |
2043 |
1505 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2044 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1506 |
2045 |
1507 func Setsid() (pid int, err error) { |
2046 func Setsid() (pid int, err error) { |
1508 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) |
2047 r0, _, e1 := syscall_rawSyscall(funcPC(libc_setsid_trampoline), 0, 0, 0) |
1509 pid = int(r0) |
2048 pid = int(r0) |
1510 if e1 != 0 { |
2049 if e1 != 0 { |
1511 err = errnoErr(e1) |
2050 err = errnoErr(e1) |
1512 } |
2051 } |
1513 return |
2052 return |
1514 } |
2053 } |
1515 |
2054 |
|
2055 func libc_setsid_trampoline() |
|
2056 |
|
2057 //go:linkname libc_setsid libc_setsid |
|
2058 //go:cgo_import_dynamic libc_setsid setsid "/usr/lib/libSystem.B.dylib" |
|
2059 |
1516 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2060 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1517 |
2061 |
1518 func Settimeofday(tp *Timeval) (err error) { |
2062 func Settimeofday(tp *Timeval) (err error) { |
1519 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) |
2063 _, _, e1 := syscall_rawSyscall(funcPC(libc_settimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0) |
1520 if e1 != 0 { |
2064 if e1 != 0 { |
1521 err = errnoErr(e1) |
2065 err = errnoErr(e1) |
1522 } |
2066 } |
1523 return |
2067 return |
1524 } |
2068 } |
|
2069 |
|
2070 func libc_settimeofday_trampoline() |
|
2071 |
|
2072 //go:linkname libc_settimeofday libc_settimeofday |
|
2073 //go:cgo_import_dynamic libc_settimeofday settimeofday "/usr/lib/libSystem.B.dylib" |
1525 |
2074 |
1526 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2075 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1527 |
2076 |
1528 func Setuid(uid int) (err error) { |
2077 func Setuid(uid int) (err error) { |
1529 _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) |
2078 _, _, e1 := syscall_rawSyscall(funcPC(libc_setuid_trampoline), uintptr(uid), 0, 0) |
1530 if e1 != 0 { |
2079 if e1 != 0 { |
1531 err = errnoErr(e1) |
2080 err = errnoErr(e1) |
1532 } |
2081 } |
1533 return |
2082 return |
1534 } |
2083 } |
1535 |
2084 |
1536 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2085 func libc_setuid_trampoline() |
1537 |
2086 |
1538 func Stat(path string, stat *Stat_t) (err error) { |
2087 //go:linkname libc_setuid libc_setuid |
1539 var _p0 *byte |
2088 //go:cgo_import_dynamic libc_setuid setuid "/usr/lib/libSystem.B.dylib" |
1540 _p0, err = BytePtrFromString(path) |
|
1541 if err != nil { |
|
1542 return |
|
1543 } |
|
1544 _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) |
|
1545 if e1 != 0 { |
|
1546 err = errnoErr(e1) |
|
1547 } |
|
1548 return |
|
1549 } |
|
1550 |
|
1551 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
1552 |
|
1553 func Statfs(path string, stat *Statfs_t) (err error) { |
|
1554 var _p0 *byte |
|
1555 _p0, err = BytePtrFromString(path) |
|
1556 if err != nil { |
|
1557 return |
|
1558 } |
|
1559 _, _, e1 := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) |
|
1560 if e1 != 0 { |
|
1561 err = errnoErr(e1) |
|
1562 } |
|
1563 return |
|
1564 } |
|
1565 |
2089 |
1566 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2090 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1567 |
2091 |
1568 func Symlink(path string, link string) (err error) { |
2092 func Symlink(path string, link string) (err error) { |
1569 var _p0 *byte |
2093 var _p0 *byte |
1594 var _p1 *byte |
2123 var _p1 *byte |
1595 _p1, err = BytePtrFromString(newpath) |
2124 _p1, err = BytePtrFromString(newpath) |
1596 if err != nil { |
2125 if err != nil { |
1597 return |
2126 return |
1598 } |
2127 } |
1599 _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) |
2128 _, _, e1 := syscall_syscall(funcPC(libc_symlinkat_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) |
1600 if e1 != 0 { |
2129 if e1 != 0 { |
1601 err = errnoErr(e1) |
2130 err = errnoErr(e1) |
1602 } |
2131 } |
1603 return |
2132 return |
1604 } |
2133 } |
|
2134 |
|
2135 func libc_symlinkat_trampoline() |
|
2136 |
|
2137 //go:linkname libc_symlinkat libc_symlinkat |
|
2138 //go:cgo_import_dynamic libc_symlinkat symlinkat "/usr/lib/libSystem.B.dylib" |
1605 |
2139 |
1606 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2140 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1607 |
2141 |
1608 func Sync() (err error) { |
2142 func Sync() (err error) { |
1609 _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) |
2143 _, _, e1 := syscall_syscall(funcPC(libc_sync_trampoline), 0, 0, 0) |
1610 if e1 != 0 { |
2144 if e1 != 0 { |
1611 err = errnoErr(e1) |
2145 err = errnoErr(e1) |
1612 } |
2146 } |
1613 return |
2147 return |
1614 } |
2148 } |
|
2149 |
|
2150 func libc_sync_trampoline() |
|
2151 |
|
2152 //go:linkname libc_sync libc_sync |
|
2153 //go:cgo_import_dynamic libc_sync sync "/usr/lib/libSystem.B.dylib" |
1615 |
2154 |
1616 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2155 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1617 |
2156 |
1618 func Truncate(path string, length int64) (err error) { |
2157 func Truncate(path string, length int64) (err error) { |
1619 var _p0 *byte |
2158 var _p0 *byte |
1620 _p0, err = BytePtrFromString(path) |
2159 _p0, err = BytePtrFromString(path) |
1621 if err != nil { |
2160 if err != nil { |
1622 return |
2161 return |
1623 } |
2162 } |
1624 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), uintptr(length>>32)) |
2163 _, _, e1 := syscall_syscall(funcPC(libc_truncate_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(length), uintptr(length>>32)) |
1625 if e1 != 0 { |
2164 if e1 != 0 { |
1626 err = errnoErr(e1) |
2165 err = errnoErr(e1) |
1627 } |
2166 } |
1628 return |
2167 return |
1629 } |
2168 } |
|
2169 |
|
2170 func libc_truncate_trampoline() |
|
2171 |
|
2172 //go:linkname libc_truncate libc_truncate |
|
2173 //go:cgo_import_dynamic libc_truncate truncate "/usr/lib/libSystem.B.dylib" |
1630 |
2174 |
1631 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2175 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1632 |
2176 |
1633 func Umask(newmask int) (oldmask int) { |
2177 func Umask(newmask int) (oldmask int) { |
1634 r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) |
2178 r0, _, _ := syscall_syscall(funcPC(libc_umask_trampoline), uintptr(newmask), 0, 0) |
1635 oldmask = int(r0) |
2179 oldmask = int(r0) |
1636 return |
2180 return |
1637 } |
2181 } |
1638 |
2182 |
|
2183 func libc_umask_trampoline() |
|
2184 |
|
2185 //go:linkname libc_umask libc_umask |
|
2186 //go:cgo_import_dynamic libc_umask umask "/usr/lib/libSystem.B.dylib" |
|
2187 |
1639 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2188 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1640 |
2189 |
1641 func Undelete(path string) (err error) { |
2190 func Undelete(path string) (err error) { |
1642 var _p0 *byte |
2191 var _p0 *byte |
1643 _p0, err = BytePtrFromString(path) |
2192 _p0, err = BytePtrFromString(path) |
1644 if err != nil { |
2193 if err != nil { |
1645 return |
2194 return |
1646 } |
2195 } |
1647 _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0) |
2196 _, _, e1 := syscall_syscall(funcPC(libc_undelete_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0) |
1648 if e1 != 0 { |
2197 if e1 != 0 { |
1649 err = errnoErr(e1) |
2198 err = errnoErr(e1) |
1650 } |
2199 } |
1651 return |
2200 return |
1652 } |
2201 } |
|
2202 |
|
2203 func libc_undelete_trampoline() |
|
2204 |
|
2205 //go:linkname libc_undelete libc_undelete |
|
2206 //go:cgo_import_dynamic libc_undelete undelete "/usr/lib/libSystem.B.dylib" |
1653 |
2207 |
1654 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2208 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1655 |
2209 |
1656 func Unlink(path string) (err error) { |
2210 func Unlink(path string) (err error) { |
1657 var _p0 *byte |
2211 var _p0 *byte |
1658 _p0, err = BytePtrFromString(path) |
2212 _p0, err = BytePtrFromString(path) |
1659 if err != nil { |
2213 if err != nil { |
1660 return |
2214 return |
1661 } |
2215 } |
1662 _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) |
2216 _, _, e1 := syscall_syscall(funcPC(libc_unlink_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0) |
1663 if e1 != 0 { |
2217 if e1 != 0 { |
1664 err = errnoErr(e1) |
2218 err = errnoErr(e1) |
1665 } |
2219 } |
1666 return |
2220 return |
1667 } |
2221 } |
|
2222 |
|
2223 func libc_unlink_trampoline() |
|
2224 |
|
2225 //go:linkname libc_unlink libc_unlink |
|
2226 //go:cgo_import_dynamic libc_unlink unlink "/usr/lib/libSystem.B.dylib" |
1668 |
2227 |
1669 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2228 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1670 |
2229 |
1671 func Unlinkat(dirfd int, path string, flags int) (err error) { |
2230 func Unlinkat(dirfd int, path string, flags int) (err error) { |
1672 var _p0 *byte |
2231 var _p0 *byte |
1673 _p0, err = BytePtrFromString(path) |
2232 _p0, err = BytePtrFromString(path) |
1674 if err != nil { |
2233 if err != nil { |
1675 return |
2234 return |
1676 } |
2235 } |
1677 _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) |
2236 _, _, e1 := syscall_syscall(funcPC(libc_unlinkat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) |
1678 if e1 != 0 { |
2237 if e1 != 0 { |
1679 err = errnoErr(e1) |
2238 err = errnoErr(e1) |
1680 } |
2239 } |
1681 return |
2240 return |
1682 } |
2241 } |
|
2242 |
|
2243 func libc_unlinkat_trampoline() |
|
2244 |
|
2245 //go:linkname libc_unlinkat libc_unlinkat |
|
2246 //go:cgo_import_dynamic libc_unlinkat unlinkat "/usr/lib/libSystem.B.dylib" |
1683 |
2247 |
1684 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2248 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1685 |
2249 |
1686 func Unmount(path string, flags int) (err error) { |
2250 func Unmount(path string, flags int) (err error) { |
1687 var _p0 *byte |
2251 var _p0 *byte |
1688 _p0, err = BytePtrFromString(path) |
2252 _p0, err = BytePtrFromString(path) |
1689 if err != nil { |
2253 if err != nil { |
1690 return |
2254 return |
1691 } |
2255 } |
1692 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) |
2256 _, _, e1 := syscall_syscall(funcPC(libc_unmount_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) |
1693 if e1 != 0 { |
2257 if e1 != 0 { |
1694 err = errnoErr(e1) |
2258 err = errnoErr(e1) |
1695 } |
2259 } |
1696 return |
2260 return |
1697 } |
2261 } |
|
2262 |
|
2263 func libc_unmount_trampoline() |
|
2264 |
|
2265 //go:linkname libc_unmount libc_unmount |
|
2266 //go:cgo_import_dynamic libc_unmount unmount "/usr/lib/libSystem.B.dylib" |
1698 |
2267 |
1699 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2268 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1700 |
2269 |
1701 func write(fd int, p []byte) (n int, err error) { |
2270 func write(fd int, p []byte) (n int, err error) { |
1702 var _p0 unsafe.Pointer |
2271 var _p0 unsafe.Pointer |
1703 if len(p) > 0 { |
2272 if len(p) > 0 { |
1704 _p0 = unsafe.Pointer(&p[0]) |
2273 _p0 = unsafe.Pointer(&p[0]) |
1705 } else { |
2274 } else { |
1706 _p0 = unsafe.Pointer(&_zero) |
2275 _p0 = unsafe.Pointer(&_zero) |
1707 } |
2276 } |
1708 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) |
2277 r0, _, e1 := syscall_syscall(funcPC(libc_write_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p))) |
1709 n = int(r0) |
2278 n = int(r0) |
1710 if e1 != 0 { |
2279 if e1 != 0 { |
1711 err = errnoErr(e1) |
2280 err = errnoErr(e1) |
1712 } |
2281 } |
1713 return |
2282 return |
1714 } |
2283 } |
1715 |
2284 |
|
2285 func libc_write_trampoline() |
|
2286 |
|
2287 //go:linkname libc_write libc_write |
|
2288 //go:cgo_import_dynamic libc_write write "/usr/lib/libSystem.B.dylib" |
|
2289 |
1716 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2290 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1717 |
2291 |
1718 func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { |
2292 func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { |
1719 r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos), uintptr(pos>>32), 0, 0) |
2293 r0, _, e1 := syscall_syscall9(funcPC(libc_mmap_trampoline), uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos), uintptr(pos>>32), 0, 0) |
1720 ret = uintptr(r0) |
2294 ret = uintptr(r0) |
1721 if e1 != 0 { |
2295 if e1 != 0 { |
1722 err = errnoErr(e1) |
2296 err = errnoErr(e1) |
1723 } |
2297 } |
1724 return |
2298 return |
1725 } |
2299 } |
1726 |
2300 |
|
2301 func libc_mmap_trampoline() |
|
2302 |
|
2303 //go:linkname libc_mmap libc_mmap |
|
2304 //go:cgo_import_dynamic libc_mmap mmap "/usr/lib/libSystem.B.dylib" |
|
2305 |
1727 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2306 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1728 |
2307 |
1729 func munmap(addr uintptr, length uintptr) (err error) { |
2308 func munmap(addr uintptr, length uintptr) (err error) { |
1730 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) |
2309 _, _, e1 := syscall_syscall(funcPC(libc_munmap_trampoline), uintptr(addr), uintptr(length), 0) |
1731 if e1 != 0 { |
2310 if e1 != 0 { |
1732 err = errnoErr(e1) |
2311 err = errnoErr(e1) |
1733 } |
2312 } |
1734 return |
2313 return |
1735 } |
2314 } |
|
2315 |
|
2316 func libc_munmap_trampoline() |
|
2317 |
|
2318 //go:linkname libc_munmap libc_munmap |
|
2319 //go:cgo_import_dynamic libc_munmap munmap "/usr/lib/libSystem.B.dylib" |
1736 |
2320 |
1737 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2321 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1738 |
2322 |
1739 func readlen(fd int, buf *byte, nbuf int) (n int, err error) { |
2323 func readlen(fd int, buf *byte, nbuf int) (n int, err error) { |
1740 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) |
2324 r0, _, e1 := syscall_syscall(funcPC(libc_read_trampoline), uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) |
1741 n = int(r0) |
2325 n = int(r0) |
1742 if e1 != 0 { |
2326 if e1 != 0 { |
1743 err = errnoErr(e1) |
2327 err = errnoErr(e1) |
1744 } |
2328 } |
1745 return |
2329 return |
1746 } |
2330 } |
1747 |
2331 |
1748 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2332 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1749 |
2333 |
1750 func writelen(fd int, buf *byte, nbuf int) (n int, err error) { |
2334 func writelen(fd int, buf *byte, nbuf int) (n int, err error) { |
1751 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) |
2335 r0, _, e1 := syscall_syscall(funcPC(libc_write_trampoline), uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) |
1752 n = int(r0) |
2336 n = int(r0) |
1753 if e1 != 0 { |
2337 if e1 != 0 { |
1754 err = errnoErr(e1) |
2338 err = errnoErr(e1) |
1755 } |
2339 } |
1756 return |
2340 return |
1757 } |
2341 } |
1758 |
2342 |
1759 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2343 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1760 |
2344 |
1761 func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) { |
2345 func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) { |
1762 r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) |
2346 r0, r1, e1 := syscall_rawSyscall(funcPC(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0) |
1763 sec = int32(r0) |
2347 sec = int32(r0) |
1764 usec = int32(r1) |
2348 usec = int32(r1) |
1765 if e1 != 0 { |
2349 if e1 != 0 { |
1766 err = errnoErr(e1) |
2350 err = errnoErr(e1) |
1767 } |
2351 } |
1768 return |
2352 return |
1769 } |
2353 } |
|
2354 |
|
2355 func libc_gettimeofday_trampoline() |
|
2356 |
|
2357 //go:linkname libc_gettimeofday libc_gettimeofday |
|
2358 //go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib" |
|
2359 |
|
2360 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
2361 |
|
2362 func Fstat(fd int, stat *Stat_t) (err error) { |
|
2363 _, _, e1 := syscall_syscall(funcPC(libc_fstat_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) |
|
2364 if e1 != 0 { |
|
2365 err = errnoErr(e1) |
|
2366 } |
|
2367 return |
|
2368 } |
|
2369 |
|
2370 func libc_fstat_trampoline() |
|
2371 |
|
2372 //go:linkname libc_fstat libc_fstat |
|
2373 //go:cgo_import_dynamic libc_fstat fstat "/usr/lib/libSystem.B.dylib" |
|
2374 |
|
2375 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
2376 |
|
2377 func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { |
|
2378 var _p0 *byte |
|
2379 _p0, err = BytePtrFromString(path) |
|
2380 if err != nil { |
|
2381 return |
|
2382 } |
|
2383 _, _, e1 := syscall_syscall6(funcPC(libc_fstatat_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) |
|
2384 if e1 != 0 { |
|
2385 err = errnoErr(e1) |
|
2386 } |
|
2387 return |
|
2388 } |
|
2389 |
|
2390 func libc_fstatat_trampoline() |
|
2391 |
|
2392 //go:linkname libc_fstatat libc_fstatat |
|
2393 //go:cgo_import_dynamic libc_fstatat fstatat "/usr/lib/libSystem.B.dylib" |
|
2394 |
|
2395 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
2396 |
|
2397 func Fstatfs(fd int, stat *Statfs_t) (err error) { |
|
2398 _, _, e1 := syscall_syscall(funcPC(libc_fstatfs_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) |
|
2399 if e1 != 0 { |
|
2400 err = errnoErr(e1) |
|
2401 } |
|
2402 return |
|
2403 } |
|
2404 |
|
2405 func libc_fstatfs_trampoline() |
|
2406 |
|
2407 //go:linkname libc_fstatfs libc_fstatfs |
|
2408 //go:cgo_import_dynamic libc_fstatfs fstatfs "/usr/lib/libSystem.B.dylib" |
|
2409 |
|
2410 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
2411 |
|
2412 func getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) { |
|
2413 r0, _, e1 := syscall_syscall(funcPC(libc_getfsstat_trampoline), uintptr(buf), uintptr(size), uintptr(flags)) |
|
2414 n = int(r0) |
|
2415 if e1 != 0 { |
|
2416 err = errnoErr(e1) |
|
2417 } |
|
2418 return |
|
2419 } |
|
2420 |
|
2421 func libc_getfsstat_trampoline() |
|
2422 |
|
2423 //go:linkname libc_getfsstat libc_getfsstat |
|
2424 //go:cgo_import_dynamic libc_getfsstat getfsstat "/usr/lib/libSystem.B.dylib" |
|
2425 |
|
2426 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
2427 |
|
2428 func Lstat(path string, stat *Stat_t) (err error) { |
|
2429 var _p0 *byte |
|
2430 _p0, err = BytePtrFromString(path) |
|
2431 if err != nil { |
|
2432 return |
|
2433 } |
|
2434 _, _, e1 := syscall_syscall(funcPC(libc_lstat_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) |
|
2435 if e1 != 0 { |
|
2436 err = errnoErr(e1) |
|
2437 } |
|
2438 return |
|
2439 } |
|
2440 |
|
2441 func libc_lstat_trampoline() |
|
2442 |
|
2443 //go:linkname libc_lstat libc_lstat |
|
2444 //go:cgo_import_dynamic libc_lstat lstat "/usr/lib/libSystem.B.dylib" |
|
2445 |
|
2446 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
2447 |
|
2448 func Stat(path string, stat *Stat_t) (err error) { |
|
2449 var _p0 *byte |
|
2450 _p0, err = BytePtrFromString(path) |
|
2451 if err != nil { |
|
2452 return |
|
2453 } |
|
2454 _, _, e1 := syscall_syscall(funcPC(libc_stat_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) |
|
2455 if e1 != 0 { |
|
2456 err = errnoErr(e1) |
|
2457 } |
|
2458 return |
|
2459 } |
|
2460 |
|
2461 func libc_stat_trampoline() |
|
2462 |
|
2463 //go:linkname libc_stat libc_stat |
|
2464 //go:cgo_import_dynamic libc_stat stat "/usr/lib/libSystem.B.dylib" |
|
2465 |
|
2466 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
2467 |
|
2468 func Statfs(path string, stat *Statfs_t) (err error) { |
|
2469 var _p0 *byte |
|
2470 _p0, err = BytePtrFromString(path) |
|
2471 if err != nil { |
|
2472 return |
|
2473 } |
|
2474 _, _, e1 := syscall_syscall(funcPC(libc_statfs_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) |
|
2475 if e1 != 0 { |
|
2476 err = errnoErr(e1) |
|
2477 } |
|
2478 return |
|
2479 } |
|
2480 |
|
2481 func libc_statfs_trampoline() |
|
2482 |
|
2483 //go:linkname libc_statfs libc_statfs |
|
2484 //go:cgo_import_dynamic libc_statfs statfs "/usr/lib/libSystem.B.dylib" |