]> Cypherpunks.ru repositories - gostls13.git/blob - src/syscall/zsyscall_darwin_arm64.go
76dbe11933864e8572e362f82f861fc1d26aab87
[gostls13.git] / src / syscall / zsyscall_darwin_arm64.go
1 // mksyscall.pl -darwin -tags darwin,arm64 syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.go
2 // Code generated by the command above; DO NOT EDIT.
3
4 //go:build darwin && arm64
5
6 package syscall
7
8 import "unsafe"
9 import "internal/abi"
10
11 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
12
13 func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
14         r0, _, e1 := rawSyscall(abi.FuncPCABI0(libc_getgroups_trampoline), uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
15         n = int(r0)
16         if e1 != 0 {
17                 err = errnoErr(e1)
18         }
19         return
20 }
21
22 func libc_getgroups_trampoline()
23
24 //go:cgo_import_dynamic libc_getgroups getgroups "/usr/lib/libSystem.B.dylib"
25
26 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
27
28 func setgroups(ngid int, gid *_Gid_t) (err error) {
29         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setgroups_trampoline), uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
30         if e1 != 0 {
31                 err = errnoErr(e1)
32         }
33         return
34 }
35
36 func libc_setgroups_trampoline()
37
38 //go:cgo_import_dynamic libc_setgroups setgroups "/usr/lib/libSystem.B.dylib"
39
40 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
41
42 func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
43         r0, _, e1 := syscall6(abi.FuncPCABI0(libc_wait4_trampoline), uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
44         wpid = int(r0)
45         if e1 != 0 {
46                 err = errnoErr(e1)
47         }
48         return
49 }
50
51 func libc_wait4_trampoline()
52
53 //go:cgo_import_dynamic libc_wait4 wait4 "/usr/lib/libSystem.B.dylib"
54
55 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
56
57 func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
58         r0, _, e1 := syscall(abi.FuncPCABI0(libc_accept_trampoline), uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
59         fd = int(r0)
60         if e1 != 0 {
61                 err = errnoErr(e1)
62         }
63         return
64 }
65
66 func libc_accept_trampoline()
67
68 //go:cgo_import_dynamic libc_accept accept "/usr/lib/libSystem.B.dylib"
69
70 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
71
72 func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
73         _, _, e1 := syscall(abi.FuncPCABI0(libc_bind_trampoline), uintptr(s), uintptr(addr), uintptr(addrlen))
74         if e1 != 0 {
75                 err = errnoErr(e1)
76         }
77         return
78 }
79
80 func libc_bind_trampoline()
81
82 //go:cgo_import_dynamic libc_bind bind "/usr/lib/libSystem.B.dylib"
83
84 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
85
86 func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
87         _, _, e1 := syscall(abi.FuncPCABI0(libc_connect_trampoline), uintptr(s), uintptr(addr), uintptr(addrlen))
88         if e1 != 0 {
89                 err = errnoErr(e1)
90         }
91         return
92 }
93
94 func libc_connect_trampoline()
95
96 //go:cgo_import_dynamic libc_connect connect "/usr/lib/libSystem.B.dylib"
97
98 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
99
100 func socket(domain int, typ int, proto int) (fd int, err error) {
101         r0, _, e1 := rawSyscall(abi.FuncPCABI0(libc_socket_trampoline), uintptr(domain), uintptr(typ), uintptr(proto))
102         fd = int(r0)
103         if e1 != 0 {
104                 err = errnoErr(e1)
105         }
106         return
107 }
108
109 func libc_socket_trampoline()
110
111 //go:cgo_import_dynamic libc_socket socket "/usr/lib/libSystem.B.dylib"
112
113 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
114
115 func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
116         _, _, e1 := syscall6(abi.FuncPCABI0(libc_getsockopt_trampoline), uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
117         if e1 != 0 {
118                 err = errnoErr(e1)
119         }
120         return
121 }
122
123 func libc_getsockopt_trampoline()
124
125 //go:cgo_import_dynamic libc_getsockopt getsockopt "/usr/lib/libSystem.B.dylib"
126
127 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
128
129 func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
130         _, _, e1 := syscall6(abi.FuncPCABI0(libc_setsockopt_trampoline), uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
131         if e1 != 0 {
132                 err = errnoErr(e1)
133         }
134         return
135 }
136
137 func libc_setsockopt_trampoline()
138
139 //go:cgo_import_dynamic libc_setsockopt setsockopt "/usr/lib/libSystem.B.dylib"
140
141 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
142
143 func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
144         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_getpeername_trampoline), uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
145         if e1 != 0 {
146                 err = errnoErr(e1)
147         }
148         return
149 }
150
151 func libc_getpeername_trampoline()
152
153 //go:cgo_import_dynamic libc_getpeername getpeername "/usr/lib/libSystem.B.dylib"
154
155 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
156
157 func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
158         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_getsockname_trampoline), uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
159         if e1 != 0 {
160                 err = errnoErr(e1)
161         }
162         return
163 }
164
165 func libc_getsockname_trampoline()
166
167 //go:cgo_import_dynamic libc_getsockname getsockname "/usr/lib/libSystem.B.dylib"
168
169 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
170
171 func Shutdown(s int, how int) (err error) {
172         _, _, e1 := syscall(abi.FuncPCABI0(libc_shutdown_trampoline), uintptr(s), uintptr(how), 0)
173         if e1 != 0 {
174                 err = errnoErr(e1)
175         }
176         return
177 }
178
179 func libc_shutdown_trampoline()
180
181 //go:cgo_import_dynamic libc_shutdown shutdown "/usr/lib/libSystem.B.dylib"
182
183 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
184
185 func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
186         _, _, e1 := rawSyscall6(abi.FuncPCABI0(libc_socketpair_trampoline), uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
187         if e1 != 0 {
188                 err = errnoErr(e1)
189         }
190         return
191 }
192
193 func libc_socketpair_trampoline()
194
195 //go:cgo_import_dynamic libc_socketpair socketpair "/usr/lib/libSystem.B.dylib"
196
197 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
198
199 func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
200         var _p0 unsafe.Pointer
201         if len(p) > 0 {
202                 _p0 = unsafe.Pointer(&p[0])
203         } else {
204                 _p0 = unsafe.Pointer(&_zero)
205         }
206         r0, _, e1 := syscall6(abi.FuncPCABI0(libc_recvfrom_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
207         n = int(r0)
208         if e1 != 0 {
209                 err = errnoErr(e1)
210         }
211         return
212 }
213
214 func libc_recvfrom_trampoline()
215
216 //go:cgo_import_dynamic libc_recvfrom recvfrom "/usr/lib/libSystem.B.dylib"
217
218 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
219
220 func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
221         var _p0 unsafe.Pointer
222         if len(buf) > 0 {
223                 _p0 = unsafe.Pointer(&buf[0])
224         } else {
225                 _p0 = unsafe.Pointer(&_zero)
226         }
227         _, _, e1 := syscall6(abi.FuncPCABI0(libc_sendto_trampoline), uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
228         if e1 != 0 {
229                 err = errnoErr(e1)
230         }
231         return
232 }
233
234 func libc_sendto_trampoline()
235
236 //go:cgo_import_dynamic libc_sendto sendto "/usr/lib/libSystem.B.dylib"
237
238 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
239
240 func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
241         r0, _, e1 := syscall(abi.FuncPCABI0(libc_recvmsg_trampoline), uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
242         n = int(r0)
243         if e1 != 0 {
244                 err = errnoErr(e1)
245         }
246         return
247 }
248
249 func libc_recvmsg_trampoline()
250
251 //go:cgo_import_dynamic libc_recvmsg recvmsg "/usr/lib/libSystem.B.dylib"
252
253 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
254
255 func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
256         r0, _, e1 := syscall(abi.FuncPCABI0(libc_sendmsg_trampoline), uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
257         n = int(r0)
258         if e1 != 0 {
259                 err = errnoErr(e1)
260         }
261         return
262 }
263
264 func libc_sendmsg_trampoline()
265
266 //go:cgo_import_dynamic libc_sendmsg sendmsg "/usr/lib/libSystem.B.dylib"
267
268 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
269
270 func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
271         r0, _, e1 := syscall6(abi.FuncPCABI0(libc_kevent_trampoline), uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
272         n = int(r0)
273         if e1 != 0 {
274                 err = errnoErr(e1)
275         }
276         return
277 }
278
279 func libc_kevent_trampoline()
280
281 //go:cgo_import_dynamic libc_kevent kevent "/usr/lib/libSystem.B.dylib"
282
283 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
284
285 func utimes(path string, timeval *[2]Timeval) (err error) {
286         var _p0 *byte
287         _p0, err = BytePtrFromString(path)
288         if err != nil {
289                 return
290         }
291         _, _, e1 := syscall(abi.FuncPCABI0(libc_utimes_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
292         if e1 != 0 {
293                 err = errnoErr(e1)
294         }
295         return
296 }
297
298 func libc_utimes_trampoline()
299
300 //go:cgo_import_dynamic libc_utimes utimes "/usr/lib/libSystem.B.dylib"
301
302 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
303
304 func futimes(fd int, timeval *[2]Timeval) (err error) {
305         _, _, e1 := syscall(abi.FuncPCABI0(libc_futimes_trampoline), uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
306         if e1 != 0 {
307                 err = errnoErr(e1)
308         }
309         return
310 }
311
312 func libc_futimes_trampoline()
313
314 //go:cgo_import_dynamic libc_futimes futimes "/usr/lib/libSystem.B.dylib"
315
316 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
317
318 func fcntl(fd int, cmd int, arg int) (val int, err error) {
319         r0, _, e1 := syscall(abi.FuncPCABI0(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
320         val = int(r0)
321         if e1 != 0 {
322                 err = errnoErr(e1)
323         }
324         return
325 }
326
327 func libc_fcntl_trampoline()
328
329 //go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
330
331 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
332
333 func fcntlPtr(fd int, cmd int, arg unsafe.Pointer) (val int, err error) {
334         r0, _, e1 := syscall(abi.FuncPCABI0(libc_fcntl_trampoline), uintptr(fd), uintptr(cmd), uintptr(arg))
335         val = int(r0)
336         if e1 != 0 {
337                 err = errnoErr(e1)
338         }
339         return
340 }
341
342 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
343
344 func pipe(p *[2]int32) (err error) {
345         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_pipe_trampoline), uintptr(unsafe.Pointer(p)), 0, 0)
346         if e1 != 0 {
347                 err = errnoErr(e1)
348         }
349         return
350 }
351
352 func libc_pipe_trampoline()
353
354 //go:cgo_import_dynamic libc_pipe pipe "/usr/lib/libSystem.B.dylib"
355
356 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
357
358 func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
359         var _p0 *byte
360         _p0, err = BytePtrFromString(path)
361         if err != nil {
362                 return
363         }
364         _, _, e1 := syscall6(abi.FuncPCABI0(libc_utimensat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
365         if e1 != 0 {
366                 err = errnoErr(e1)
367         }
368         return
369 }
370
371 func libc_utimensat_trampoline()
372
373 //go:cgo_import_dynamic libc_utimensat utimensat "/usr/lib/libSystem.B.dylib"
374
375 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
376
377 func kill(pid int, signum int, posix int) (err error) {
378         _, _, e1 := syscall(abi.FuncPCABI0(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix))
379         if e1 != 0 {
380                 err = errnoErr(e1)
381         }
382         return
383 }
384
385 func libc_kill_trampoline()
386
387 //go:cgo_import_dynamic libc_kill kill "/usr/lib/libSystem.B.dylib"
388
389 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
390
391 func Access(path string, mode uint32) (err error) {
392         var _p0 *byte
393         _p0, err = BytePtrFromString(path)
394         if err != nil {
395                 return
396         }
397         _, _, e1 := syscall(abi.FuncPCABI0(libc_access_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
398         if e1 != 0 {
399                 err = errnoErr(e1)
400         }
401         return
402 }
403
404 func libc_access_trampoline()
405
406 //go:cgo_import_dynamic libc_access access "/usr/lib/libSystem.B.dylib"
407
408 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
409
410 func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
411         _, _, e1 := syscall(abi.FuncPCABI0(libc_adjtime_trampoline), uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
412         if e1 != 0 {
413                 err = errnoErr(e1)
414         }
415         return
416 }
417
418 func libc_adjtime_trampoline()
419
420 //go:cgo_import_dynamic libc_adjtime adjtime "/usr/lib/libSystem.B.dylib"
421
422 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
423
424 func Chdir(path string) (err error) {
425         var _p0 *byte
426         _p0, err = BytePtrFromString(path)
427         if err != nil {
428                 return
429         }
430         _, _, e1 := syscall(abi.FuncPCABI0(libc_chdir_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
431         if e1 != 0 {
432                 err = errnoErr(e1)
433         }
434         return
435 }
436
437 func libc_chdir_trampoline()
438
439 //go:cgo_import_dynamic libc_chdir chdir "/usr/lib/libSystem.B.dylib"
440
441 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
442
443 func Chflags(path string, flags int) (err error) {
444         var _p0 *byte
445         _p0, err = BytePtrFromString(path)
446         if err != nil {
447                 return
448         }
449         _, _, e1 := syscall(abi.FuncPCABI0(libc_chflags_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
450         if e1 != 0 {
451                 err = errnoErr(e1)
452         }
453         return
454 }
455
456 func libc_chflags_trampoline()
457
458 //go:cgo_import_dynamic libc_chflags chflags "/usr/lib/libSystem.B.dylib"
459
460 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
461
462 func Chmod(path string, mode uint32) (err error) {
463         var _p0 *byte
464         _p0, err = BytePtrFromString(path)
465         if err != nil {
466                 return
467         }
468         _, _, e1 := syscall(abi.FuncPCABI0(libc_chmod_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
469         if e1 != 0 {
470                 err = errnoErr(e1)
471         }
472         return
473 }
474
475 func libc_chmod_trampoline()
476
477 //go:cgo_import_dynamic libc_chmod chmod "/usr/lib/libSystem.B.dylib"
478
479 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
480
481 func Chown(path string, uid int, gid int) (err error) {
482         var _p0 *byte
483         _p0, err = BytePtrFromString(path)
484         if err != nil {
485                 return
486         }
487         _, _, e1 := syscall(abi.FuncPCABI0(libc_chown_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
488         if e1 != 0 {
489                 err = errnoErr(e1)
490         }
491         return
492 }
493
494 func libc_chown_trampoline()
495
496 //go:cgo_import_dynamic libc_chown chown "/usr/lib/libSystem.B.dylib"
497
498 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
499
500 func Chroot(path string) (err error) {
501         var _p0 *byte
502         _p0, err = BytePtrFromString(path)
503         if err != nil {
504                 return
505         }
506         _, _, e1 := syscall(abi.FuncPCABI0(libc_chroot_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
507         if e1 != 0 {
508                 err = errnoErr(e1)
509         }
510         return
511 }
512
513 func libc_chroot_trampoline()
514
515 //go:cgo_import_dynamic libc_chroot chroot "/usr/lib/libSystem.B.dylib"
516
517 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
518
519 func Close(fd int) (err error) {
520         _, _, e1 := syscall(abi.FuncPCABI0(libc_close_trampoline), uintptr(fd), 0, 0)
521         if e1 != 0 {
522                 err = errnoErr(e1)
523         }
524         return
525 }
526
527 func libc_close_trampoline()
528
529 //go:cgo_import_dynamic libc_close close "/usr/lib/libSystem.B.dylib"
530
531 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
532
533 func closedir(dir uintptr) (err error) {
534         _, _, e1 := syscall(abi.FuncPCABI0(libc_closedir_trampoline), uintptr(dir), 0, 0)
535         if e1 != 0 {
536                 err = errnoErr(e1)
537         }
538         return
539 }
540
541 func libc_closedir_trampoline()
542
543 //go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
544
545 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
546
547 func Dup(fd int) (nfd int, err error) {
548         r0, _, e1 := syscall(abi.FuncPCABI0(libc_dup_trampoline), uintptr(fd), 0, 0)
549         nfd = int(r0)
550         if e1 != 0 {
551                 err = errnoErr(e1)
552         }
553         return
554 }
555
556 func libc_dup_trampoline()
557
558 //go:cgo_import_dynamic libc_dup dup "/usr/lib/libSystem.B.dylib"
559
560 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
561
562 func Dup2(from int, to int) (err error) {
563         _, _, e1 := syscall(abi.FuncPCABI0(libc_dup2_trampoline), uintptr(from), uintptr(to), 0)
564         if e1 != 0 {
565                 err = errnoErr(e1)
566         }
567         return
568 }
569
570 func libc_dup2_trampoline()
571
572 //go:cgo_import_dynamic libc_dup2 dup2 "/usr/lib/libSystem.B.dylib"
573
574 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
575
576 func Exchangedata(path1 string, path2 string, options int) (err error) {
577         var _p0 *byte
578         _p0, err = BytePtrFromString(path1)
579         if err != nil {
580                 return
581         }
582         var _p1 *byte
583         _p1, err = BytePtrFromString(path2)
584         if err != nil {
585                 return
586         }
587         _, _, e1 := syscall(abi.FuncPCABI0(libc_exchangedata_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
588         if e1 != 0 {
589                 err = errnoErr(e1)
590         }
591         return
592 }
593
594 func libc_exchangedata_trampoline()
595
596 //go:cgo_import_dynamic libc_exchangedata exchangedata "/usr/lib/libSystem.B.dylib"
597
598 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
599
600 func Fchdir(fd int) (err error) {
601         _, _, e1 := syscall(abi.FuncPCABI0(libc_fchdir_trampoline), uintptr(fd), 0, 0)
602         if e1 != 0 {
603                 err = errnoErr(e1)
604         }
605         return
606 }
607
608 func libc_fchdir_trampoline()
609
610 //go:cgo_import_dynamic libc_fchdir fchdir "/usr/lib/libSystem.B.dylib"
611
612 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
613
614 func Fchflags(fd int, flags int) (err error) {
615         _, _, e1 := syscall(abi.FuncPCABI0(libc_fchflags_trampoline), uintptr(fd), uintptr(flags), 0)
616         if e1 != 0 {
617                 err = errnoErr(e1)
618         }
619         return
620 }
621
622 func libc_fchflags_trampoline()
623
624 //go:cgo_import_dynamic libc_fchflags fchflags "/usr/lib/libSystem.B.dylib"
625
626 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
627
628 func Fchmod(fd int, mode uint32) (err error) {
629         _, _, e1 := syscall(abi.FuncPCABI0(libc_fchmod_trampoline), uintptr(fd), uintptr(mode), 0)
630         if e1 != 0 {
631                 err = errnoErr(e1)
632         }
633         return
634 }
635
636 func libc_fchmod_trampoline()
637
638 //go:cgo_import_dynamic libc_fchmod fchmod "/usr/lib/libSystem.B.dylib"
639
640 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
641
642 func Fchown(fd int, uid int, gid int) (err error) {
643         _, _, e1 := syscall(abi.FuncPCABI0(libc_fchown_trampoline), uintptr(fd), uintptr(uid), uintptr(gid))
644         if e1 != 0 {
645                 err = errnoErr(e1)
646         }
647         return
648 }
649
650 func libc_fchown_trampoline()
651
652 //go:cgo_import_dynamic libc_fchown fchown "/usr/lib/libSystem.B.dylib"
653
654 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
655
656 func Flock(fd int, how int) (err error) {
657         _, _, e1 := syscall(abi.FuncPCABI0(libc_flock_trampoline), uintptr(fd), uintptr(how), 0)
658         if e1 != 0 {
659                 err = errnoErr(e1)
660         }
661         return
662 }
663
664 func libc_flock_trampoline()
665
666 //go:cgo_import_dynamic libc_flock flock "/usr/lib/libSystem.B.dylib"
667
668 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
669
670 func Fpathconf(fd int, name int) (val int, err error) {
671         r0, _, e1 := syscall(abi.FuncPCABI0(libc_fpathconf_trampoline), uintptr(fd), uintptr(name), 0)
672         val = int(r0)
673         if e1 != 0 {
674                 err = errnoErr(e1)
675         }
676         return
677 }
678
679 func libc_fpathconf_trampoline()
680
681 //go:cgo_import_dynamic libc_fpathconf fpathconf "/usr/lib/libSystem.B.dylib"
682
683 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
684
685 func Fsync(fd int) (err error) {
686         _, _, e1 := syscall(abi.FuncPCABI0(libc_fsync_trampoline), uintptr(fd), 0, 0)
687         if e1 != 0 {
688                 err = errnoErr(e1)
689         }
690         return
691 }
692
693 func libc_fsync_trampoline()
694
695 //go:cgo_import_dynamic libc_fsync fsync "/usr/lib/libSystem.B.dylib"
696
697 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
698
699 func Ftruncate(fd int, length int64) (err error) {
700         _, _, e1 := syscall(abi.FuncPCABI0(libc_ftruncate_trampoline), uintptr(fd), uintptr(length), 0)
701         if e1 != 0 {
702                 err = errnoErr(e1)
703         }
704         return
705 }
706
707 func libc_ftruncate_trampoline()
708
709 //go:cgo_import_dynamic libc_ftruncate ftruncate "/usr/lib/libSystem.B.dylib"
710
711 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
712
713 func Getdtablesize() (size int) {
714         r0, _, _ := syscall(abi.FuncPCABI0(libc_getdtablesize_trampoline), 0, 0, 0)
715         size = int(r0)
716         return
717 }
718
719 func libc_getdtablesize_trampoline()
720
721 //go:cgo_import_dynamic libc_getdtablesize getdtablesize "/usr/lib/libSystem.B.dylib"
722
723 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
724
725 func Getegid() (egid int) {
726         r0, _, _ := rawSyscall(abi.FuncPCABI0(libc_getegid_trampoline), 0, 0, 0)
727         egid = int(r0)
728         return
729 }
730
731 func libc_getegid_trampoline()
732
733 //go:cgo_import_dynamic libc_getegid getegid "/usr/lib/libSystem.B.dylib"
734
735 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
736
737 func Geteuid() (uid int) {
738         r0, _, _ := rawSyscall(abi.FuncPCABI0(libc_geteuid_trampoline), 0, 0, 0)
739         uid = int(r0)
740         return
741 }
742
743 func libc_geteuid_trampoline()
744
745 //go:cgo_import_dynamic libc_geteuid geteuid "/usr/lib/libSystem.B.dylib"
746
747 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
748
749 func Getgid() (gid int) {
750         r0, _, _ := rawSyscall(abi.FuncPCABI0(libc_getgid_trampoline), 0, 0, 0)
751         gid = int(r0)
752         return
753 }
754
755 func libc_getgid_trampoline()
756
757 //go:cgo_import_dynamic libc_getgid getgid "/usr/lib/libSystem.B.dylib"
758
759 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
760
761 func Getpgid(pid int) (pgid int, err error) {
762         r0, _, e1 := rawSyscall(abi.FuncPCABI0(libc_getpgid_trampoline), uintptr(pid), 0, 0)
763         pgid = int(r0)
764         if e1 != 0 {
765                 err = errnoErr(e1)
766         }
767         return
768 }
769
770 func libc_getpgid_trampoline()
771
772 //go:cgo_import_dynamic libc_getpgid getpgid "/usr/lib/libSystem.B.dylib"
773
774 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
775
776 func Getpgrp() (pgrp int) {
777         r0, _, _ := rawSyscall(abi.FuncPCABI0(libc_getpgrp_trampoline), 0, 0, 0)
778         pgrp = int(r0)
779         return
780 }
781
782 func libc_getpgrp_trampoline()
783
784 //go:cgo_import_dynamic libc_getpgrp getpgrp "/usr/lib/libSystem.B.dylib"
785
786 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
787
788 func Getpid() (pid int) {
789         r0, _, _ := rawSyscall(abi.FuncPCABI0(libc_getpid_trampoline), 0, 0, 0)
790         pid = int(r0)
791         return
792 }
793
794 func libc_getpid_trampoline()
795
796 //go:cgo_import_dynamic libc_getpid getpid "/usr/lib/libSystem.B.dylib"
797
798 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
799
800 func Getppid() (ppid int) {
801         r0, _, _ := rawSyscall(abi.FuncPCABI0(libc_getppid_trampoline), 0, 0, 0)
802         ppid = int(r0)
803         return
804 }
805
806 func libc_getppid_trampoline()
807
808 //go:cgo_import_dynamic libc_getppid getppid "/usr/lib/libSystem.B.dylib"
809
810 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
811
812 func Getpriority(which int, who int) (prio int, err error) {
813         r0, _, e1 := syscall(abi.FuncPCABI0(libc_getpriority_trampoline), uintptr(which), uintptr(who), 0)
814         prio = int(r0)
815         if e1 != 0 {
816                 err = errnoErr(e1)
817         }
818         return
819 }
820
821 func libc_getpriority_trampoline()
822
823 //go:cgo_import_dynamic libc_getpriority getpriority "/usr/lib/libSystem.B.dylib"
824
825 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
826
827 func Getrlimit(which int, lim *Rlimit) (err error) {
828         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_getrlimit_trampoline), uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
829         if e1 != 0 {
830                 err = errnoErr(e1)
831         }
832         return
833 }
834
835 func libc_getrlimit_trampoline()
836
837 //go:cgo_import_dynamic libc_getrlimit getrlimit "/usr/lib/libSystem.B.dylib"
838
839 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
840
841 func Getrusage(who int, rusage *Rusage) (err error) {
842         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_getrusage_trampoline), uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
843         if e1 != 0 {
844                 err = errnoErr(e1)
845         }
846         return
847 }
848
849 func libc_getrusage_trampoline()
850
851 //go:cgo_import_dynamic libc_getrusage getrusage "/usr/lib/libSystem.B.dylib"
852
853 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
854
855 func Getsid(pid int) (sid int, err error) {
856         r0, _, e1 := rawSyscall(abi.FuncPCABI0(libc_getsid_trampoline), uintptr(pid), 0, 0)
857         sid = int(r0)
858         if e1 != 0 {
859                 err = errnoErr(e1)
860         }
861         return
862 }
863
864 func libc_getsid_trampoline()
865
866 //go:cgo_import_dynamic libc_getsid getsid "/usr/lib/libSystem.B.dylib"
867
868 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
869
870 func Getuid() (uid int) {
871         r0, _, _ := rawSyscall(abi.FuncPCABI0(libc_getuid_trampoline), 0, 0, 0)
872         uid = int(r0)
873         return
874 }
875
876 func libc_getuid_trampoline()
877
878 //go:cgo_import_dynamic libc_getuid getuid "/usr/lib/libSystem.B.dylib"
879
880 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
881
882 func Issetugid() (tainted bool) {
883         r0, _, _ := rawSyscall(abi.FuncPCABI0(libc_issetugid_trampoline), 0, 0, 0)
884         tainted = bool(r0 != 0)
885         return
886 }
887
888 func libc_issetugid_trampoline()
889
890 //go:cgo_import_dynamic libc_issetugid issetugid "/usr/lib/libSystem.B.dylib"
891
892 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
893
894 func Kqueue() (fd int, err error) {
895         r0, _, e1 := syscall(abi.FuncPCABI0(libc_kqueue_trampoline), 0, 0, 0)
896         fd = int(r0)
897         if e1 != 0 {
898                 err = errnoErr(e1)
899         }
900         return
901 }
902
903 func libc_kqueue_trampoline()
904
905 //go:cgo_import_dynamic libc_kqueue kqueue "/usr/lib/libSystem.B.dylib"
906
907 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
908
909 func Lchown(path string, uid int, gid int) (err error) {
910         var _p0 *byte
911         _p0, err = BytePtrFromString(path)
912         if err != nil {
913                 return
914         }
915         _, _, e1 := syscall(abi.FuncPCABI0(libc_lchown_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
916         if e1 != 0 {
917                 err = errnoErr(e1)
918         }
919         return
920 }
921
922 func libc_lchown_trampoline()
923
924 //go:cgo_import_dynamic libc_lchown lchown "/usr/lib/libSystem.B.dylib"
925
926 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
927
928 func Link(path string, link string) (err error) {
929         var _p0 *byte
930         _p0, err = BytePtrFromString(path)
931         if err != nil {
932                 return
933         }
934         var _p1 *byte
935         _p1, err = BytePtrFromString(link)
936         if err != nil {
937                 return
938         }
939         _, _, e1 := syscall(abi.FuncPCABI0(libc_link_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
940         if e1 != 0 {
941                 err = errnoErr(e1)
942         }
943         return
944 }
945
946 func libc_link_trampoline()
947
948 //go:cgo_import_dynamic libc_link link "/usr/lib/libSystem.B.dylib"
949
950 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
951
952 func Listen(s int, backlog int) (err error) {
953         _, _, e1 := syscall(abi.FuncPCABI0(libc_listen_trampoline), uintptr(s), uintptr(backlog), 0)
954         if e1 != 0 {
955                 err = errnoErr(e1)
956         }
957         return
958 }
959
960 func libc_listen_trampoline()
961
962 //go:cgo_import_dynamic libc_listen listen "/usr/lib/libSystem.B.dylib"
963
964 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
965
966 func Mkdir(path string, mode uint32) (err error) {
967         var _p0 *byte
968         _p0, err = BytePtrFromString(path)
969         if err != nil {
970                 return
971         }
972         _, _, e1 := syscall(abi.FuncPCABI0(libc_mkdir_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
973         if e1 != 0 {
974                 err = errnoErr(e1)
975         }
976         return
977 }
978
979 func libc_mkdir_trampoline()
980
981 //go:cgo_import_dynamic libc_mkdir mkdir "/usr/lib/libSystem.B.dylib"
982
983 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
984
985 func Mkfifo(path string, mode uint32) (err error) {
986         var _p0 *byte
987         _p0, err = BytePtrFromString(path)
988         if err != nil {
989                 return
990         }
991         _, _, e1 := syscall(abi.FuncPCABI0(libc_mkfifo_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
992         if e1 != 0 {
993                 err = errnoErr(e1)
994         }
995         return
996 }
997
998 func libc_mkfifo_trampoline()
999
1000 //go:cgo_import_dynamic libc_mkfifo mkfifo "/usr/lib/libSystem.B.dylib"
1001
1002 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1003
1004 func Mknod(path string, mode uint32, dev int) (err error) {
1005         var _p0 *byte
1006         _p0, err = BytePtrFromString(path)
1007         if err != nil {
1008                 return
1009         }
1010         _, _, e1 := syscall(abi.FuncPCABI0(libc_mknod_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
1011         if e1 != 0 {
1012                 err = errnoErr(e1)
1013         }
1014         return
1015 }
1016
1017 func libc_mknod_trampoline()
1018
1019 //go:cgo_import_dynamic libc_mknod mknod "/usr/lib/libSystem.B.dylib"
1020
1021 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1022
1023 func Mlock(b []byte) (err error) {
1024         var _p0 unsafe.Pointer
1025         if len(b) > 0 {
1026                 _p0 = unsafe.Pointer(&b[0])
1027         } else {
1028                 _p0 = unsafe.Pointer(&_zero)
1029         }
1030         _, _, e1 := syscall(abi.FuncPCABI0(libc_mlock_trampoline), uintptr(_p0), uintptr(len(b)), 0)
1031         if e1 != 0 {
1032                 err = errnoErr(e1)
1033         }
1034         return
1035 }
1036
1037 func libc_mlock_trampoline()
1038
1039 //go:cgo_import_dynamic libc_mlock mlock "/usr/lib/libSystem.B.dylib"
1040
1041 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1042
1043 func Mlockall(flags int) (err error) {
1044         _, _, e1 := syscall(abi.FuncPCABI0(libc_mlockall_trampoline), uintptr(flags), 0, 0)
1045         if e1 != 0 {
1046                 err = errnoErr(e1)
1047         }
1048         return
1049 }
1050
1051 func libc_mlockall_trampoline()
1052
1053 //go:cgo_import_dynamic libc_mlockall mlockall "/usr/lib/libSystem.B.dylib"
1054
1055 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1056
1057 func Mprotect(b []byte, prot int) (err error) {
1058         var _p0 unsafe.Pointer
1059         if len(b) > 0 {
1060                 _p0 = unsafe.Pointer(&b[0])
1061         } else {
1062                 _p0 = unsafe.Pointer(&_zero)
1063         }
1064         _, _, e1 := syscall(abi.FuncPCABI0(libc_mprotect_trampoline), uintptr(_p0), uintptr(len(b)), uintptr(prot))
1065         if e1 != 0 {
1066                 err = errnoErr(e1)
1067         }
1068         return
1069 }
1070
1071 func libc_mprotect_trampoline()
1072
1073 //go:cgo_import_dynamic libc_mprotect mprotect "/usr/lib/libSystem.B.dylib"
1074
1075 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1076
1077 func msync(b []byte, flags int) (err error) {
1078         var _p0 unsafe.Pointer
1079         if len(b) > 0 {
1080                 _p0 = unsafe.Pointer(&b[0])
1081         } else {
1082                 _p0 = unsafe.Pointer(&_zero)
1083         }
1084         _, _, e1 := syscall(abi.FuncPCABI0(libc_msync_trampoline), uintptr(_p0), uintptr(len(b)), uintptr(flags))
1085         if e1 != 0 {
1086                 err = errnoErr(e1)
1087         }
1088         return
1089 }
1090
1091 func libc_msync_trampoline()
1092
1093 //go:cgo_import_dynamic libc_msync msync "/usr/lib/libSystem.B.dylib"
1094
1095 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1096
1097 func Munlock(b []byte) (err error) {
1098         var _p0 unsafe.Pointer
1099         if len(b) > 0 {
1100                 _p0 = unsafe.Pointer(&b[0])
1101         } else {
1102                 _p0 = unsafe.Pointer(&_zero)
1103         }
1104         _, _, e1 := syscall(abi.FuncPCABI0(libc_munlock_trampoline), uintptr(_p0), uintptr(len(b)), 0)
1105         if e1 != 0 {
1106                 err = errnoErr(e1)
1107         }
1108         return
1109 }
1110
1111 func libc_munlock_trampoline()
1112
1113 //go:cgo_import_dynamic libc_munlock munlock "/usr/lib/libSystem.B.dylib"
1114
1115 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1116
1117 func Munlockall() (err error) {
1118         _, _, e1 := syscall(abi.FuncPCABI0(libc_munlockall_trampoline), 0, 0, 0)
1119         if e1 != 0 {
1120                 err = errnoErr(e1)
1121         }
1122         return
1123 }
1124
1125 func libc_munlockall_trampoline()
1126
1127 //go:cgo_import_dynamic libc_munlockall munlockall "/usr/lib/libSystem.B.dylib"
1128
1129 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1130
1131 func Open(path string, mode int, perm uint32) (fd int, err error) {
1132         var _p0 *byte
1133         _p0, err = BytePtrFromString(path)
1134         if err != nil {
1135                 return
1136         }
1137         r0, _, e1 := syscall(abi.FuncPCABI0(libc_open_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
1138         fd = int(r0)
1139         if e1 != 0 {
1140                 err = errnoErr(e1)
1141         }
1142         return
1143 }
1144
1145 func libc_open_trampoline()
1146
1147 //go:cgo_import_dynamic libc_open open "/usr/lib/libSystem.B.dylib"
1148
1149 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1150
1151 func Pathconf(path string, name int) (val int, err error) {
1152         var _p0 *byte
1153         _p0, err = BytePtrFromString(path)
1154         if err != nil {
1155                 return
1156         }
1157         r0, _, e1 := syscall(abi.FuncPCABI0(libc_pathconf_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
1158         val = int(r0)
1159         if e1 != 0 {
1160                 err = errnoErr(e1)
1161         }
1162         return
1163 }
1164
1165 func libc_pathconf_trampoline()
1166
1167 //go:cgo_import_dynamic libc_pathconf pathconf "/usr/lib/libSystem.B.dylib"
1168
1169 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1170
1171 func pread(fd int, p []byte, offset int64) (n int, err error) {
1172         var _p0 unsafe.Pointer
1173         if len(p) > 0 {
1174                 _p0 = unsafe.Pointer(&p[0])
1175         } else {
1176                 _p0 = unsafe.Pointer(&_zero)
1177         }
1178         r0, _, e1 := syscall6(abi.FuncPCABI0(libc_pread_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
1179         n = int(r0)
1180         if e1 != 0 {
1181                 err = errnoErr(e1)
1182         }
1183         return
1184 }
1185
1186 func libc_pread_trampoline()
1187
1188 //go:cgo_import_dynamic libc_pread pread "/usr/lib/libSystem.B.dylib"
1189
1190 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1191
1192 func pwrite(fd int, p []byte, offset int64) (n int, err error) {
1193         var _p0 unsafe.Pointer
1194         if len(p) > 0 {
1195                 _p0 = unsafe.Pointer(&p[0])
1196         } else {
1197                 _p0 = unsafe.Pointer(&_zero)
1198         }
1199         r0, _, e1 := syscall6(abi.FuncPCABI0(libc_pwrite_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
1200         n = int(r0)
1201         if e1 != 0 {
1202                 err = errnoErr(e1)
1203         }
1204         return
1205 }
1206
1207 func libc_pwrite_trampoline()
1208
1209 //go:cgo_import_dynamic libc_pwrite pwrite "/usr/lib/libSystem.B.dylib"
1210
1211 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1212
1213 func read(fd int, p []byte) (n int, err error) {
1214         var _p0 unsafe.Pointer
1215         if len(p) > 0 {
1216                 _p0 = unsafe.Pointer(&p[0])
1217         } else {
1218                 _p0 = unsafe.Pointer(&_zero)
1219         }
1220         r0, _, e1 := syscall(abi.FuncPCABI0(libc_read_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)))
1221         n = int(r0)
1222         if e1 != 0 {
1223                 err = errnoErr(e1)
1224         }
1225         return
1226 }
1227
1228 func libc_read_trampoline()
1229
1230 //go:cgo_import_dynamic libc_read read "/usr/lib/libSystem.B.dylib"
1231
1232 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1233
1234 func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
1235         r0, _, _ := syscall(abi.FuncPCABI0(libc_readdir_r_trampoline), uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
1236         res = Errno(r0)
1237         return
1238 }
1239
1240 func libc_readdir_r_trampoline()
1241
1242 //go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"
1243
1244 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1245
1246 func Readlink(path string, buf []byte) (n int, err error) {
1247         var _p0 *byte
1248         _p0, err = BytePtrFromString(path)
1249         if err != nil {
1250                 return
1251         }
1252         var _p1 unsafe.Pointer
1253         if len(buf) > 0 {
1254                 _p1 = unsafe.Pointer(&buf[0])
1255         } else {
1256                 _p1 = unsafe.Pointer(&_zero)
1257         }
1258         r0, _, e1 := syscall(abi.FuncPCABI0(libc_readlink_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
1259         n = int(r0)
1260         if e1 != 0 {
1261                 err = errnoErr(e1)
1262         }
1263         return
1264 }
1265
1266 func libc_readlink_trampoline()
1267
1268 //go:cgo_import_dynamic libc_readlink readlink "/usr/lib/libSystem.B.dylib"
1269
1270 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1271
1272 func Rename(from string, to string) (err error) {
1273         var _p0 *byte
1274         _p0, err = BytePtrFromString(from)
1275         if err != nil {
1276                 return
1277         }
1278         var _p1 *byte
1279         _p1, err = BytePtrFromString(to)
1280         if err != nil {
1281                 return
1282         }
1283         _, _, e1 := syscall(abi.FuncPCABI0(libc_rename_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1284         if e1 != 0 {
1285                 err = errnoErr(e1)
1286         }
1287         return
1288 }
1289
1290 func libc_rename_trampoline()
1291
1292 //go:cgo_import_dynamic libc_rename rename "/usr/lib/libSystem.B.dylib"
1293
1294 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1295
1296 func Revoke(path string) (err error) {
1297         var _p0 *byte
1298         _p0, err = BytePtrFromString(path)
1299         if err != nil {
1300                 return
1301         }
1302         _, _, e1 := syscall(abi.FuncPCABI0(libc_revoke_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
1303         if e1 != 0 {
1304                 err = errnoErr(e1)
1305         }
1306         return
1307 }
1308
1309 func libc_revoke_trampoline()
1310
1311 //go:cgo_import_dynamic libc_revoke revoke "/usr/lib/libSystem.B.dylib"
1312
1313 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1314
1315 func Rmdir(path string) (err error) {
1316         var _p0 *byte
1317         _p0, err = BytePtrFromString(path)
1318         if err != nil {
1319                 return
1320         }
1321         _, _, e1 := syscall(abi.FuncPCABI0(libc_rmdir_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
1322         if e1 != 0 {
1323                 err = errnoErr(e1)
1324         }
1325         return
1326 }
1327
1328 func libc_rmdir_trampoline()
1329
1330 //go:cgo_import_dynamic libc_rmdir rmdir "/usr/lib/libSystem.B.dylib"
1331
1332 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1333
1334 func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1335         r0, _, e1 := syscallX(abi.FuncPCABI0(libc_lseek_trampoline), uintptr(fd), uintptr(offset), uintptr(whence))
1336         newoffset = int64(r0)
1337         if e1 != 0 {
1338                 err = errnoErr(e1)
1339         }
1340         return
1341 }
1342
1343 func libc_lseek_trampoline()
1344
1345 //go:cgo_import_dynamic libc_lseek lseek "/usr/lib/libSystem.B.dylib"
1346
1347 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1348
1349 func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
1350         _, _, e1 := syscall6(abi.FuncPCABI0(libc_select_trampoline), uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1351         if e1 != 0 {
1352                 err = errnoErr(e1)
1353         }
1354         return
1355 }
1356
1357 func libc_select_trampoline()
1358
1359 //go:cgo_import_dynamic libc_select select "/usr/lib/libSystem.B.dylib"
1360
1361 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1362
1363 func Setegid(egid int) (err error) {
1364         _, _, e1 := syscall(abi.FuncPCABI0(libc_setegid_trampoline), uintptr(egid), 0, 0)
1365         if e1 != 0 {
1366                 err = errnoErr(e1)
1367         }
1368         return
1369 }
1370
1371 func libc_setegid_trampoline()
1372
1373 //go:cgo_import_dynamic libc_setegid setegid "/usr/lib/libSystem.B.dylib"
1374
1375 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1376
1377 func Seteuid(euid int) (err error) {
1378         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_seteuid_trampoline), uintptr(euid), 0, 0)
1379         if e1 != 0 {
1380                 err = errnoErr(e1)
1381         }
1382         return
1383 }
1384
1385 func libc_seteuid_trampoline()
1386
1387 //go:cgo_import_dynamic libc_seteuid seteuid "/usr/lib/libSystem.B.dylib"
1388
1389 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1390
1391 func Setgid(gid int) (err error) {
1392         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setgid_trampoline), uintptr(gid), 0, 0)
1393         if e1 != 0 {
1394                 err = errnoErr(e1)
1395         }
1396         return
1397 }
1398
1399 func libc_setgid_trampoline()
1400
1401 //go:cgo_import_dynamic libc_setgid setgid "/usr/lib/libSystem.B.dylib"
1402
1403 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1404
1405 func Setlogin(name string) (err error) {
1406         var _p0 *byte
1407         _p0, err = BytePtrFromString(name)
1408         if err != nil {
1409                 return
1410         }
1411         _, _, e1 := syscall(abi.FuncPCABI0(libc_setlogin_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
1412         if e1 != 0 {
1413                 err = errnoErr(e1)
1414         }
1415         return
1416 }
1417
1418 func libc_setlogin_trampoline()
1419
1420 //go:cgo_import_dynamic libc_setlogin setlogin "/usr/lib/libSystem.B.dylib"
1421
1422 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1423
1424 func Setpgid(pid int, pgid int) (err error) {
1425         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setpgid_trampoline), uintptr(pid), uintptr(pgid), 0)
1426         if e1 != 0 {
1427                 err = errnoErr(e1)
1428         }
1429         return
1430 }
1431
1432 func libc_setpgid_trampoline()
1433
1434 //go:cgo_import_dynamic libc_setpgid setpgid "/usr/lib/libSystem.B.dylib"
1435
1436 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1437
1438 func Setpriority(which int, who int, prio int) (err error) {
1439         _, _, e1 := syscall(abi.FuncPCABI0(libc_setpriority_trampoline), uintptr(which), uintptr(who), uintptr(prio))
1440         if e1 != 0 {
1441                 err = errnoErr(e1)
1442         }
1443         return
1444 }
1445
1446 func libc_setpriority_trampoline()
1447
1448 //go:cgo_import_dynamic libc_setpriority setpriority "/usr/lib/libSystem.B.dylib"
1449
1450 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1451
1452 func Setprivexec(flag int) (err error) {
1453         _, _, e1 := syscall(abi.FuncPCABI0(libc_setprivexec_trampoline), uintptr(flag), 0, 0)
1454         if e1 != 0 {
1455                 err = errnoErr(e1)
1456         }
1457         return
1458 }
1459
1460 func libc_setprivexec_trampoline()
1461
1462 //go:cgo_import_dynamic libc_setprivexec setprivexec "/usr/lib/libSystem.B.dylib"
1463
1464 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1465
1466 func Setregid(rgid int, egid int) (err error) {
1467         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setregid_trampoline), uintptr(rgid), uintptr(egid), 0)
1468         if e1 != 0 {
1469                 err = errnoErr(e1)
1470         }
1471         return
1472 }
1473
1474 func libc_setregid_trampoline()
1475
1476 //go:cgo_import_dynamic libc_setregid setregid "/usr/lib/libSystem.B.dylib"
1477
1478 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1479
1480 func Setreuid(ruid int, euid int) (err error) {
1481         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setreuid_trampoline), uintptr(ruid), uintptr(euid), 0)
1482         if e1 != 0 {
1483                 err = errnoErr(e1)
1484         }
1485         return
1486 }
1487
1488 func libc_setreuid_trampoline()
1489
1490 //go:cgo_import_dynamic libc_setreuid setreuid "/usr/lib/libSystem.B.dylib"
1491
1492 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1493
1494 func setrlimit(which int, lim *Rlimit) (err error) {
1495         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setrlimit_trampoline), uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
1496         if e1 != 0 {
1497                 err = errnoErr(e1)
1498         }
1499         return
1500 }
1501
1502 func libc_setrlimit_trampoline()
1503
1504 //go:cgo_import_dynamic libc_setrlimit setrlimit "/usr/lib/libSystem.B.dylib"
1505
1506 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1507
1508 func Setsid() (pid int, err error) {
1509         r0, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setsid_trampoline), 0, 0, 0)
1510         pid = int(r0)
1511         if e1 != 0 {
1512                 err = errnoErr(e1)
1513         }
1514         return
1515 }
1516
1517 func libc_setsid_trampoline()
1518
1519 //go:cgo_import_dynamic libc_setsid setsid "/usr/lib/libSystem.B.dylib"
1520
1521 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1522
1523 func Settimeofday(tp *Timeval) (err error) {
1524         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_settimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0)
1525         if e1 != 0 {
1526                 err = errnoErr(e1)
1527         }
1528         return
1529 }
1530
1531 func libc_settimeofday_trampoline()
1532
1533 //go:cgo_import_dynamic libc_settimeofday settimeofday "/usr/lib/libSystem.B.dylib"
1534
1535 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1536
1537 func Setuid(uid int) (err error) {
1538         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setuid_trampoline), uintptr(uid), 0, 0)
1539         if e1 != 0 {
1540                 err = errnoErr(e1)
1541         }
1542         return
1543 }
1544
1545 func libc_setuid_trampoline()
1546
1547 //go:cgo_import_dynamic libc_setuid setuid "/usr/lib/libSystem.B.dylib"
1548
1549 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1550
1551 func Symlink(path string, link string) (err error) {
1552         var _p0 *byte
1553         _p0, err = BytePtrFromString(path)
1554         if err != nil {
1555                 return
1556         }
1557         var _p1 *byte
1558         _p1, err = BytePtrFromString(link)
1559         if err != nil {
1560                 return
1561         }
1562         _, _, e1 := syscall(abi.FuncPCABI0(libc_symlink_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1563         if e1 != 0 {
1564                 err = errnoErr(e1)
1565         }
1566         return
1567 }
1568
1569 func libc_symlink_trampoline()
1570
1571 //go:cgo_import_dynamic libc_symlink symlink "/usr/lib/libSystem.B.dylib"
1572
1573 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1574
1575 func Sync() (err error) {
1576         _, _, e1 := syscall(abi.FuncPCABI0(libc_sync_trampoline), 0, 0, 0)
1577         if e1 != 0 {
1578                 err = errnoErr(e1)
1579         }
1580         return
1581 }
1582
1583 func libc_sync_trampoline()
1584
1585 //go:cgo_import_dynamic libc_sync sync "/usr/lib/libSystem.B.dylib"
1586
1587 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1588
1589 func Truncate(path string, length int64) (err error) {
1590         var _p0 *byte
1591         _p0, err = BytePtrFromString(path)
1592         if err != nil {
1593                 return
1594         }
1595         _, _, e1 := syscall(abi.FuncPCABI0(libc_truncate_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
1596         if e1 != 0 {
1597                 err = errnoErr(e1)
1598         }
1599         return
1600 }
1601
1602 func libc_truncate_trampoline()
1603
1604 //go:cgo_import_dynamic libc_truncate truncate "/usr/lib/libSystem.B.dylib"
1605
1606 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1607
1608 func Umask(newmask int) (oldmask int) {
1609         r0, _, _ := syscall(abi.FuncPCABI0(libc_umask_trampoline), uintptr(newmask), 0, 0)
1610         oldmask = int(r0)
1611         return
1612 }
1613
1614 func libc_umask_trampoline()
1615
1616 //go:cgo_import_dynamic libc_umask umask "/usr/lib/libSystem.B.dylib"
1617
1618 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1619
1620 func Undelete(path string) (err error) {
1621         var _p0 *byte
1622         _p0, err = BytePtrFromString(path)
1623         if err != nil {
1624                 return
1625         }
1626         _, _, e1 := syscall(abi.FuncPCABI0(libc_undelete_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
1627         if e1 != 0 {
1628                 err = errnoErr(e1)
1629         }
1630         return
1631 }
1632
1633 func libc_undelete_trampoline()
1634
1635 //go:cgo_import_dynamic libc_undelete undelete "/usr/lib/libSystem.B.dylib"
1636
1637 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1638
1639 func Unlink(path string) (err error) {
1640         var _p0 *byte
1641         _p0, err = BytePtrFromString(path)
1642         if err != nil {
1643                 return
1644         }
1645         _, _, e1 := syscall(abi.FuncPCABI0(libc_unlink_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
1646         if e1 != 0 {
1647                 err = errnoErr(e1)
1648         }
1649         return
1650 }
1651
1652 func libc_unlink_trampoline()
1653
1654 //go:cgo_import_dynamic libc_unlink unlink "/usr/lib/libSystem.B.dylib"
1655
1656 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1657
1658 func Unmount(path string, flags int) (err error) {
1659         var _p0 *byte
1660         _p0, err = BytePtrFromString(path)
1661         if err != nil {
1662                 return
1663         }
1664         _, _, e1 := syscall(abi.FuncPCABI0(libc_unmount_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1665         if e1 != 0 {
1666                 err = errnoErr(e1)
1667         }
1668         return
1669 }
1670
1671 func libc_unmount_trampoline()
1672
1673 //go:cgo_import_dynamic libc_unmount unmount "/usr/lib/libSystem.B.dylib"
1674
1675 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1676
1677 func write(fd int, p []byte) (n int, err error) {
1678         var _p0 unsafe.Pointer
1679         if len(p) > 0 {
1680                 _p0 = unsafe.Pointer(&p[0])
1681         } else {
1682                 _p0 = unsafe.Pointer(&_zero)
1683         }
1684         r0, _, e1 := syscall(abi.FuncPCABI0(libc_write_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)))
1685         n = int(r0)
1686         if e1 != 0 {
1687                 err = errnoErr(e1)
1688         }
1689         return
1690 }
1691
1692 func libc_write_trampoline()
1693
1694 //go:cgo_import_dynamic libc_write write "/usr/lib/libSystem.B.dylib"
1695
1696 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1697
1698 func writev(fd int, iovecs []Iovec) (cnt uintptr, err error) {
1699         var _p0 unsafe.Pointer
1700         if len(iovecs) > 0 {
1701                 _p0 = unsafe.Pointer(&iovecs[0])
1702         } else {
1703                 _p0 = unsafe.Pointer(&_zero)
1704         }
1705         r0, _, e1 := syscallX(abi.FuncPCABI0(libc_writev_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(iovecs)))
1706         cnt = uintptr(r0)
1707         if e1 != 0 {
1708                 err = errnoErr(e1)
1709         }
1710         return
1711 }
1712
1713 func libc_writev_trampoline()
1714
1715 //go:cgo_import_dynamic libc_writev writev "/usr/lib/libSystem.B.dylib"
1716
1717 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1718
1719 func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
1720         r0, _, e1 := syscall6X(abi.FuncPCABI0(libc_mmap_trampoline), uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
1721         ret = uintptr(r0)
1722         if e1 != 0 {
1723                 err = errnoErr(e1)
1724         }
1725         return
1726 }
1727
1728 func libc_mmap_trampoline()
1729
1730 //go:cgo_import_dynamic libc_mmap mmap "/usr/lib/libSystem.B.dylib"
1731
1732 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1733
1734 func munmap(addr uintptr, length uintptr) (err error) {
1735         _, _, e1 := syscall(abi.FuncPCABI0(libc_munmap_trampoline), uintptr(addr), uintptr(length), 0)
1736         if e1 != 0 {
1737                 err = errnoErr(e1)
1738         }
1739         return
1740 }
1741
1742 func libc_munmap_trampoline()
1743
1744 //go:cgo_import_dynamic libc_munmap munmap "/usr/lib/libSystem.B.dylib"
1745
1746 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1747
1748 func fork() (pid int, err error) {
1749         r0, _, e1 := rawSyscall(abi.FuncPCABI0(libc_fork_trampoline), 0, 0, 0)
1750         pid = int(r0)
1751         if e1 != 0 {
1752                 err = errnoErr(e1)
1753         }
1754         return
1755 }
1756
1757 func libc_fork_trampoline()
1758
1759 //go:cgo_import_dynamic libc_fork fork "/usr/lib/libSystem.B.dylib"
1760
1761 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1762
1763 func ioctl(fd int, req int, arg int) (err error) {
1764         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_ioctl_trampoline), uintptr(fd), uintptr(req), uintptr(arg))
1765         if e1 != 0 {
1766                 err = errnoErr(e1)
1767         }
1768         return
1769 }
1770
1771 func libc_ioctl_trampoline()
1772
1773 //go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib"
1774
1775 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1776
1777 func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
1778         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_ioctl_trampoline), uintptr(fd), uintptr(req), uintptr(arg))
1779         if e1 != 0 {
1780                 err = errnoErr(e1)
1781         }
1782         return
1783 }
1784
1785 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1786
1787 func execve(path *byte, argv **byte, envp **byte) (err error) {
1788         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_execve_trampoline), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(argv)), uintptr(unsafe.Pointer(envp)))
1789         if e1 != 0 {
1790                 err = errnoErr(e1)
1791         }
1792         return
1793 }
1794
1795 func libc_execve_trampoline()
1796
1797 //go:cgo_import_dynamic libc_execve execve "/usr/lib/libSystem.B.dylib"
1798
1799 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1800
1801 func exit(res int) (err error) {
1802         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_exit_trampoline), uintptr(res), 0, 0)
1803         if e1 != 0 {
1804                 err = errnoErr(e1)
1805         }
1806         return
1807 }
1808
1809 func libc_exit_trampoline()
1810
1811 //go:cgo_import_dynamic libc_exit exit "/usr/lib/libSystem.B.dylib"
1812
1813 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1814
1815 func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
1816         var _p0 unsafe.Pointer
1817         if len(mib) > 0 {
1818                 _p0 = unsafe.Pointer(&mib[0])
1819         } else {
1820                 _p0 = unsafe.Pointer(&_zero)
1821         }
1822         _, _, e1 := syscall6(abi.FuncPCABI0(libc_sysctl_trampoline), uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
1823         if e1 != 0 {
1824                 err = errnoErr(e1)
1825         }
1826         return
1827 }
1828
1829 func libc_sysctl_trampoline()
1830
1831 //go:cgo_import_dynamic libc_sysctl sysctl "/usr/lib/libSystem.B.dylib"
1832
1833 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1834
1835 func unlinkat(fd int, path string, flags int) (err error) {
1836         var _p0 *byte
1837         _p0, err = BytePtrFromString(path)
1838         if err != nil {
1839                 return
1840         }
1841         _, _, e1 := syscall(abi.FuncPCABI0(libc_unlinkat_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
1842         if e1 != 0 {
1843                 err = errnoErr(e1)
1844         }
1845         return
1846 }
1847
1848 func libc_unlinkat_trampoline()
1849
1850 //go:cgo_import_dynamic libc_unlinkat unlinkat "/usr/lib/libSystem.B.dylib"
1851
1852 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1853
1854 func openat(fd int, path string, flags int, perm uint32) (fdret int, err error) {
1855         var _p0 *byte
1856         _p0, err = BytePtrFromString(path)
1857         if err != nil {
1858                 return
1859         }
1860         r0, _, e1 := syscall6(abi.FuncPCABI0(libc_openat_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(perm), 0, 0)
1861         fdret = int(r0)
1862         if e1 != 0 {
1863                 err = errnoErr(e1)
1864         }
1865         return
1866 }
1867
1868 func libc_openat_trampoline()
1869
1870 //go:cgo_import_dynamic libc_openat openat "/usr/lib/libSystem.B.dylib"
1871
1872 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1873
1874 func getcwd(buf []byte) (n int, err error) {
1875         var _p0 unsafe.Pointer
1876         if len(buf) > 0 {
1877                 _p0 = unsafe.Pointer(&buf[0])
1878         } else {
1879                 _p0 = unsafe.Pointer(&_zero)
1880         }
1881         r0, _, e1 := syscall(abi.FuncPCABI0(libc_getcwd_trampoline), uintptr(_p0), uintptr(len(buf)), 0)
1882         n = int(r0)
1883         if e1 != 0 {
1884                 err = errnoErr(e1)
1885         }
1886         return
1887 }
1888
1889 func libc_getcwd_trampoline()
1890
1891 //go:cgo_import_dynamic libc_getcwd getcwd "/usr/lib/libSystem.B.dylib"
1892
1893 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1894
1895 func Fstat(fd int, stat *Stat_t) (err error) {
1896         _, _, e1 := syscall(abi.FuncPCABI0(libc_fstat_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
1897         if e1 != 0 {
1898                 err = errnoErr(e1)
1899         }
1900         return
1901 }
1902
1903 func libc_fstat_trampoline()
1904
1905 //go:cgo_import_dynamic libc_fstat fstat "/usr/lib/libSystem.B.dylib"
1906
1907 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1908
1909 func Fstatfs(fd int, stat *Statfs_t) (err error) {
1910         _, _, e1 := syscall(abi.FuncPCABI0(libc_fstatfs_trampoline), uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
1911         if e1 != 0 {
1912                 err = errnoErr(e1)
1913         }
1914         return
1915 }
1916
1917 func libc_fstatfs_trampoline()
1918
1919 //go:cgo_import_dynamic libc_fstatfs fstatfs "/usr/lib/libSystem.B.dylib"
1920
1921 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1922
1923 func Gettimeofday(tp *Timeval) (err error) {
1924         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_gettimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0)
1925         if e1 != 0 {
1926                 err = errnoErr(e1)
1927         }
1928         return
1929 }
1930
1931 func libc_gettimeofday_trampoline()
1932
1933 //go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib"
1934
1935 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1936
1937 func Lstat(path string, stat *Stat_t) (err error) {
1938         var _p0 *byte
1939         _p0, err = BytePtrFromString(path)
1940         if err != nil {
1941                 return
1942         }
1943         _, _, e1 := syscall(abi.FuncPCABI0(libc_lstat_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1944         if e1 != 0 {
1945                 err = errnoErr(e1)
1946         }
1947         return
1948 }
1949
1950 func libc_lstat_trampoline()
1951
1952 //go:cgo_import_dynamic libc_lstat lstat "/usr/lib/libSystem.B.dylib"
1953
1954 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1955
1956 func Stat(path string, stat *Stat_t) (err error) {
1957         var _p0 *byte
1958         _p0, err = BytePtrFromString(path)
1959         if err != nil {
1960                 return
1961         }
1962         _, _, e1 := syscall(abi.FuncPCABI0(libc_stat_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1963         if e1 != 0 {
1964                 err = errnoErr(e1)
1965         }
1966         return
1967 }
1968
1969 func libc_stat_trampoline()
1970
1971 //go:cgo_import_dynamic libc_stat stat "/usr/lib/libSystem.B.dylib"
1972
1973 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1974
1975 func Statfs(path string, stat *Statfs_t) (err error) {
1976         var _p0 *byte
1977         _p0, err = BytePtrFromString(path)
1978         if err != nil {
1979                 return
1980         }
1981         _, _, e1 := syscall(abi.FuncPCABI0(libc_statfs_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1982         if e1 != 0 {
1983                 err = errnoErr(e1)
1984         }
1985         return
1986 }
1987
1988 func libc_statfs_trampoline()
1989
1990 //go:cgo_import_dynamic libc_statfs statfs "/usr/lib/libSystem.B.dylib"
1991
1992 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1993
1994 func fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
1995         var _p0 *byte
1996         _p0, err = BytePtrFromString(path)
1997         if err != nil {
1998                 return
1999         }
2000         _, _, e1 := syscall6(abi.FuncPCABI0(libc_fstatat_trampoline), uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
2001         if e1 != 0 {
2002                 err = errnoErr(e1)
2003         }
2004         return
2005 }
2006
2007 func libc_fstatat_trampoline()
2008
2009 //go:cgo_import_dynamic libc_fstatat fstatat "/usr/lib/libSystem.B.dylib"
2010
2011 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2012
2013 //go:nosplit
2014 func ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) {
2015         _, _, e1 := syscall6(abi.FuncPCABI0(libc_ptrace_trampoline), uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
2016         if e1 != 0 {
2017                 err = errnoErr(e1)
2018         }
2019         return
2020 }
2021
2022 func libc_ptrace_trampoline()
2023
2024 //go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"