]> Cypherpunks.ru repositories - gostls13.git/blob - src/syscall/zsyscall_darwin_arm64.go
cmd/compile/internal/inline: score call sites exposed by inlines
[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 ioctl(fd int, req int, arg int) (err error) {
345         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_ioctl_trampoline), uintptr(fd), uintptr(req), uintptr(arg))
346         if e1 != 0 {
347                 err = errnoErr(e1)
348         }
349         return
350 }
351
352 func libc_ioctl_trampoline()
353
354 //go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib"
355
356 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
357
358 func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
359         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_ioctl_trampoline), uintptr(fd), uintptr(req), uintptr(arg))
360         if e1 != 0 {
361                 err = errnoErr(e1)
362         }
363         return
364 }
365
366 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
367
368 func pipe(p *[2]int32) (err error) {
369         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_pipe_trampoline), uintptr(unsafe.Pointer(p)), 0, 0)
370         if e1 != 0 {
371                 err = errnoErr(e1)
372         }
373         return
374 }
375
376 func libc_pipe_trampoline()
377
378 //go:cgo_import_dynamic libc_pipe pipe "/usr/lib/libSystem.B.dylib"
379
380 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
381
382 func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
383         var _p0 *byte
384         _p0, err = BytePtrFromString(path)
385         if err != nil {
386                 return
387         }
388         _, _, e1 := syscall6(abi.FuncPCABI0(libc_utimensat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
389         if e1 != 0 {
390                 err = errnoErr(e1)
391         }
392         return
393 }
394
395 func libc_utimensat_trampoline()
396
397 //go:cgo_import_dynamic libc_utimensat utimensat "/usr/lib/libSystem.B.dylib"
398
399 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
400
401 func kill(pid int, signum int, posix int) (err error) {
402         _, _, e1 := syscall(abi.FuncPCABI0(libc_kill_trampoline), uintptr(pid), uintptr(signum), uintptr(posix))
403         if e1 != 0 {
404                 err = errnoErr(e1)
405         }
406         return
407 }
408
409 func libc_kill_trampoline()
410
411 //go:cgo_import_dynamic libc_kill kill "/usr/lib/libSystem.B.dylib"
412
413 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
414
415 func Access(path string, mode uint32) (err error) {
416         var _p0 *byte
417         _p0, err = BytePtrFromString(path)
418         if err != nil {
419                 return
420         }
421         _, _, e1 := syscall(abi.FuncPCABI0(libc_access_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
422         if e1 != 0 {
423                 err = errnoErr(e1)
424         }
425         return
426 }
427
428 func libc_access_trampoline()
429
430 //go:cgo_import_dynamic libc_access access "/usr/lib/libSystem.B.dylib"
431
432 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
433
434 func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
435         _, _, e1 := syscall(abi.FuncPCABI0(libc_adjtime_trampoline), uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
436         if e1 != 0 {
437                 err = errnoErr(e1)
438         }
439         return
440 }
441
442 func libc_adjtime_trampoline()
443
444 //go:cgo_import_dynamic libc_adjtime adjtime "/usr/lib/libSystem.B.dylib"
445
446 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
447
448 func Chdir(path string) (err error) {
449         var _p0 *byte
450         _p0, err = BytePtrFromString(path)
451         if err != nil {
452                 return
453         }
454         _, _, e1 := syscall(abi.FuncPCABI0(libc_chdir_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
455         if e1 != 0 {
456                 err = errnoErr(e1)
457         }
458         return
459 }
460
461 func libc_chdir_trampoline()
462
463 //go:cgo_import_dynamic libc_chdir chdir "/usr/lib/libSystem.B.dylib"
464
465 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
466
467 func Chflags(path string, flags int) (err error) {
468         var _p0 *byte
469         _p0, err = BytePtrFromString(path)
470         if err != nil {
471                 return
472         }
473         _, _, e1 := syscall(abi.FuncPCABI0(libc_chflags_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
474         if e1 != 0 {
475                 err = errnoErr(e1)
476         }
477         return
478 }
479
480 func libc_chflags_trampoline()
481
482 //go:cgo_import_dynamic libc_chflags chflags "/usr/lib/libSystem.B.dylib"
483
484 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
485
486 func Chmod(path string, mode uint32) (err error) {
487         var _p0 *byte
488         _p0, err = BytePtrFromString(path)
489         if err != nil {
490                 return
491         }
492         _, _, e1 := syscall(abi.FuncPCABI0(libc_chmod_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
493         if e1 != 0 {
494                 err = errnoErr(e1)
495         }
496         return
497 }
498
499 func libc_chmod_trampoline()
500
501 //go:cgo_import_dynamic libc_chmod chmod "/usr/lib/libSystem.B.dylib"
502
503 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
504
505 func Chown(path string, uid int, gid int) (err error) {
506         var _p0 *byte
507         _p0, err = BytePtrFromString(path)
508         if err != nil {
509                 return
510         }
511         _, _, e1 := syscall(abi.FuncPCABI0(libc_chown_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
512         if e1 != 0 {
513                 err = errnoErr(e1)
514         }
515         return
516 }
517
518 func libc_chown_trampoline()
519
520 //go:cgo_import_dynamic libc_chown chown "/usr/lib/libSystem.B.dylib"
521
522 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
523
524 func Chroot(path string) (err error) {
525         var _p0 *byte
526         _p0, err = BytePtrFromString(path)
527         if err != nil {
528                 return
529         }
530         _, _, e1 := syscall(abi.FuncPCABI0(libc_chroot_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
531         if e1 != 0 {
532                 err = errnoErr(e1)
533         }
534         return
535 }
536
537 func libc_chroot_trampoline()
538
539 //go:cgo_import_dynamic libc_chroot chroot "/usr/lib/libSystem.B.dylib"
540
541 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
542
543 func Close(fd int) (err error) {
544         _, _, e1 := syscall(abi.FuncPCABI0(libc_close_trampoline), uintptr(fd), 0, 0)
545         if e1 != 0 {
546                 err = errnoErr(e1)
547         }
548         return
549 }
550
551 func libc_close_trampoline()
552
553 //go:cgo_import_dynamic libc_close close "/usr/lib/libSystem.B.dylib"
554
555 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
556
557 func closedir(dir uintptr) (err error) {
558         _, _, e1 := syscall(abi.FuncPCABI0(libc_closedir_trampoline), uintptr(dir), 0, 0)
559         if e1 != 0 {
560                 err = errnoErr(e1)
561         }
562         return
563 }
564
565 func libc_closedir_trampoline()
566
567 //go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
568
569 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
570
571 func Dup(fd int) (nfd int, err error) {
572         r0, _, e1 := syscall(abi.FuncPCABI0(libc_dup_trampoline), uintptr(fd), 0, 0)
573         nfd = int(r0)
574         if e1 != 0 {
575                 err = errnoErr(e1)
576         }
577         return
578 }
579
580 func libc_dup_trampoline()
581
582 //go:cgo_import_dynamic libc_dup dup "/usr/lib/libSystem.B.dylib"
583
584 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
585
586 func Dup2(from int, to int) (err error) {
587         _, _, e1 := syscall(abi.FuncPCABI0(libc_dup2_trampoline), uintptr(from), uintptr(to), 0)
588         if e1 != 0 {
589                 err = errnoErr(e1)
590         }
591         return
592 }
593
594 func libc_dup2_trampoline()
595
596 //go:cgo_import_dynamic libc_dup2 dup2 "/usr/lib/libSystem.B.dylib"
597
598 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
599
600 func Exchangedata(path1 string, path2 string, options int) (err error) {
601         var _p0 *byte
602         _p0, err = BytePtrFromString(path1)
603         if err != nil {
604                 return
605         }
606         var _p1 *byte
607         _p1, err = BytePtrFromString(path2)
608         if err != nil {
609                 return
610         }
611         _, _, e1 := syscall(abi.FuncPCABI0(libc_exchangedata_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options))
612         if e1 != 0 {
613                 err = errnoErr(e1)
614         }
615         return
616 }
617
618 func libc_exchangedata_trampoline()
619
620 //go:cgo_import_dynamic libc_exchangedata exchangedata "/usr/lib/libSystem.B.dylib"
621
622 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
623
624 func Fchdir(fd int) (err error) {
625         _, _, e1 := syscall(abi.FuncPCABI0(libc_fchdir_trampoline), uintptr(fd), 0, 0)
626         if e1 != 0 {
627                 err = errnoErr(e1)
628         }
629         return
630 }
631
632 func libc_fchdir_trampoline()
633
634 //go:cgo_import_dynamic libc_fchdir fchdir "/usr/lib/libSystem.B.dylib"
635
636 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
637
638 func Fchflags(fd int, flags int) (err error) {
639         _, _, e1 := syscall(abi.FuncPCABI0(libc_fchflags_trampoline), uintptr(fd), uintptr(flags), 0)
640         if e1 != 0 {
641                 err = errnoErr(e1)
642         }
643         return
644 }
645
646 func libc_fchflags_trampoline()
647
648 //go:cgo_import_dynamic libc_fchflags fchflags "/usr/lib/libSystem.B.dylib"
649
650 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
651
652 func Fchmod(fd int, mode uint32) (err error) {
653         _, _, e1 := syscall(abi.FuncPCABI0(libc_fchmod_trampoline), uintptr(fd), uintptr(mode), 0)
654         if e1 != 0 {
655                 err = errnoErr(e1)
656         }
657         return
658 }
659
660 func libc_fchmod_trampoline()
661
662 //go:cgo_import_dynamic libc_fchmod fchmod "/usr/lib/libSystem.B.dylib"
663
664 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
665
666 func Fchown(fd int, uid int, gid int) (err error) {
667         _, _, e1 := syscall(abi.FuncPCABI0(libc_fchown_trampoline), uintptr(fd), uintptr(uid), uintptr(gid))
668         if e1 != 0 {
669                 err = errnoErr(e1)
670         }
671         return
672 }
673
674 func libc_fchown_trampoline()
675
676 //go:cgo_import_dynamic libc_fchown fchown "/usr/lib/libSystem.B.dylib"
677
678 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
679
680 func Flock(fd int, how int) (err error) {
681         _, _, e1 := syscall(abi.FuncPCABI0(libc_flock_trampoline), uintptr(fd), uintptr(how), 0)
682         if e1 != 0 {
683                 err = errnoErr(e1)
684         }
685         return
686 }
687
688 func libc_flock_trampoline()
689
690 //go:cgo_import_dynamic libc_flock flock "/usr/lib/libSystem.B.dylib"
691
692 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
693
694 func Fpathconf(fd int, name int) (val int, err error) {
695         r0, _, e1 := syscall(abi.FuncPCABI0(libc_fpathconf_trampoline), uintptr(fd), uintptr(name), 0)
696         val = int(r0)
697         if e1 != 0 {
698                 err = errnoErr(e1)
699         }
700         return
701 }
702
703 func libc_fpathconf_trampoline()
704
705 //go:cgo_import_dynamic libc_fpathconf fpathconf "/usr/lib/libSystem.B.dylib"
706
707 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
708
709 func Fsync(fd int) (err error) {
710         _, _, e1 := syscall(abi.FuncPCABI0(libc_fsync_trampoline), uintptr(fd), 0, 0)
711         if e1 != 0 {
712                 err = errnoErr(e1)
713         }
714         return
715 }
716
717 func libc_fsync_trampoline()
718
719 //go:cgo_import_dynamic libc_fsync fsync "/usr/lib/libSystem.B.dylib"
720
721 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
722
723 func Ftruncate(fd int, length int64) (err error) {
724         _, _, e1 := syscall(abi.FuncPCABI0(libc_ftruncate_trampoline), uintptr(fd), uintptr(length), 0)
725         if e1 != 0 {
726                 err = errnoErr(e1)
727         }
728         return
729 }
730
731 func libc_ftruncate_trampoline()
732
733 //go:cgo_import_dynamic libc_ftruncate ftruncate "/usr/lib/libSystem.B.dylib"
734
735 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
736
737 func Getdtablesize() (size int) {
738         r0, _, _ := syscall(abi.FuncPCABI0(libc_getdtablesize_trampoline), 0, 0, 0)
739         size = int(r0)
740         return
741 }
742
743 func libc_getdtablesize_trampoline()
744
745 //go:cgo_import_dynamic libc_getdtablesize getdtablesize "/usr/lib/libSystem.B.dylib"
746
747 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
748
749 func Getegid() (egid int) {
750         r0, _, _ := rawSyscall(abi.FuncPCABI0(libc_getegid_trampoline), 0, 0, 0)
751         egid = int(r0)
752         return
753 }
754
755 func libc_getegid_trampoline()
756
757 //go:cgo_import_dynamic libc_getegid getegid "/usr/lib/libSystem.B.dylib"
758
759 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
760
761 func Geteuid() (uid int) {
762         r0, _, _ := rawSyscall(abi.FuncPCABI0(libc_geteuid_trampoline), 0, 0, 0)
763         uid = int(r0)
764         return
765 }
766
767 func libc_geteuid_trampoline()
768
769 //go:cgo_import_dynamic libc_geteuid geteuid "/usr/lib/libSystem.B.dylib"
770
771 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
772
773 func Getgid() (gid int) {
774         r0, _, _ := rawSyscall(abi.FuncPCABI0(libc_getgid_trampoline), 0, 0, 0)
775         gid = int(r0)
776         return
777 }
778
779 func libc_getgid_trampoline()
780
781 //go:cgo_import_dynamic libc_getgid getgid "/usr/lib/libSystem.B.dylib"
782
783 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
784
785 func Getpgid(pid int) (pgid int, err error) {
786         r0, _, e1 := rawSyscall(abi.FuncPCABI0(libc_getpgid_trampoline), uintptr(pid), 0, 0)
787         pgid = int(r0)
788         if e1 != 0 {
789                 err = errnoErr(e1)
790         }
791         return
792 }
793
794 func libc_getpgid_trampoline()
795
796 //go:cgo_import_dynamic libc_getpgid getpgid "/usr/lib/libSystem.B.dylib"
797
798 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
799
800 func Getpgrp() (pgrp int) {
801         r0, _, _ := rawSyscall(abi.FuncPCABI0(libc_getpgrp_trampoline), 0, 0, 0)
802         pgrp = int(r0)
803         return
804 }
805
806 func libc_getpgrp_trampoline()
807
808 //go:cgo_import_dynamic libc_getpgrp getpgrp "/usr/lib/libSystem.B.dylib"
809
810 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
811
812 func Getpid() (pid int) {
813         r0, _, _ := rawSyscall(abi.FuncPCABI0(libc_getpid_trampoline), 0, 0, 0)
814         pid = int(r0)
815         return
816 }
817
818 func libc_getpid_trampoline()
819
820 //go:cgo_import_dynamic libc_getpid getpid "/usr/lib/libSystem.B.dylib"
821
822 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
823
824 func Getppid() (ppid int) {
825         r0, _, _ := rawSyscall(abi.FuncPCABI0(libc_getppid_trampoline), 0, 0, 0)
826         ppid = int(r0)
827         return
828 }
829
830 func libc_getppid_trampoline()
831
832 //go:cgo_import_dynamic libc_getppid getppid "/usr/lib/libSystem.B.dylib"
833
834 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
835
836 func Getpriority(which int, who int) (prio int, err error) {
837         r0, _, e1 := syscall(abi.FuncPCABI0(libc_getpriority_trampoline), uintptr(which), uintptr(who), 0)
838         prio = int(r0)
839         if e1 != 0 {
840                 err = errnoErr(e1)
841         }
842         return
843 }
844
845 func libc_getpriority_trampoline()
846
847 //go:cgo_import_dynamic libc_getpriority getpriority "/usr/lib/libSystem.B.dylib"
848
849 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
850
851 func Getrlimit(which int, lim *Rlimit) (err error) {
852         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_getrlimit_trampoline), uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
853         if e1 != 0 {
854                 err = errnoErr(e1)
855         }
856         return
857 }
858
859 func libc_getrlimit_trampoline()
860
861 //go:cgo_import_dynamic libc_getrlimit getrlimit "/usr/lib/libSystem.B.dylib"
862
863 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
864
865 func Getrusage(who int, rusage *Rusage) (err error) {
866         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_getrusage_trampoline), uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
867         if e1 != 0 {
868                 err = errnoErr(e1)
869         }
870         return
871 }
872
873 func libc_getrusage_trampoline()
874
875 //go:cgo_import_dynamic libc_getrusage getrusage "/usr/lib/libSystem.B.dylib"
876
877 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
878
879 func Getsid(pid int) (sid int, err error) {
880         r0, _, e1 := rawSyscall(abi.FuncPCABI0(libc_getsid_trampoline), uintptr(pid), 0, 0)
881         sid = int(r0)
882         if e1 != 0 {
883                 err = errnoErr(e1)
884         }
885         return
886 }
887
888 func libc_getsid_trampoline()
889
890 //go:cgo_import_dynamic libc_getsid getsid "/usr/lib/libSystem.B.dylib"
891
892 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
893
894 func Getuid() (uid int) {
895         r0, _, _ := rawSyscall(abi.FuncPCABI0(libc_getuid_trampoline), 0, 0, 0)
896         uid = int(r0)
897         return
898 }
899
900 func libc_getuid_trampoline()
901
902 //go:cgo_import_dynamic libc_getuid getuid "/usr/lib/libSystem.B.dylib"
903
904 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
905
906 func Issetugid() (tainted bool) {
907         r0, _, _ := rawSyscall(abi.FuncPCABI0(libc_issetugid_trampoline), 0, 0, 0)
908         tainted = bool(r0 != 0)
909         return
910 }
911
912 func libc_issetugid_trampoline()
913
914 //go:cgo_import_dynamic libc_issetugid issetugid "/usr/lib/libSystem.B.dylib"
915
916 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
917
918 func Kqueue() (fd int, err error) {
919         r0, _, e1 := syscall(abi.FuncPCABI0(libc_kqueue_trampoline), 0, 0, 0)
920         fd = int(r0)
921         if e1 != 0 {
922                 err = errnoErr(e1)
923         }
924         return
925 }
926
927 func libc_kqueue_trampoline()
928
929 //go:cgo_import_dynamic libc_kqueue kqueue "/usr/lib/libSystem.B.dylib"
930
931 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
932
933 func Lchown(path string, uid int, gid int) (err error) {
934         var _p0 *byte
935         _p0, err = BytePtrFromString(path)
936         if err != nil {
937                 return
938         }
939         _, _, e1 := syscall(abi.FuncPCABI0(libc_lchown_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
940         if e1 != 0 {
941                 err = errnoErr(e1)
942         }
943         return
944 }
945
946 func libc_lchown_trampoline()
947
948 //go:cgo_import_dynamic libc_lchown lchown "/usr/lib/libSystem.B.dylib"
949
950 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
951
952 func Link(path string, link string) (err error) {
953         var _p0 *byte
954         _p0, err = BytePtrFromString(path)
955         if err != nil {
956                 return
957         }
958         var _p1 *byte
959         _p1, err = BytePtrFromString(link)
960         if err != nil {
961                 return
962         }
963         _, _, e1 := syscall(abi.FuncPCABI0(libc_link_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
964         if e1 != 0 {
965                 err = errnoErr(e1)
966         }
967         return
968 }
969
970 func libc_link_trampoline()
971
972 //go:cgo_import_dynamic libc_link link "/usr/lib/libSystem.B.dylib"
973
974 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
975
976 func Listen(s int, backlog int) (err error) {
977         _, _, e1 := syscall(abi.FuncPCABI0(libc_listen_trampoline), uintptr(s), uintptr(backlog), 0)
978         if e1 != 0 {
979                 err = errnoErr(e1)
980         }
981         return
982 }
983
984 func libc_listen_trampoline()
985
986 //go:cgo_import_dynamic libc_listen listen "/usr/lib/libSystem.B.dylib"
987
988 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
989
990 func Mkdir(path string, mode uint32) (err error) {
991         var _p0 *byte
992         _p0, err = BytePtrFromString(path)
993         if err != nil {
994                 return
995         }
996         _, _, e1 := syscall(abi.FuncPCABI0(libc_mkdir_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
997         if e1 != 0 {
998                 err = errnoErr(e1)
999         }
1000         return
1001 }
1002
1003 func libc_mkdir_trampoline()
1004
1005 //go:cgo_import_dynamic libc_mkdir mkdir "/usr/lib/libSystem.B.dylib"
1006
1007 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1008
1009 func Mkfifo(path string, mode uint32) (err error) {
1010         var _p0 *byte
1011         _p0, err = BytePtrFromString(path)
1012         if err != nil {
1013                 return
1014         }
1015         _, _, e1 := syscall(abi.FuncPCABI0(libc_mkfifo_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
1016         if e1 != 0 {
1017                 err = errnoErr(e1)
1018         }
1019         return
1020 }
1021
1022 func libc_mkfifo_trampoline()
1023
1024 //go:cgo_import_dynamic libc_mkfifo mkfifo "/usr/lib/libSystem.B.dylib"
1025
1026 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1027
1028 func Mknod(path string, mode uint32, dev int) (err error) {
1029         var _p0 *byte
1030         _p0, err = BytePtrFromString(path)
1031         if err != nil {
1032                 return
1033         }
1034         _, _, e1 := syscall(abi.FuncPCABI0(libc_mknod_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
1035         if e1 != 0 {
1036                 err = errnoErr(e1)
1037         }
1038         return
1039 }
1040
1041 func libc_mknod_trampoline()
1042
1043 //go:cgo_import_dynamic libc_mknod mknod "/usr/lib/libSystem.B.dylib"
1044
1045 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1046
1047 func Mlock(b []byte) (err error) {
1048         var _p0 unsafe.Pointer
1049         if len(b) > 0 {
1050                 _p0 = unsafe.Pointer(&b[0])
1051         } else {
1052                 _p0 = unsafe.Pointer(&_zero)
1053         }
1054         _, _, e1 := syscall(abi.FuncPCABI0(libc_mlock_trampoline), uintptr(_p0), uintptr(len(b)), 0)
1055         if e1 != 0 {
1056                 err = errnoErr(e1)
1057         }
1058         return
1059 }
1060
1061 func libc_mlock_trampoline()
1062
1063 //go:cgo_import_dynamic libc_mlock mlock "/usr/lib/libSystem.B.dylib"
1064
1065 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1066
1067 func Mlockall(flags int) (err error) {
1068         _, _, e1 := syscall(abi.FuncPCABI0(libc_mlockall_trampoline), uintptr(flags), 0, 0)
1069         if e1 != 0 {
1070                 err = errnoErr(e1)
1071         }
1072         return
1073 }
1074
1075 func libc_mlockall_trampoline()
1076
1077 //go:cgo_import_dynamic libc_mlockall mlockall "/usr/lib/libSystem.B.dylib"
1078
1079 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1080
1081 func Mprotect(b []byte, prot int) (err error) {
1082         var _p0 unsafe.Pointer
1083         if len(b) > 0 {
1084                 _p0 = unsafe.Pointer(&b[0])
1085         } else {
1086                 _p0 = unsafe.Pointer(&_zero)
1087         }
1088         _, _, e1 := syscall(abi.FuncPCABI0(libc_mprotect_trampoline), uintptr(_p0), uintptr(len(b)), uintptr(prot))
1089         if e1 != 0 {
1090                 err = errnoErr(e1)
1091         }
1092         return
1093 }
1094
1095 func libc_mprotect_trampoline()
1096
1097 //go:cgo_import_dynamic libc_mprotect mprotect "/usr/lib/libSystem.B.dylib"
1098
1099 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1100
1101 func msync(b []byte, flags int) (err error) {
1102         var _p0 unsafe.Pointer
1103         if len(b) > 0 {
1104                 _p0 = unsafe.Pointer(&b[0])
1105         } else {
1106                 _p0 = unsafe.Pointer(&_zero)
1107         }
1108         _, _, e1 := syscall(abi.FuncPCABI0(libc_msync_trampoline), uintptr(_p0), uintptr(len(b)), uintptr(flags))
1109         if e1 != 0 {
1110                 err = errnoErr(e1)
1111         }
1112         return
1113 }
1114
1115 func libc_msync_trampoline()
1116
1117 //go:cgo_import_dynamic libc_msync msync "/usr/lib/libSystem.B.dylib"
1118
1119 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1120
1121 func Munlock(b []byte) (err error) {
1122         var _p0 unsafe.Pointer
1123         if len(b) > 0 {
1124                 _p0 = unsafe.Pointer(&b[0])
1125         } else {
1126                 _p0 = unsafe.Pointer(&_zero)
1127         }
1128         _, _, e1 := syscall(abi.FuncPCABI0(libc_munlock_trampoline), uintptr(_p0), uintptr(len(b)), 0)
1129         if e1 != 0 {
1130                 err = errnoErr(e1)
1131         }
1132         return
1133 }
1134
1135 func libc_munlock_trampoline()
1136
1137 //go:cgo_import_dynamic libc_munlock munlock "/usr/lib/libSystem.B.dylib"
1138
1139 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1140
1141 func Munlockall() (err error) {
1142         _, _, e1 := syscall(abi.FuncPCABI0(libc_munlockall_trampoline), 0, 0, 0)
1143         if e1 != 0 {
1144                 err = errnoErr(e1)
1145         }
1146         return
1147 }
1148
1149 func libc_munlockall_trampoline()
1150
1151 //go:cgo_import_dynamic libc_munlockall munlockall "/usr/lib/libSystem.B.dylib"
1152
1153 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1154
1155 func Open(path string, mode int, perm uint32) (fd int, err error) {
1156         var _p0 *byte
1157         _p0, err = BytePtrFromString(path)
1158         if err != nil {
1159                 return
1160         }
1161         r0, _, e1 := syscall(abi.FuncPCABI0(libc_open_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
1162         fd = int(r0)
1163         if e1 != 0 {
1164                 err = errnoErr(e1)
1165         }
1166         return
1167 }
1168
1169 func libc_open_trampoline()
1170
1171 //go:cgo_import_dynamic libc_open open "/usr/lib/libSystem.B.dylib"
1172
1173 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1174
1175 func Pathconf(path string, name int) (val int, err error) {
1176         var _p0 *byte
1177         _p0, err = BytePtrFromString(path)
1178         if err != nil {
1179                 return
1180         }
1181         r0, _, e1 := syscall(abi.FuncPCABI0(libc_pathconf_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
1182         val = int(r0)
1183         if e1 != 0 {
1184                 err = errnoErr(e1)
1185         }
1186         return
1187 }
1188
1189 func libc_pathconf_trampoline()
1190
1191 //go:cgo_import_dynamic libc_pathconf pathconf "/usr/lib/libSystem.B.dylib"
1192
1193 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1194
1195 func pread(fd int, p []byte, offset int64) (n int, err error) {
1196         var _p0 unsafe.Pointer
1197         if len(p) > 0 {
1198                 _p0 = unsafe.Pointer(&p[0])
1199         } else {
1200                 _p0 = unsafe.Pointer(&_zero)
1201         }
1202         r0, _, e1 := syscall6(abi.FuncPCABI0(libc_pread_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
1203         n = int(r0)
1204         if e1 != 0 {
1205                 err = errnoErr(e1)
1206         }
1207         return
1208 }
1209
1210 func libc_pread_trampoline()
1211
1212 //go:cgo_import_dynamic libc_pread pread "/usr/lib/libSystem.B.dylib"
1213
1214 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1215
1216 func pwrite(fd int, p []byte, offset int64) (n int, err error) {
1217         var _p0 unsafe.Pointer
1218         if len(p) > 0 {
1219                 _p0 = unsafe.Pointer(&p[0])
1220         } else {
1221                 _p0 = unsafe.Pointer(&_zero)
1222         }
1223         r0, _, e1 := syscall6(abi.FuncPCABI0(libc_pwrite_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0)
1224         n = int(r0)
1225         if e1 != 0 {
1226                 err = errnoErr(e1)
1227         }
1228         return
1229 }
1230
1231 func libc_pwrite_trampoline()
1232
1233 //go:cgo_import_dynamic libc_pwrite pwrite "/usr/lib/libSystem.B.dylib"
1234
1235 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1236
1237 func read(fd int, p []byte) (n int, err error) {
1238         var _p0 unsafe.Pointer
1239         if len(p) > 0 {
1240                 _p0 = unsafe.Pointer(&p[0])
1241         } else {
1242                 _p0 = unsafe.Pointer(&_zero)
1243         }
1244         r0, _, e1 := syscall(abi.FuncPCABI0(libc_read_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)))
1245         n = int(r0)
1246         if e1 != 0 {
1247                 err = errnoErr(e1)
1248         }
1249         return
1250 }
1251
1252 func libc_read_trampoline()
1253
1254 //go:cgo_import_dynamic libc_read read "/usr/lib/libSystem.B.dylib"
1255
1256 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1257
1258 func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
1259         r0, _, _ := syscall(abi.FuncPCABI0(libc_readdir_r_trampoline), uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
1260         res = Errno(r0)
1261         return
1262 }
1263
1264 func libc_readdir_r_trampoline()
1265
1266 //go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"
1267
1268 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1269
1270 func Readlink(path string, buf []byte) (n int, err error) {
1271         var _p0 *byte
1272         _p0, err = BytePtrFromString(path)
1273         if err != nil {
1274                 return
1275         }
1276         var _p1 unsafe.Pointer
1277         if len(buf) > 0 {
1278                 _p1 = unsafe.Pointer(&buf[0])
1279         } else {
1280                 _p1 = unsafe.Pointer(&_zero)
1281         }
1282         r0, _, e1 := syscall(abi.FuncPCABI0(libc_readlink_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
1283         n = int(r0)
1284         if e1 != 0 {
1285                 err = errnoErr(e1)
1286         }
1287         return
1288 }
1289
1290 func libc_readlink_trampoline()
1291
1292 //go:cgo_import_dynamic libc_readlink readlink "/usr/lib/libSystem.B.dylib"
1293
1294 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1295
1296 func Rename(from string, to string) (err error) {
1297         var _p0 *byte
1298         _p0, err = BytePtrFromString(from)
1299         if err != nil {
1300                 return
1301         }
1302         var _p1 *byte
1303         _p1, err = BytePtrFromString(to)
1304         if err != nil {
1305                 return
1306         }
1307         _, _, e1 := syscall(abi.FuncPCABI0(libc_rename_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1308         if e1 != 0 {
1309                 err = errnoErr(e1)
1310         }
1311         return
1312 }
1313
1314 func libc_rename_trampoline()
1315
1316 //go:cgo_import_dynamic libc_rename rename "/usr/lib/libSystem.B.dylib"
1317
1318 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1319
1320 func Revoke(path string) (err error) {
1321         var _p0 *byte
1322         _p0, err = BytePtrFromString(path)
1323         if err != nil {
1324                 return
1325         }
1326         _, _, e1 := syscall(abi.FuncPCABI0(libc_revoke_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
1327         if e1 != 0 {
1328                 err = errnoErr(e1)
1329         }
1330         return
1331 }
1332
1333 func libc_revoke_trampoline()
1334
1335 //go:cgo_import_dynamic libc_revoke revoke "/usr/lib/libSystem.B.dylib"
1336
1337 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1338
1339 func Rmdir(path string) (err error) {
1340         var _p0 *byte
1341         _p0, err = BytePtrFromString(path)
1342         if err != nil {
1343                 return
1344         }
1345         _, _, e1 := syscall(abi.FuncPCABI0(libc_rmdir_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
1346         if e1 != 0 {
1347                 err = errnoErr(e1)
1348         }
1349         return
1350 }
1351
1352 func libc_rmdir_trampoline()
1353
1354 //go:cgo_import_dynamic libc_rmdir rmdir "/usr/lib/libSystem.B.dylib"
1355
1356 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1357
1358 func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1359         r0, _, e1 := syscallX(abi.FuncPCABI0(libc_lseek_trampoline), uintptr(fd), uintptr(offset), uintptr(whence))
1360         newoffset = int64(r0)
1361         if e1 != 0 {
1362                 err = errnoErr(e1)
1363         }
1364         return
1365 }
1366
1367 func libc_lseek_trampoline()
1368
1369 //go:cgo_import_dynamic libc_lseek lseek "/usr/lib/libSystem.B.dylib"
1370
1371 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1372
1373 func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
1374         _, _, 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)
1375         if e1 != 0 {
1376                 err = errnoErr(e1)
1377         }
1378         return
1379 }
1380
1381 func libc_select_trampoline()
1382
1383 //go:cgo_import_dynamic libc_select select "/usr/lib/libSystem.B.dylib"
1384
1385 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1386
1387 func Setegid(egid int) (err error) {
1388         _, _, e1 := syscall(abi.FuncPCABI0(libc_setegid_trampoline), uintptr(egid), 0, 0)
1389         if e1 != 0 {
1390                 err = errnoErr(e1)
1391         }
1392         return
1393 }
1394
1395 func libc_setegid_trampoline()
1396
1397 //go:cgo_import_dynamic libc_setegid setegid "/usr/lib/libSystem.B.dylib"
1398
1399 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1400
1401 func Seteuid(euid int) (err error) {
1402         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_seteuid_trampoline), uintptr(euid), 0, 0)
1403         if e1 != 0 {
1404                 err = errnoErr(e1)
1405         }
1406         return
1407 }
1408
1409 func libc_seteuid_trampoline()
1410
1411 //go:cgo_import_dynamic libc_seteuid seteuid "/usr/lib/libSystem.B.dylib"
1412
1413 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1414
1415 func Setgid(gid int) (err error) {
1416         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setgid_trampoline), uintptr(gid), 0, 0)
1417         if e1 != 0 {
1418                 err = errnoErr(e1)
1419         }
1420         return
1421 }
1422
1423 func libc_setgid_trampoline()
1424
1425 //go:cgo_import_dynamic libc_setgid setgid "/usr/lib/libSystem.B.dylib"
1426
1427 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1428
1429 func Setlogin(name string) (err error) {
1430         var _p0 *byte
1431         _p0, err = BytePtrFromString(name)
1432         if err != nil {
1433                 return
1434         }
1435         _, _, e1 := syscall(abi.FuncPCABI0(libc_setlogin_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
1436         if e1 != 0 {
1437                 err = errnoErr(e1)
1438         }
1439         return
1440 }
1441
1442 func libc_setlogin_trampoline()
1443
1444 //go:cgo_import_dynamic libc_setlogin setlogin "/usr/lib/libSystem.B.dylib"
1445
1446 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1447
1448 func Setpgid(pid int, pgid int) (err error) {
1449         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setpgid_trampoline), uintptr(pid), uintptr(pgid), 0)
1450         if e1 != 0 {
1451                 err = errnoErr(e1)
1452         }
1453         return
1454 }
1455
1456 func libc_setpgid_trampoline()
1457
1458 //go:cgo_import_dynamic libc_setpgid setpgid "/usr/lib/libSystem.B.dylib"
1459
1460 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1461
1462 func Setpriority(which int, who int, prio int) (err error) {
1463         _, _, e1 := syscall(abi.FuncPCABI0(libc_setpriority_trampoline), uintptr(which), uintptr(who), uintptr(prio))
1464         if e1 != 0 {
1465                 err = errnoErr(e1)
1466         }
1467         return
1468 }
1469
1470 func libc_setpriority_trampoline()
1471
1472 //go:cgo_import_dynamic libc_setpriority setpriority "/usr/lib/libSystem.B.dylib"
1473
1474 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1475
1476 func Setprivexec(flag int) (err error) {
1477         _, _, e1 := syscall(abi.FuncPCABI0(libc_setprivexec_trampoline), uintptr(flag), 0, 0)
1478         if e1 != 0 {
1479                 err = errnoErr(e1)
1480         }
1481         return
1482 }
1483
1484 func libc_setprivexec_trampoline()
1485
1486 //go:cgo_import_dynamic libc_setprivexec setprivexec "/usr/lib/libSystem.B.dylib"
1487
1488 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1489
1490 func Setregid(rgid int, egid int) (err error) {
1491         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setregid_trampoline), uintptr(rgid), uintptr(egid), 0)
1492         if e1 != 0 {
1493                 err = errnoErr(e1)
1494         }
1495         return
1496 }
1497
1498 func libc_setregid_trampoline()
1499
1500 //go:cgo_import_dynamic libc_setregid setregid "/usr/lib/libSystem.B.dylib"
1501
1502 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1503
1504 func Setreuid(ruid int, euid int) (err error) {
1505         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setreuid_trampoline), uintptr(ruid), uintptr(euid), 0)
1506         if e1 != 0 {
1507                 err = errnoErr(e1)
1508         }
1509         return
1510 }
1511
1512 func libc_setreuid_trampoline()
1513
1514 //go:cgo_import_dynamic libc_setreuid setreuid "/usr/lib/libSystem.B.dylib"
1515
1516 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1517
1518 func setrlimit(which int, lim *Rlimit) (err error) {
1519         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setrlimit_trampoline), uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
1520         if e1 != 0 {
1521                 err = errnoErr(e1)
1522         }
1523         return
1524 }
1525
1526 func libc_setrlimit_trampoline()
1527
1528 //go:cgo_import_dynamic libc_setrlimit setrlimit "/usr/lib/libSystem.B.dylib"
1529
1530 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1531
1532 func Setsid() (pid int, err error) {
1533         r0, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setsid_trampoline), 0, 0, 0)
1534         pid = int(r0)
1535         if e1 != 0 {
1536                 err = errnoErr(e1)
1537         }
1538         return
1539 }
1540
1541 func libc_setsid_trampoline()
1542
1543 //go:cgo_import_dynamic libc_setsid setsid "/usr/lib/libSystem.B.dylib"
1544
1545 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1546
1547 func Settimeofday(tp *Timeval) (err error) {
1548         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_settimeofday_trampoline), uintptr(unsafe.Pointer(tp)), 0, 0)
1549         if e1 != 0 {
1550                 err = errnoErr(e1)
1551         }
1552         return
1553 }
1554
1555 func libc_settimeofday_trampoline()
1556
1557 //go:cgo_import_dynamic libc_settimeofday settimeofday "/usr/lib/libSystem.B.dylib"
1558
1559 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1560
1561 func Setuid(uid int) (err error) {
1562         _, _, e1 := rawSyscall(abi.FuncPCABI0(libc_setuid_trampoline), uintptr(uid), 0, 0)
1563         if e1 != 0 {
1564                 err = errnoErr(e1)
1565         }
1566         return
1567 }
1568
1569 func libc_setuid_trampoline()
1570
1571 //go:cgo_import_dynamic libc_setuid setuid "/usr/lib/libSystem.B.dylib"
1572
1573 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1574
1575 func Symlink(path string, link string) (err error) {
1576         var _p0 *byte
1577         _p0, err = BytePtrFromString(path)
1578         if err != nil {
1579                 return
1580         }
1581         var _p1 *byte
1582         _p1, err = BytePtrFromString(link)
1583         if err != nil {
1584                 return
1585         }
1586         _, _, e1 := syscall(abi.FuncPCABI0(libc_symlink_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1587         if e1 != 0 {
1588                 err = errnoErr(e1)
1589         }
1590         return
1591 }
1592
1593 func libc_symlink_trampoline()
1594
1595 //go:cgo_import_dynamic libc_symlink symlink "/usr/lib/libSystem.B.dylib"
1596
1597 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1598
1599 func Sync() (err error) {
1600         _, _, e1 := syscall(abi.FuncPCABI0(libc_sync_trampoline), 0, 0, 0)
1601         if e1 != 0 {
1602                 err = errnoErr(e1)
1603         }
1604         return
1605 }
1606
1607 func libc_sync_trampoline()
1608
1609 //go:cgo_import_dynamic libc_sync sync "/usr/lib/libSystem.B.dylib"
1610
1611 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1612
1613 func Truncate(path string, length int64) (err error) {
1614         var _p0 *byte
1615         _p0, err = BytePtrFromString(path)
1616         if err != nil {
1617                 return
1618         }
1619         _, _, e1 := syscall(abi.FuncPCABI0(libc_truncate_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(length), 0)
1620         if e1 != 0 {
1621                 err = errnoErr(e1)
1622         }
1623         return
1624 }
1625
1626 func libc_truncate_trampoline()
1627
1628 //go:cgo_import_dynamic libc_truncate truncate "/usr/lib/libSystem.B.dylib"
1629
1630 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1631
1632 func Umask(newmask int) (oldmask int) {
1633         r0, _, _ := syscall(abi.FuncPCABI0(libc_umask_trampoline), uintptr(newmask), 0, 0)
1634         oldmask = int(r0)
1635         return
1636 }
1637
1638 func libc_umask_trampoline()
1639
1640 //go:cgo_import_dynamic libc_umask umask "/usr/lib/libSystem.B.dylib"
1641
1642 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1643
1644 func Undelete(path string) (err error) {
1645         var _p0 *byte
1646         _p0, err = BytePtrFromString(path)
1647         if err != nil {
1648                 return
1649         }
1650         _, _, e1 := syscall(abi.FuncPCABI0(libc_undelete_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
1651         if e1 != 0 {
1652                 err = errnoErr(e1)
1653         }
1654         return
1655 }
1656
1657 func libc_undelete_trampoline()
1658
1659 //go:cgo_import_dynamic libc_undelete undelete "/usr/lib/libSystem.B.dylib"
1660
1661 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1662
1663 func Unlink(path string) (err error) {
1664         var _p0 *byte
1665         _p0, err = BytePtrFromString(path)
1666         if err != nil {
1667                 return
1668         }
1669         _, _, e1 := syscall(abi.FuncPCABI0(libc_unlink_trampoline), uintptr(unsafe.Pointer(_p0)), 0, 0)
1670         if e1 != 0 {
1671                 err = errnoErr(e1)
1672         }
1673         return
1674 }
1675
1676 func libc_unlink_trampoline()
1677
1678 //go:cgo_import_dynamic libc_unlink unlink "/usr/lib/libSystem.B.dylib"
1679
1680 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1681
1682 func Unmount(path string, flags int) (err error) {
1683         var _p0 *byte
1684         _p0, err = BytePtrFromString(path)
1685         if err != nil {
1686                 return
1687         }
1688         _, _, e1 := syscall(abi.FuncPCABI0(libc_unmount_trampoline), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
1689         if e1 != 0 {
1690                 err = errnoErr(e1)
1691         }
1692         return
1693 }
1694
1695 func libc_unmount_trampoline()
1696
1697 //go:cgo_import_dynamic libc_unmount unmount "/usr/lib/libSystem.B.dylib"
1698
1699 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1700
1701 func write(fd int, p []byte) (n int, err error) {
1702         var _p0 unsafe.Pointer
1703         if len(p) > 0 {
1704                 _p0 = unsafe.Pointer(&p[0])
1705         } else {
1706                 _p0 = unsafe.Pointer(&_zero)
1707         }
1708         r0, _, e1 := syscall(abi.FuncPCABI0(libc_write_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(p)))
1709         n = int(r0)
1710         if e1 != 0 {
1711                 err = errnoErr(e1)
1712         }
1713         return
1714 }
1715
1716 func libc_write_trampoline()
1717
1718 //go:cgo_import_dynamic libc_write write "/usr/lib/libSystem.B.dylib"
1719
1720 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1721
1722 func writev(fd int, iovecs []Iovec) (cnt uintptr, err error) {
1723         var _p0 unsafe.Pointer
1724         if len(iovecs) > 0 {
1725                 _p0 = unsafe.Pointer(&iovecs[0])
1726         } else {
1727                 _p0 = unsafe.Pointer(&_zero)
1728         }
1729         r0, _, e1 := syscallX(abi.FuncPCABI0(libc_writev_trampoline), uintptr(fd), uintptr(_p0), uintptr(len(iovecs)))
1730         cnt = uintptr(r0)
1731         if e1 != 0 {
1732                 err = errnoErr(e1)
1733         }
1734         return
1735 }
1736
1737 func libc_writev_trampoline()
1738
1739 //go:cgo_import_dynamic libc_writev writev "/usr/lib/libSystem.B.dylib"
1740
1741 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1742
1743 func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
1744         r0, _, e1 := syscall6X(abi.FuncPCABI0(libc_mmap_trampoline), uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos))
1745         ret = uintptr(r0)
1746         if e1 != 0 {
1747                 err = errnoErr(e1)
1748         }
1749         return
1750 }
1751
1752 func libc_mmap_trampoline()
1753
1754 //go:cgo_import_dynamic libc_mmap mmap "/usr/lib/libSystem.B.dylib"
1755
1756 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1757
1758 func munmap(addr uintptr, length uintptr) (err error) {
1759         _, _, e1 := syscall(abi.FuncPCABI0(libc_munmap_trampoline), uintptr(addr), uintptr(length), 0)
1760         if e1 != 0 {
1761                 err = errnoErr(e1)
1762         }
1763         return
1764 }
1765
1766 func libc_munmap_trampoline()
1767
1768 //go:cgo_import_dynamic libc_munmap munmap "/usr/lib/libSystem.B.dylib"
1769
1770 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1771
1772 func fork() (pid int, err error) {
1773         r0, _, e1 := rawSyscall(abi.FuncPCABI0(libc_fork_trampoline), 0, 0, 0)
1774         pid = int(r0)
1775         if e1 != 0 {
1776                 err = errnoErr(e1)
1777         }
1778         return
1779 }
1780
1781 func libc_fork_trampoline()
1782
1783 //go:cgo_import_dynamic libc_fork fork "/usr/lib/libSystem.B.dylib"
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"