Ready to release 0.6.0
[aya.git] / vendor / golang.org / x / sys / unix / zsyscall_openbsd_arm.go
blob8da6791d1e339a84158cf519a70c50d84ee9b68a
1 // go run mksyscall.go -l32 -openbsd -arm -libc -tags openbsd,arm syscall_bsd.go syscall_openbsd.go syscall_openbsd_arm.go
2 // Code generated by the command above; see README.md. DO NOT EDIT.
4 //go:build openbsd && arm
5 // +build openbsd,arm
7 package unix
9 import (
10 "syscall"
11 "unsafe"
14 var _ syscall.Errno
16 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
18 func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
19 r0, _, e1 := syscall_rawSyscall(libc_getgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
20 n = int(r0)
21 if e1 != 0 {
22 err = errnoErr(e1)
24 return
27 var libc_getgroups_trampoline_addr uintptr
29 //go:cgo_import_dynamic libc_getgroups getgroups "libc.so"
31 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
33 func setgroups(ngid int, gid *_Gid_t) (err error) {
34 _, _, e1 := syscall_rawSyscall(libc_setgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)
35 if e1 != 0 {
36 err = errnoErr(e1)
38 return
41 var libc_setgroups_trampoline_addr uintptr
43 //go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
45 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
47 func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) {
48 r0, _, e1 := syscall_syscall6(libc_wait4_trampoline_addr, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)
49 wpid = int(r0)
50 if e1 != 0 {
51 err = errnoErr(e1)
53 return
56 var libc_wait4_trampoline_addr uintptr
58 //go:cgo_import_dynamic libc_wait4 wait4 "libc.so"
60 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
62 func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
63 r0, _, e1 := syscall_syscall(libc_accept_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
64 fd = int(r0)
65 if e1 != 0 {
66 err = errnoErr(e1)
68 return
71 var libc_accept_trampoline_addr uintptr
73 //go:cgo_import_dynamic libc_accept accept "libc.so"
75 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
77 func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
78 _, _, e1 := syscall_syscall(libc_bind_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen))
79 if e1 != 0 {
80 err = errnoErr(e1)
82 return
85 var libc_bind_trampoline_addr uintptr
87 //go:cgo_import_dynamic libc_bind bind "libc.so"
89 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
91 func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
92 _, _, e1 := syscall_syscall(libc_connect_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen))
93 if e1 != 0 {
94 err = errnoErr(e1)
96 return
99 var libc_connect_trampoline_addr uintptr
101 //go:cgo_import_dynamic libc_connect connect "libc.so"
103 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
105 func socket(domain int, typ int, proto int) (fd int, err error) {
106 r0, _, e1 := syscall_rawSyscall(libc_socket_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto))
107 fd = int(r0)
108 if e1 != 0 {
109 err = errnoErr(e1)
111 return
114 var libc_socket_trampoline_addr uintptr
116 //go:cgo_import_dynamic libc_socket socket "libc.so"
118 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
120 func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
121 _, _, e1 := syscall_syscall6(libc_getsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
122 if e1 != 0 {
123 err = errnoErr(e1)
125 return
128 var libc_getsockopt_trampoline_addr uintptr
130 //go:cgo_import_dynamic libc_getsockopt getsockopt "libc.so"
132 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
134 func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
135 _, _, e1 := syscall_syscall6(libc_setsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
136 if e1 != 0 {
137 err = errnoErr(e1)
139 return
142 var libc_setsockopt_trampoline_addr uintptr
144 //go:cgo_import_dynamic libc_setsockopt setsockopt "libc.so"
146 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
148 func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
149 _, _, e1 := syscall_rawSyscall(libc_getpeername_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
150 if e1 != 0 {
151 err = errnoErr(e1)
153 return
156 var libc_getpeername_trampoline_addr uintptr
158 //go:cgo_import_dynamic libc_getpeername getpeername "libc.so"
160 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
162 func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
163 _, _, e1 := syscall_rawSyscall(libc_getsockname_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
164 if e1 != 0 {
165 err = errnoErr(e1)
167 return
170 var libc_getsockname_trampoline_addr uintptr
172 //go:cgo_import_dynamic libc_getsockname getsockname "libc.so"
174 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
176 func Shutdown(s int, how int) (err error) {
177 _, _, e1 := syscall_syscall(libc_shutdown_trampoline_addr, uintptr(s), uintptr(how), 0)
178 if e1 != 0 {
179 err = errnoErr(e1)
181 return
184 var libc_shutdown_trampoline_addr uintptr
186 //go:cgo_import_dynamic libc_shutdown shutdown "libc.so"
188 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
190 func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
191 _, _, e1 := syscall_rawSyscall6(libc_socketpair_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
192 if e1 != 0 {
193 err = errnoErr(e1)
195 return
198 var libc_socketpair_trampoline_addr uintptr
200 //go:cgo_import_dynamic libc_socketpair socketpair "libc.so"
202 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
204 func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
205 var _p0 unsafe.Pointer
206 if len(p) > 0 {
207 _p0 = unsafe.Pointer(&p[0])
208 } else {
209 _p0 = unsafe.Pointer(&_zero)
211 r0, _, e1 := syscall_syscall6(libc_recvfrom_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
212 n = int(r0)
213 if e1 != 0 {
214 err = errnoErr(e1)
216 return
219 var libc_recvfrom_trampoline_addr uintptr
221 //go:cgo_import_dynamic libc_recvfrom recvfrom "libc.so"
223 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
225 func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
226 var _p0 unsafe.Pointer
227 if len(buf) > 0 {
228 _p0 = unsafe.Pointer(&buf[0])
229 } else {
230 _p0 = unsafe.Pointer(&_zero)
232 _, _, e1 := syscall_syscall6(libc_sendto_trampoline_addr, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
233 if e1 != 0 {
234 err = errnoErr(e1)
236 return
239 var libc_sendto_trampoline_addr uintptr
241 //go:cgo_import_dynamic libc_sendto sendto "libc.so"
243 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
245 func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
246 r0, _, e1 := syscall_syscall(libc_recvmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
247 n = int(r0)
248 if e1 != 0 {
249 err = errnoErr(e1)
251 return
254 var libc_recvmsg_trampoline_addr uintptr
256 //go:cgo_import_dynamic libc_recvmsg recvmsg "libc.so"
258 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
260 func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
261 r0, _, e1 := syscall_syscall(libc_sendmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
262 n = int(r0)
263 if e1 != 0 {
264 err = errnoErr(e1)
266 return
269 var libc_sendmsg_trampoline_addr uintptr
271 //go:cgo_import_dynamic libc_sendmsg sendmsg "libc.so"
273 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
275 func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) {
276 r0, _, e1 := syscall_syscall6(libc_kevent_trampoline_addr, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))
277 n = int(r0)
278 if e1 != 0 {
279 err = errnoErr(e1)
281 return
284 var libc_kevent_trampoline_addr uintptr
286 //go:cgo_import_dynamic libc_kevent kevent "libc.so"
288 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
290 func utimes(path string, timeval *[2]Timeval) (err error) {
291 var _p0 *byte
292 _p0, err = BytePtrFromString(path)
293 if err != nil {
294 return
296 _, _, e1 := syscall_syscall(libc_utimes_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0)
297 if e1 != 0 {
298 err = errnoErr(e1)
300 return
303 var libc_utimes_trampoline_addr uintptr
305 //go:cgo_import_dynamic libc_utimes utimes "libc.so"
307 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
309 func futimes(fd int, timeval *[2]Timeval) (err error) {
310 _, _, e1 := syscall_syscall(libc_futimes_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0)
311 if e1 != 0 {
312 err = errnoErr(e1)
314 return
317 var libc_futimes_trampoline_addr uintptr
319 //go:cgo_import_dynamic libc_futimes futimes "libc.so"
321 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
323 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
324 r0, _, e1 := syscall_syscall(libc_poll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
325 n = int(r0)
326 if e1 != 0 {
327 err = errnoErr(e1)
329 return
332 var libc_poll_trampoline_addr uintptr
334 //go:cgo_import_dynamic libc_poll poll "libc.so"
336 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
338 func Madvise(b []byte, behav int) (err error) {
339 var _p0 unsafe.Pointer
340 if len(b) > 0 {
341 _p0 = unsafe.Pointer(&b[0])
342 } else {
343 _p0 = unsafe.Pointer(&_zero)
345 _, _, e1 := syscall_syscall(libc_madvise_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(behav))
346 if e1 != 0 {
347 err = errnoErr(e1)
349 return
352 var libc_madvise_trampoline_addr uintptr
354 //go:cgo_import_dynamic libc_madvise madvise "libc.so"
356 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
358 func Mlock(b []byte) (err error) {
359 var _p0 unsafe.Pointer
360 if len(b) > 0 {
361 _p0 = unsafe.Pointer(&b[0])
362 } else {
363 _p0 = unsafe.Pointer(&_zero)
365 _, _, e1 := syscall_syscall(libc_mlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0)
366 if e1 != 0 {
367 err = errnoErr(e1)
369 return
372 var libc_mlock_trampoline_addr uintptr
374 //go:cgo_import_dynamic libc_mlock mlock "libc.so"
376 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
378 func Mlockall(flags int) (err error) {
379 _, _, e1 := syscall_syscall(libc_mlockall_trampoline_addr, uintptr(flags), 0, 0)
380 if e1 != 0 {
381 err = errnoErr(e1)
383 return
386 var libc_mlockall_trampoline_addr uintptr
388 //go:cgo_import_dynamic libc_mlockall mlockall "libc.so"
390 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
392 func Mprotect(b []byte, prot int) (err error) {
393 var _p0 unsafe.Pointer
394 if len(b) > 0 {
395 _p0 = unsafe.Pointer(&b[0])
396 } else {
397 _p0 = unsafe.Pointer(&_zero)
399 _, _, e1 := syscall_syscall(libc_mprotect_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(prot))
400 if e1 != 0 {
401 err = errnoErr(e1)
403 return
406 var libc_mprotect_trampoline_addr uintptr
408 //go:cgo_import_dynamic libc_mprotect mprotect "libc.so"
410 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
412 func Msync(b []byte, flags int) (err error) {
413 var _p0 unsafe.Pointer
414 if len(b) > 0 {
415 _p0 = unsafe.Pointer(&b[0])
416 } else {
417 _p0 = unsafe.Pointer(&_zero)
419 _, _, e1 := syscall_syscall(libc_msync_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(flags))
420 if e1 != 0 {
421 err = errnoErr(e1)
423 return
426 var libc_msync_trampoline_addr uintptr
428 //go:cgo_import_dynamic libc_msync msync "libc.so"
430 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
432 func Munlock(b []byte) (err error) {
433 var _p0 unsafe.Pointer
434 if len(b) > 0 {
435 _p0 = unsafe.Pointer(&b[0])
436 } else {
437 _p0 = unsafe.Pointer(&_zero)
439 _, _, e1 := syscall_syscall(libc_munlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0)
440 if e1 != 0 {
441 err = errnoErr(e1)
443 return
446 var libc_munlock_trampoline_addr uintptr
448 //go:cgo_import_dynamic libc_munlock munlock "libc.so"
450 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
452 func Munlockall() (err error) {
453 _, _, e1 := syscall_syscall(libc_munlockall_trampoline_addr, 0, 0, 0)
454 if e1 != 0 {
455 err = errnoErr(e1)
457 return
460 var libc_munlockall_trampoline_addr uintptr
462 //go:cgo_import_dynamic libc_munlockall munlockall "libc.so"
464 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
466 func pipe2(p *[2]_C_int, flags int) (err error) {
467 _, _, e1 := syscall_rawSyscall(libc_pipe2_trampoline_addr, uintptr(unsafe.Pointer(p)), uintptr(flags), 0)
468 if e1 != 0 {
469 err = errnoErr(e1)
471 return
474 var libc_pipe2_trampoline_addr uintptr
476 //go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so"
478 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
480 func Getdents(fd int, buf []byte) (n int, err error) {
481 var _p0 unsafe.Pointer
482 if len(buf) > 0 {
483 _p0 = unsafe.Pointer(&buf[0])
484 } else {
485 _p0 = unsafe.Pointer(&_zero)
487 r0, _, e1 := syscall_syscall(libc_getdents_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
488 n = int(r0)
489 if e1 != 0 {
490 err = errnoErr(e1)
492 return
495 var libc_getdents_trampoline_addr uintptr
497 //go:cgo_import_dynamic libc_getdents getdents "libc.so"
499 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
501 func Getcwd(buf []byte) (n int, err error) {
502 var _p0 unsafe.Pointer
503 if len(buf) > 0 {
504 _p0 = unsafe.Pointer(&buf[0])
505 } else {
506 _p0 = unsafe.Pointer(&_zero)
508 r0, _, e1 := syscall_syscall(libc_getcwd_trampoline_addr, uintptr(_p0), uintptr(len(buf)), 0)
509 n = int(r0)
510 if e1 != 0 {
511 err = errnoErr(e1)
513 return
516 var libc_getcwd_trampoline_addr uintptr
518 //go:cgo_import_dynamic libc_getcwd getcwd "libc.so"
520 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
522 func ioctl(fd int, req uint, arg uintptr) (err error) {
523 _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg))
524 if e1 != 0 {
525 err = errnoErr(e1)
527 return
530 var libc_ioctl_trampoline_addr uintptr
532 //go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
534 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
536 func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
537 var _p0 unsafe.Pointer
538 if len(mib) > 0 {
539 _p0 = unsafe.Pointer(&mib[0])
540 } else {
541 _p0 = unsafe.Pointer(&_zero)
543 _, _, e1 := syscall_syscall6(libc_sysctl_trampoline_addr, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
544 if e1 != 0 {
545 err = errnoErr(e1)
547 return
550 var libc_sysctl_trampoline_addr uintptr
552 //go:cgo_import_dynamic libc_sysctl sysctl "libc.so"
554 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
556 func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
557 r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0)
558 n = int(r0)
559 if e1 != 0 {
560 err = errnoErr(e1)
562 return
565 var libc_ppoll_trampoline_addr uintptr
567 //go:cgo_import_dynamic libc_ppoll ppoll "libc.so"
569 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
571 func Access(path string, mode uint32) (err error) {
572 var _p0 *byte
573 _p0, err = BytePtrFromString(path)
574 if err != nil {
575 return
577 _, _, e1 := syscall_syscall(libc_access_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
578 if e1 != 0 {
579 err = errnoErr(e1)
581 return
584 var libc_access_trampoline_addr uintptr
586 //go:cgo_import_dynamic libc_access access "libc.so"
588 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
590 func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
591 _, _, e1 := syscall_syscall(libc_adjtime_trampoline_addr, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0)
592 if e1 != 0 {
593 err = errnoErr(e1)
595 return
598 var libc_adjtime_trampoline_addr uintptr
600 //go:cgo_import_dynamic libc_adjtime adjtime "libc.so"
602 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
604 func Chdir(path string) (err error) {
605 var _p0 *byte
606 _p0, err = BytePtrFromString(path)
607 if err != nil {
608 return
610 _, _, e1 := syscall_syscall(libc_chdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
611 if e1 != 0 {
612 err = errnoErr(e1)
614 return
617 var libc_chdir_trampoline_addr uintptr
619 //go:cgo_import_dynamic libc_chdir chdir "libc.so"
621 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
623 func Chflags(path string, flags int) (err error) {
624 var _p0 *byte
625 _p0, err = BytePtrFromString(path)
626 if err != nil {
627 return
629 _, _, e1 := syscall_syscall(libc_chflags_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
630 if e1 != 0 {
631 err = errnoErr(e1)
633 return
636 var libc_chflags_trampoline_addr uintptr
638 //go:cgo_import_dynamic libc_chflags chflags "libc.so"
640 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
642 func Chmod(path string, mode uint32) (err error) {
643 var _p0 *byte
644 _p0, err = BytePtrFromString(path)
645 if err != nil {
646 return
648 _, _, e1 := syscall_syscall(libc_chmod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
649 if e1 != 0 {
650 err = errnoErr(e1)
652 return
655 var libc_chmod_trampoline_addr uintptr
657 //go:cgo_import_dynamic libc_chmod chmod "libc.so"
659 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
661 func Chown(path string, uid int, gid int) (err error) {
662 var _p0 *byte
663 _p0, err = BytePtrFromString(path)
664 if err != nil {
665 return
667 _, _, e1 := syscall_syscall(libc_chown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
668 if e1 != 0 {
669 err = errnoErr(e1)
671 return
674 var libc_chown_trampoline_addr uintptr
676 //go:cgo_import_dynamic libc_chown chown "libc.so"
678 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
680 func Chroot(path string) (err error) {
681 var _p0 *byte
682 _p0, err = BytePtrFromString(path)
683 if err != nil {
684 return
686 _, _, e1 := syscall_syscall(libc_chroot_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
687 if e1 != 0 {
688 err = errnoErr(e1)
690 return
693 var libc_chroot_trampoline_addr uintptr
695 //go:cgo_import_dynamic libc_chroot chroot "libc.so"
697 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
699 func Close(fd int) (err error) {
700 _, _, e1 := syscall_syscall(libc_close_trampoline_addr, uintptr(fd), 0, 0)
701 if e1 != 0 {
702 err = errnoErr(e1)
704 return
707 var libc_close_trampoline_addr uintptr
709 //go:cgo_import_dynamic libc_close close "libc.so"
711 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
713 func Dup(fd int) (nfd int, err error) {
714 r0, _, e1 := syscall_syscall(libc_dup_trampoline_addr, uintptr(fd), 0, 0)
715 nfd = int(r0)
716 if e1 != 0 {
717 err = errnoErr(e1)
719 return
722 var libc_dup_trampoline_addr uintptr
724 //go:cgo_import_dynamic libc_dup dup "libc.so"
726 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
728 func Dup2(from int, to int) (err error) {
729 _, _, e1 := syscall_syscall(libc_dup2_trampoline_addr, uintptr(from), uintptr(to), 0)
730 if e1 != 0 {
731 err = errnoErr(e1)
733 return
736 var libc_dup2_trampoline_addr uintptr
738 //go:cgo_import_dynamic libc_dup2 dup2 "libc.so"
740 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
742 func Dup3(from int, to int, flags int) (err error) {
743 _, _, e1 := syscall_syscall(libc_dup3_trampoline_addr, uintptr(from), uintptr(to), uintptr(flags))
744 if e1 != 0 {
745 err = errnoErr(e1)
747 return
750 var libc_dup3_trampoline_addr uintptr
752 //go:cgo_import_dynamic libc_dup3 dup3 "libc.so"
754 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
756 func Exit(code int) {
757 syscall_syscall(libc_exit_trampoline_addr, uintptr(code), 0, 0)
758 return
761 var libc_exit_trampoline_addr uintptr
763 //go:cgo_import_dynamic libc_exit exit "libc.so"
765 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
767 func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
768 var _p0 *byte
769 _p0, err = BytePtrFromString(path)
770 if err != nil {
771 return
773 _, _, e1 := syscall_syscall6(libc_faccessat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
774 if e1 != 0 {
775 err = errnoErr(e1)
777 return
780 var libc_faccessat_trampoline_addr uintptr
782 //go:cgo_import_dynamic libc_faccessat faccessat "libc.so"
784 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
786 func Fchdir(fd int) (err error) {
787 _, _, e1 := syscall_syscall(libc_fchdir_trampoline_addr, uintptr(fd), 0, 0)
788 if e1 != 0 {
789 err = errnoErr(e1)
791 return
794 var libc_fchdir_trampoline_addr uintptr
796 //go:cgo_import_dynamic libc_fchdir fchdir "libc.so"
798 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
800 func Fchflags(fd int, flags int) (err error) {
801 _, _, e1 := syscall_syscall(libc_fchflags_trampoline_addr, uintptr(fd), uintptr(flags), 0)
802 if e1 != 0 {
803 err = errnoErr(e1)
805 return
808 var libc_fchflags_trampoline_addr uintptr
810 //go:cgo_import_dynamic libc_fchflags fchflags "libc.so"
812 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
814 func Fchmod(fd int, mode uint32) (err error) {
815 _, _, e1 := syscall_syscall(libc_fchmod_trampoline_addr, uintptr(fd), uintptr(mode), 0)
816 if e1 != 0 {
817 err = errnoErr(e1)
819 return
822 var libc_fchmod_trampoline_addr uintptr
824 //go:cgo_import_dynamic libc_fchmod fchmod "libc.so"
826 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
828 func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
829 var _p0 *byte
830 _p0, err = BytePtrFromString(path)
831 if err != nil {
832 return
834 _, _, e1 := syscall_syscall6(libc_fchmodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
835 if e1 != 0 {
836 err = errnoErr(e1)
838 return
841 var libc_fchmodat_trampoline_addr uintptr
843 //go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so"
845 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
847 func Fchown(fd int, uid int, gid int) (err error) {
848 _, _, e1 := syscall_syscall(libc_fchown_trampoline_addr, uintptr(fd), uintptr(uid), uintptr(gid))
849 if e1 != 0 {
850 err = errnoErr(e1)
852 return
855 var libc_fchown_trampoline_addr uintptr
857 //go:cgo_import_dynamic libc_fchown fchown "libc.so"
859 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
861 func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
862 var _p0 *byte
863 _p0, err = BytePtrFromString(path)
864 if err != nil {
865 return
867 _, _, e1 := syscall_syscall6(libc_fchownat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
868 if e1 != 0 {
869 err = errnoErr(e1)
871 return
874 var libc_fchownat_trampoline_addr uintptr
876 //go:cgo_import_dynamic libc_fchownat fchownat "libc.so"
878 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
880 func Flock(fd int, how int) (err error) {
881 _, _, e1 := syscall_syscall(libc_flock_trampoline_addr, uintptr(fd), uintptr(how), 0)
882 if e1 != 0 {
883 err = errnoErr(e1)
885 return
888 var libc_flock_trampoline_addr uintptr
890 //go:cgo_import_dynamic libc_flock flock "libc.so"
892 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
894 func Fpathconf(fd int, name int) (val int, err error) {
895 r0, _, e1 := syscall_syscall(libc_fpathconf_trampoline_addr, uintptr(fd), uintptr(name), 0)
896 val = int(r0)
897 if e1 != 0 {
898 err = errnoErr(e1)
900 return
903 var libc_fpathconf_trampoline_addr uintptr
905 //go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so"
907 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
909 func Fstat(fd int, stat *Stat_t) (err error) {
910 _, _, e1 := syscall_syscall(libc_fstat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
911 if e1 != 0 {
912 err = errnoErr(e1)
914 return
917 var libc_fstat_trampoline_addr uintptr
919 //go:cgo_import_dynamic libc_fstat fstat "libc.so"
921 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
923 func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
924 var _p0 *byte
925 _p0, err = BytePtrFromString(path)
926 if err != nil {
927 return
929 _, _, e1 := syscall_syscall6(libc_fstatat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
930 if e1 != 0 {
931 err = errnoErr(e1)
933 return
936 var libc_fstatat_trampoline_addr uintptr
938 //go:cgo_import_dynamic libc_fstatat fstatat "libc.so"
940 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
942 func Fstatfs(fd int, stat *Statfs_t) (err error) {
943 _, _, e1 := syscall_syscall(libc_fstatfs_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
944 if e1 != 0 {
945 err = errnoErr(e1)
947 return
950 var libc_fstatfs_trampoline_addr uintptr
952 //go:cgo_import_dynamic libc_fstatfs fstatfs "libc.so"
954 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
956 func Fsync(fd int) (err error) {
957 _, _, e1 := syscall_syscall(libc_fsync_trampoline_addr, uintptr(fd), 0, 0)
958 if e1 != 0 {
959 err = errnoErr(e1)
961 return
964 var libc_fsync_trampoline_addr uintptr
966 //go:cgo_import_dynamic libc_fsync fsync "libc.so"
968 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
970 func Ftruncate(fd int, length int64) (err error) {
971 _, _, e1 := syscall_syscall6(libc_ftruncate_trampoline_addr, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0)
972 if e1 != 0 {
973 err = errnoErr(e1)
975 return
978 var libc_ftruncate_trampoline_addr uintptr
980 //go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so"
982 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
984 func Getegid() (egid int) {
985 r0, _, _ := syscall_rawSyscall(libc_getegid_trampoline_addr, 0, 0, 0)
986 egid = int(r0)
987 return
990 var libc_getegid_trampoline_addr uintptr
992 //go:cgo_import_dynamic libc_getegid getegid "libc.so"
994 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
996 func Geteuid() (uid int) {
997 r0, _, _ := syscall_rawSyscall(libc_geteuid_trampoline_addr, 0, 0, 0)
998 uid = int(r0)
999 return
1002 var libc_geteuid_trampoline_addr uintptr
1004 //go:cgo_import_dynamic libc_geteuid geteuid "libc.so"
1006 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1008 func Getgid() (gid int) {
1009 r0, _, _ := syscall_rawSyscall(libc_getgid_trampoline_addr, 0, 0, 0)
1010 gid = int(r0)
1011 return
1014 var libc_getgid_trampoline_addr uintptr
1016 //go:cgo_import_dynamic libc_getgid getgid "libc.so"
1018 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1020 func Getpgid(pid int) (pgid int, err error) {
1021 r0, _, e1 := syscall_rawSyscall(libc_getpgid_trampoline_addr, uintptr(pid), 0, 0)
1022 pgid = int(r0)
1023 if e1 != 0 {
1024 err = errnoErr(e1)
1026 return
1029 var libc_getpgid_trampoline_addr uintptr
1031 //go:cgo_import_dynamic libc_getpgid getpgid "libc.so"
1033 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1035 func Getpgrp() (pgrp int) {
1036 r0, _, _ := syscall_rawSyscall(libc_getpgrp_trampoline_addr, 0, 0, 0)
1037 pgrp = int(r0)
1038 return
1041 var libc_getpgrp_trampoline_addr uintptr
1043 //go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so"
1045 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1047 func Getpid() (pid int) {
1048 r0, _, _ := syscall_rawSyscall(libc_getpid_trampoline_addr, 0, 0, 0)
1049 pid = int(r0)
1050 return
1053 var libc_getpid_trampoline_addr uintptr
1055 //go:cgo_import_dynamic libc_getpid getpid "libc.so"
1057 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1059 func Getppid() (ppid int) {
1060 r0, _, _ := syscall_rawSyscall(libc_getppid_trampoline_addr, 0, 0, 0)
1061 ppid = int(r0)
1062 return
1065 var libc_getppid_trampoline_addr uintptr
1067 //go:cgo_import_dynamic libc_getppid getppid "libc.so"
1069 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1071 func Getpriority(which int, who int) (prio int, err error) {
1072 r0, _, e1 := syscall_syscall(libc_getpriority_trampoline_addr, uintptr(which), uintptr(who), 0)
1073 prio = int(r0)
1074 if e1 != 0 {
1075 err = errnoErr(e1)
1077 return
1080 var libc_getpriority_trampoline_addr uintptr
1082 //go:cgo_import_dynamic libc_getpriority getpriority "libc.so"
1084 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1086 func Getrlimit(which int, lim *Rlimit) (err error) {
1087 _, _, e1 := syscall_rawSyscall(libc_getrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
1088 if e1 != 0 {
1089 err = errnoErr(e1)
1091 return
1094 var libc_getrlimit_trampoline_addr uintptr
1096 //go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so"
1098 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1100 func Getrtable() (rtable int, err error) {
1101 r0, _, e1 := syscall_rawSyscall(libc_getrtable_trampoline_addr, 0, 0, 0)
1102 rtable = int(r0)
1103 if e1 != 0 {
1104 err = errnoErr(e1)
1106 return
1109 var libc_getrtable_trampoline_addr uintptr
1111 //go:cgo_import_dynamic libc_getrtable getrtable "libc.so"
1113 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1115 func Getrusage(who int, rusage *Rusage) (err error) {
1116 _, _, e1 := syscall_rawSyscall(libc_getrusage_trampoline_addr, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0)
1117 if e1 != 0 {
1118 err = errnoErr(e1)
1120 return
1123 var libc_getrusage_trampoline_addr uintptr
1125 //go:cgo_import_dynamic libc_getrusage getrusage "libc.so"
1127 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1129 func Getsid(pid int) (sid int, err error) {
1130 r0, _, e1 := syscall_rawSyscall(libc_getsid_trampoline_addr, uintptr(pid), 0, 0)
1131 sid = int(r0)
1132 if e1 != 0 {
1133 err = errnoErr(e1)
1135 return
1138 var libc_getsid_trampoline_addr uintptr
1140 //go:cgo_import_dynamic libc_getsid getsid "libc.so"
1142 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1144 func Gettimeofday(tv *Timeval) (err error) {
1145 _, _, e1 := syscall_rawSyscall(libc_gettimeofday_trampoline_addr, uintptr(unsafe.Pointer(tv)), 0, 0)
1146 if e1 != 0 {
1147 err = errnoErr(e1)
1149 return
1152 var libc_gettimeofday_trampoline_addr uintptr
1154 //go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so"
1156 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1158 func Getuid() (uid int) {
1159 r0, _, _ := syscall_rawSyscall(libc_getuid_trampoline_addr, 0, 0, 0)
1160 uid = int(r0)
1161 return
1164 var libc_getuid_trampoline_addr uintptr
1166 //go:cgo_import_dynamic libc_getuid getuid "libc.so"
1168 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1170 func Issetugid() (tainted bool) {
1171 r0, _, _ := syscall_syscall(libc_issetugid_trampoline_addr, 0, 0, 0)
1172 tainted = bool(r0 != 0)
1173 return
1176 var libc_issetugid_trampoline_addr uintptr
1178 //go:cgo_import_dynamic libc_issetugid issetugid "libc.so"
1180 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1182 func Kill(pid int, signum syscall.Signal) (err error) {
1183 _, _, e1 := syscall_syscall(libc_kill_trampoline_addr, uintptr(pid), uintptr(signum), 0)
1184 if e1 != 0 {
1185 err = errnoErr(e1)
1187 return
1190 var libc_kill_trampoline_addr uintptr
1192 //go:cgo_import_dynamic libc_kill kill "libc.so"
1194 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1196 func Kqueue() (fd int, err error) {
1197 r0, _, e1 := syscall_syscall(libc_kqueue_trampoline_addr, 0, 0, 0)
1198 fd = int(r0)
1199 if e1 != 0 {
1200 err = errnoErr(e1)
1202 return
1205 var libc_kqueue_trampoline_addr uintptr
1207 //go:cgo_import_dynamic libc_kqueue kqueue "libc.so"
1209 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1211 func Lchown(path string, uid int, gid int) (err error) {
1212 var _p0 *byte
1213 _p0, err = BytePtrFromString(path)
1214 if err != nil {
1215 return
1217 _, _, e1 := syscall_syscall(libc_lchown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
1218 if e1 != 0 {
1219 err = errnoErr(e1)
1221 return
1224 var libc_lchown_trampoline_addr uintptr
1226 //go:cgo_import_dynamic libc_lchown lchown "libc.so"
1228 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1230 func Link(path string, link string) (err error) {
1231 var _p0 *byte
1232 _p0, err = BytePtrFromString(path)
1233 if err != nil {
1234 return
1236 var _p1 *byte
1237 _p1, err = BytePtrFromString(link)
1238 if err != nil {
1239 return
1241 _, _, e1 := syscall_syscall(libc_link_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1242 if e1 != 0 {
1243 err = errnoErr(e1)
1245 return
1248 var libc_link_trampoline_addr uintptr
1250 //go:cgo_import_dynamic libc_link link "libc.so"
1252 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1254 func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) {
1255 var _p0 *byte
1256 _p0, err = BytePtrFromString(path)
1257 if err != nil {
1258 return
1260 var _p1 *byte
1261 _p1, err = BytePtrFromString(link)
1262 if err != nil {
1263 return
1265 _, _, e1 := syscall_syscall6(libc_linkat_trampoline_addr, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
1266 if e1 != 0 {
1267 err = errnoErr(e1)
1269 return
1272 var libc_linkat_trampoline_addr uintptr
1274 //go:cgo_import_dynamic libc_linkat linkat "libc.so"
1276 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1278 func Listen(s int, backlog int) (err error) {
1279 _, _, e1 := syscall_syscall(libc_listen_trampoline_addr, uintptr(s), uintptr(backlog), 0)
1280 if e1 != 0 {
1281 err = errnoErr(e1)
1283 return
1286 var libc_listen_trampoline_addr uintptr
1288 //go:cgo_import_dynamic libc_listen listen "libc.so"
1290 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1292 func Lstat(path string, stat *Stat_t) (err error) {
1293 var _p0 *byte
1294 _p0, err = BytePtrFromString(path)
1295 if err != nil {
1296 return
1298 _, _, e1 := syscall_syscall(libc_lstat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1299 if e1 != 0 {
1300 err = errnoErr(e1)
1302 return
1305 var libc_lstat_trampoline_addr uintptr
1307 //go:cgo_import_dynamic libc_lstat lstat "libc.so"
1309 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1311 func Mkdir(path string, mode uint32) (err error) {
1312 var _p0 *byte
1313 _p0, err = BytePtrFromString(path)
1314 if err != nil {
1315 return
1317 _, _, e1 := syscall_syscall(libc_mkdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
1318 if e1 != 0 {
1319 err = errnoErr(e1)
1321 return
1324 var libc_mkdir_trampoline_addr uintptr
1326 //go:cgo_import_dynamic libc_mkdir mkdir "libc.so"
1328 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1330 func Mkdirat(dirfd int, path string, mode uint32) (err error) {
1331 var _p0 *byte
1332 _p0, err = BytePtrFromString(path)
1333 if err != nil {
1334 return
1336 _, _, e1 := syscall_syscall(libc_mkdirat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
1337 if e1 != 0 {
1338 err = errnoErr(e1)
1340 return
1343 var libc_mkdirat_trampoline_addr uintptr
1345 //go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so"
1347 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1349 func Mkfifo(path string, mode uint32) (err error) {
1350 var _p0 *byte
1351 _p0, err = BytePtrFromString(path)
1352 if err != nil {
1353 return
1355 _, _, e1 := syscall_syscall(libc_mkfifo_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0)
1356 if e1 != 0 {
1357 err = errnoErr(e1)
1359 return
1362 var libc_mkfifo_trampoline_addr uintptr
1364 //go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so"
1366 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1368 func Mkfifoat(dirfd int, path string, mode uint32) (err error) {
1369 var _p0 *byte
1370 _p0, err = BytePtrFromString(path)
1371 if err != nil {
1372 return
1374 _, _, e1 := syscall_syscall(libc_mkfifoat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
1375 if e1 != 0 {
1376 err = errnoErr(e1)
1378 return
1381 var libc_mkfifoat_trampoline_addr uintptr
1383 //go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so"
1385 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1387 func Mknod(path string, mode uint32, dev int) (err error) {
1388 var _p0 *byte
1389 _p0, err = BytePtrFromString(path)
1390 if err != nil {
1391 return
1393 _, _, e1 := syscall_syscall(libc_mknod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev))
1394 if e1 != 0 {
1395 err = errnoErr(e1)
1397 return
1400 var libc_mknod_trampoline_addr uintptr
1402 //go:cgo_import_dynamic libc_mknod mknod "libc.so"
1404 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1406 func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
1407 var _p0 *byte
1408 _p0, err = BytePtrFromString(path)
1409 if err != nil {
1410 return
1412 _, _, e1 := syscall_syscall6(libc_mknodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
1413 if e1 != 0 {
1414 err = errnoErr(e1)
1416 return
1419 var libc_mknodat_trampoline_addr uintptr
1421 //go:cgo_import_dynamic libc_mknodat mknodat "libc.so"
1423 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1425 func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
1426 _, _, e1 := syscall_syscall(libc_nanosleep_trampoline_addr, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
1427 if e1 != 0 {
1428 err = errnoErr(e1)
1430 return
1433 var libc_nanosleep_trampoline_addr uintptr
1435 //go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so"
1437 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1439 func Open(path string, mode int, perm uint32) (fd int, err error) {
1440 var _p0 *byte
1441 _p0, err = BytePtrFromString(path)
1442 if err != nil {
1443 return
1445 r0, _, e1 := syscall_syscall(libc_open_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))
1446 fd = int(r0)
1447 if e1 != 0 {
1448 err = errnoErr(e1)
1450 return
1453 var libc_open_trampoline_addr uintptr
1455 //go:cgo_import_dynamic libc_open open "libc.so"
1457 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1459 func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) {
1460 var _p0 *byte
1461 _p0, err = BytePtrFromString(path)
1462 if err != nil {
1463 return
1465 r0, _, e1 := syscall_syscall6(libc_openat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0)
1466 fd = int(r0)
1467 if e1 != 0 {
1468 err = errnoErr(e1)
1470 return
1473 var libc_openat_trampoline_addr uintptr
1475 //go:cgo_import_dynamic libc_openat openat "libc.so"
1477 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1479 func Pathconf(path string, name int) (val int, err error) {
1480 var _p0 *byte
1481 _p0, err = BytePtrFromString(path)
1482 if err != nil {
1483 return
1485 r0, _, e1 := syscall_syscall(libc_pathconf_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)
1486 val = int(r0)
1487 if e1 != 0 {
1488 err = errnoErr(e1)
1490 return
1493 var libc_pathconf_trampoline_addr uintptr
1495 //go:cgo_import_dynamic libc_pathconf pathconf "libc.so"
1497 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1499 func pread(fd int, p []byte, offset int64) (n int, err error) {
1500 var _p0 unsafe.Pointer
1501 if len(p) > 0 {
1502 _p0 = unsafe.Pointer(&p[0])
1503 } else {
1504 _p0 = unsafe.Pointer(&_zero)
1506 r0, _, e1 := syscall_syscall6(libc_pread_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))
1507 n = int(r0)
1508 if e1 != 0 {
1509 err = errnoErr(e1)
1511 return
1514 var libc_pread_trampoline_addr uintptr
1516 //go:cgo_import_dynamic libc_pread pread "libc.so"
1518 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1520 func pwrite(fd int, p []byte, offset int64) (n int, err error) {
1521 var _p0 unsafe.Pointer
1522 if len(p) > 0 {
1523 _p0 = unsafe.Pointer(&p[0])
1524 } else {
1525 _p0 = unsafe.Pointer(&_zero)
1527 r0, _, e1 := syscall_syscall6(libc_pwrite_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))
1528 n = int(r0)
1529 if e1 != 0 {
1530 err = errnoErr(e1)
1532 return
1535 var libc_pwrite_trampoline_addr uintptr
1537 //go:cgo_import_dynamic libc_pwrite pwrite "libc.so"
1539 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1541 func read(fd int, p []byte) (n int, err error) {
1542 var _p0 unsafe.Pointer
1543 if len(p) > 0 {
1544 _p0 = unsafe.Pointer(&p[0])
1545 } else {
1546 _p0 = unsafe.Pointer(&_zero)
1548 r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)))
1549 n = int(r0)
1550 if e1 != 0 {
1551 err = errnoErr(e1)
1553 return
1556 var libc_read_trampoline_addr uintptr
1558 //go:cgo_import_dynamic libc_read read "libc.so"
1560 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1562 func Readlink(path string, buf []byte) (n int, err error) {
1563 var _p0 *byte
1564 _p0, err = BytePtrFromString(path)
1565 if err != nil {
1566 return
1568 var _p1 unsafe.Pointer
1569 if len(buf) > 0 {
1570 _p1 = unsafe.Pointer(&buf[0])
1571 } else {
1572 _p1 = unsafe.Pointer(&_zero)
1574 r0, _, e1 := syscall_syscall(libc_readlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))
1575 n = int(r0)
1576 if e1 != 0 {
1577 err = errnoErr(e1)
1579 return
1582 var libc_readlink_trampoline_addr uintptr
1584 //go:cgo_import_dynamic libc_readlink readlink "libc.so"
1586 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1588 func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
1589 var _p0 *byte
1590 _p0, err = BytePtrFromString(path)
1591 if err != nil {
1592 return
1594 var _p1 unsafe.Pointer
1595 if len(buf) > 0 {
1596 _p1 = unsafe.Pointer(&buf[0])
1597 } else {
1598 _p1 = unsafe.Pointer(&_zero)
1600 r0, _, e1 := syscall_syscall6(libc_readlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
1601 n = int(r0)
1602 if e1 != 0 {
1603 err = errnoErr(e1)
1605 return
1608 var libc_readlinkat_trampoline_addr uintptr
1610 //go:cgo_import_dynamic libc_readlinkat readlinkat "libc.so"
1612 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1614 func Rename(from string, to string) (err error) {
1615 var _p0 *byte
1616 _p0, err = BytePtrFromString(from)
1617 if err != nil {
1618 return
1620 var _p1 *byte
1621 _p1, err = BytePtrFromString(to)
1622 if err != nil {
1623 return
1625 _, _, e1 := syscall_syscall(libc_rename_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1626 if e1 != 0 {
1627 err = errnoErr(e1)
1629 return
1632 var libc_rename_trampoline_addr uintptr
1634 //go:cgo_import_dynamic libc_rename rename "libc.so"
1636 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1638 func Renameat(fromfd int, from string, tofd int, to string) (err error) {
1639 var _p0 *byte
1640 _p0, err = BytePtrFromString(from)
1641 if err != nil {
1642 return
1644 var _p1 *byte
1645 _p1, err = BytePtrFromString(to)
1646 if err != nil {
1647 return
1649 _, _, e1 := syscall_syscall6(libc_renameat_trampoline_addr, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0)
1650 if e1 != 0 {
1651 err = errnoErr(e1)
1653 return
1656 var libc_renameat_trampoline_addr uintptr
1658 //go:cgo_import_dynamic libc_renameat renameat "libc.so"
1660 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1662 func Revoke(path string) (err error) {
1663 var _p0 *byte
1664 _p0, err = BytePtrFromString(path)
1665 if err != nil {
1666 return
1668 _, _, e1 := syscall_syscall(libc_revoke_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
1669 if e1 != 0 {
1670 err = errnoErr(e1)
1672 return
1675 var libc_revoke_trampoline_addr uintptr
1677 //go:cgo_import_dynamic libc_revoke revoke "libc.so"
1679 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1681 func Rmdir(path string) (err error) {
1682 var _p0 *byte
1683 _p0, err = BytePtrFromString(path)
1684 if err != nil {
1685 return
1687 _, _, e1 := syscall_syscall(libc_rmdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
1688 if e1 != 0 {
1689 err = errnoErr(e1)
1691 return
1694 var libc_rmdir_trampoline_addr uintptr
1696 //go:cgo_import_dynamic libc_rmdir rmdir "libc.so"
1698 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1700 func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
1701 r0, r1, e1 := syscall_syscall6(libc_lseek_trampoline_addr, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(whence), 0)
1702 newoffset = int64(int64(r1)<<32 | int64(r0))
1703 if e1 != 0 {
1704 err = errnoErr(e1)
1706 return
1709 var libc_lseek_trampoline_addr uintptr
1711 //go:cgo_import_dynamic libc_lseek lseek "libc.so"
1713 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1715 func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
1716 r0, _, e1 := syscall_syscall6(libc_select_trampoline_addr, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
1717 n = int(r0)
1718 if e1 != 0 {
1719 err = errnoErr(e1)
1721 return
1724 var libc_select_trampoline_addr uintptr
1726 //go:cgo_import_dynamic libc_select select "libc.so"
1728 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1730 func Setegid(egid int) (err error) {
1731 _, _, e1 := syscall_rawSyscall(libc_setegid_trampoline_addr, uintptr(egid), 0, 0)
1732 if e1 != 0 {
1733 err = errnoErr(e1)
1735 return
1738 var libc_setegid_trampoline_addr uintptr
1740 //go:cgo_import_dynamic libc_setegid setegid "libc.so"
1742 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1744 func Seteuid(euid int) (err error) {
1745 _, _, e1 := syscall_rawSyscall(libc_seteuid_trampoline_addr, uintptr(euid), 0, 0)
1746 if e1 != 0 {
1747 err = errnoErr(e1)
1749 return
1752 var libc_seteuid_trampoline_addr uintptr
1754 //go:cgo_import_dynamic libc_seteuid seteuid "libc.so"
1756 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1758 func Setgid(gid int) (err error) {
1759 _, _, e1 := syscall_rawSyscall(libc_setgid_trampoline_addr, uintptr(gid), 0, 0)
1760 if e1 != 0 {
1761 err = errnoErr(e1)
1763 return
1766 var libc_setgid_trampoline_addr uintptr
1768 //go:cgo_import_dynamic libc_setgid setgid "libc.so"
1770 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1772 func Setlogin(name string) (err error) {
1773 var _p0 *byte
1774 _p0, err = BytePtrFromString(name)
1775 if err != nil {
1776 return
1778 _, _, e1 := syscall_syscall(libc_setlogin_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
1779 if e1 != 0 {
1780 err = errnoErr(e1)
1782 return
1785 var libc_setlogin_trampoline_addr uintptr
1787 //go:cgo_import_dynamic libc_setlogin setlogin "libc.so"
1789 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1791 func Setpgid(pid int, pgid int) (err error) {
1792 _, _, e1 := syscall_rawSyscall(libc_setpgid_trampoline_addr, uintptr(pid), uintptr(pgid), 0)
1793 if e1 != 0 {
1794 err = errnoErr(e1)
1796 return
1799 var libc_setpgid_trampoline_addr uintptr
1801 //go:cgo_import_dynamic libc_setpgid setpgid "libc.so"
1803 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1805 func Setpriority(which int, who int, prio int) (err error) {
1806 _, _, e1 := syscall_syscall(libc_setpriority_trampoline_addr, uintptr(which), uintptr(who), uintptr(prio))
1807 if e1 != 0 {
1808 err = errnoErr(e1)
1810 return
1813 var libc_setpriority_trampoline_addr uintptr
1815 //go:cgo_import_dynamic libc_setpriority setpriority "libc.so"
1817 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1819 func Setregid(rgid int, egid int) (err error) {
1820 _, _, e1 := syscall_rawSyscall(libc_setregid_trampoline_addr, uintptr(rgid), uintptr(egid), 0)
1821 if e1 != 0 {
1822 err = errnoErr(e1)
1824 return
1827 var libc_setregid_trampoline_addr uintptr
1829 //go:cgo_import_dynamic libc_setregid setregid "libc.so"
1831 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1833 func Setreuid(ruid int, euid int) (err error) {
1834 _, _, e1 := syscall_rawSyscall(libc_setreuid_trampoline_addr, uintptr(ruid), uintptr(euid), 0)
1835 if e1 != 0 {
1836 err = errnoErr(e1)
1838 return
1841 var libc_setreuid_trampoline_addr uintptr
1843 //go:cgo_import_dynamic libc_setreuid setreuid "libc.so"
1845 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1847 func Setresgid(rgid int, egid int, sgid int) (err error) {
1848 _, _, e1 := syscall_rawSyscall(libc_setresgid_trampoline_addr, uintptr(rgid), uintptr(egid), uintptr(sgid))
1849 if e1 != 0 {
1850 err = errnoErr(e1)
1852 return
1855 var libc_setresgid_trampoline_addr uintptr
1857 //go:cgo_import_dynamic libc_setresgid setresgid "libc.so"
1859 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1861 func Setresuid(ruid int, euid int, suid int) (err error) {
1862 _, _, e1 := syscall_rawSyscall(libc_setresuid_trampoline_addr, uintptr(ruid), uintptr(euid), uintptr(suid))
1863 if e1 != 0 {
1864 err = errnoErr(e1)
1866 return
1869 var libc_setresuid_trampoline_addr uintptr
1871 //go:cgo_import_dynamic libc_setresuid setresuid "libc.so"
1873 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1875 func Setrlimit(which int, lim *Rlimit) (err error) {
1876 _, _, e1 := syscall_rawSyscall(libc_setrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
1877 if e1 != 0 {
1878 err = errnoErr(e1)
1880 return
1883 var libc_setrlimit_trampoline_addr uintptr
1885 //go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so"
1887 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1889 func Setrtable(rtable int) (err error) {
1890 _, _, e1 := syscall_rawSyscall(libc_setrtable_trampoline_addr, uintptr(rtable), 0, 0)
1891 if e1 != 0 {
1892 err = errnoErr(e1)
1894 return
1897 var libc_setrtable_trampoline_addr uintptr
1899 //go:cgo_import_dynamic libc_setrtable setrtable "libc.so"
1901 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1903 func Setsid() (pid int, err error) {
1904 r0, _, e1 := syscall_rawSyscall(libc_setsid_trampoline_addr, 0, 0, 0)
1905 pid = int(r0)
1906 if e1 != 0 {
1907 err = errnoErr(e1)
1909 return
1912 var libc_setsid_trampoline_addr uintptr
1914 //go:cgo_import_dynamic libc_setsid setsid "libc.so"
1916 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1918 func Settimeofday(tp *Timeval) (err error) {
1919 _, _, e1 := syscall_rawSyscall(libc_settimeofday_trampoline_addr, uintptr(unsafe.Pointer(tp)), 0, 0)
1920 if e1 != 0 {
1921 err = errnoErr(e1)
1923 return
1926 var libc_settimeofday_trampoline_addr uintptr
1928 //go:cgo_import_dynamic libc_settimeofday settimeofday "libc.so"
1930 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1932 func Setuid(uid int) (err error) {
1933 _, _, e1 := syscall_rawSyscall(libc_setuid_trampoline_addr, uintptr(uid), 0, 0)
1934 if e1 != 0 {
1935 err = errnoErr(e1)
1937 return
1940 var libc_setuid_trampoline_addr uintptr
1942 //go:cgo_import_dynamic libc_setuid setuid "libc.so"
1944 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1946 func Stat(path string, stat *Stat_t) (err error) {
1947 var _p0 *byte
1948 _p0, err = BytePtrFromString(path)
1949 if err != nil {
1950 return
1952 _, _, e1 := syscall_syscall(libc_stat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1953 if e1 != 0 {
1954 err = errnoErr(e1)
1956 return
1959 var libc_stat_trampoline_addr uintptr
1961 //go:cgo_import_dynamic libc_stat stat "libc.so"
1963 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1965 func Statfs(path string, stat *Statfs_t) (err error) {
1966 var _p0 *byte
1967 _p0, err = BytePtrFromString(path)
1968 if err != nil {
1969 return
1971 _, _, e1 := syscall_syscall(libc_statfs_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
1972 if e1 != 0 {
1973 err = errnoErr(e1)
1975 return
1978 var libc_statfs_trampoline_addr uintptr
1980 //go:cgo_import_dynamic libc_statfs statfs "libc.so"
1982 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1984 func Symlink(path string, link string) (err error) {
1985 var _p0 *byte
1986 _p0, err = BytePtrFromString(path)
1987 if err != nil {
1988 return
1990 var _p1 *byte
1991 _p1, err = BytePtrFromString(link)
1992 if err != nil {
1993 return
1995 _, _, e1 := syscall_syscall(libc_symlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
1996 if e1 != 0 {
1997 err = errnoErr(e1)
1999 return
2002 var libc_symlink_trampoline_addr uintptr
2004 //go:cgo_import_dynamic libc_symlink symlink "libc.so"
2006 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2008 func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
2009 var _p0 *byte
2010 _p0, err = BytePtrFromString(oldpath)
2011 if err != nil {
2012 return
2014 var _p1 *byte
2015 _p1, err = BytePtrFromString(newpath)
2016 if err != nil {
2017 return
2019 _, _, e1 := syscall_syscall(libc_symlinkat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)))
2020 if e1 != 0 {
2021 err = errnoErr(e1)
2023 return
2026 var libc_symlinkat_trampoline_addr uintptr
2028 //go:cgo_import_dynamic libc_symlinkat symlinkat "libc.so"
2030 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2032 func Sync() (err error) {
2033 _, _, e1 := syscall_syscall(libc_sync_trampoline_addr, 0, 0, 0)
2034 if e1 != 0 {
2035 err = errnoErr(e1)
2037 return
2040 var libc_sync_trampoline_addr uintptr
2042 //go:cgo_import_dynamic libc_sync sync "libc.so"
2044 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2046 func Truncate(path string, length int64) (err error) {
2047 var _p0 *byte
2048 _p0, err = BytePtrFromString(path)
2049 if err != nil {
2050 return
2052 _, _, e1 := syscall_syscall6(libc_truncate_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0)
2053 if e1 != 0 {
2054 err = errnoErr(e1)
2056 return
2059 var libc_truncate_trampoline_addr uintptr
2061 //go:cgo_import_dynamic libc_truncate truncate "libc.so"
2063 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2065 func Umask(newmask int) (oldmask int) {
2066 r0, _, _ := syscall_syscall(libc_umask_trampoline_addr, uintptr(newmask), 0, 0)
2067 oldmask = int(r0)
2068 return
2071 var libc_umask_trampoline_addr uintptr
2073 //go:cgo_import_dynamic libc_umask umask "libc.so"
2075 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2077 func Unlink(path string) (err error) {
2078 var _p0 *byte
2079 _p0, err = BytePtrFromString(path)
2080 if err != nil {
2081 return
2083 _, _, e1 := syscall_syscall(libc_unlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0)
2084 if e1 != 0 {
2085 err = errnoErr(e1)
2087 return
2090 var libc_unlink_trampoline_addr uintptr
2092 //go:cgo_import_dynamic libc_unlink unlink "libc.so"
2094 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2096 func Unlinkat(dirfd int, path string, flags int) (err error) {
2097 var _p0 *byte
2098 _p0, err = BytePtrFromString(path)
2099 if err != nil {
2100 return
2102 _, _, e1 := syscall_syscall(libc_unlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
2103 if e1 != 0 {
2104 err = errnoErr(e1)
2106 return
2109 var libc_unlinkat_trampoline_addr uintptr
2111 //go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so"
2113 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2115 func Unmount(path string, flags int) (err error) {
2116 var _p0 *byte
2117 _p0, err = BytePtrFromString(path)
2118 if err != nil {
2119 return
2121 _, _, e1 := syscall_syscall(libc_unmount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
2122 if e1 != 0 {
2123 err = errnoErr(e1)
2125 return
2128 var libc_unmount_trampoline_addr uintptr
2130 //go:cgo_import_dynamic libc_unmount unmount "libc.so"
2132 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2134 func write(fd int, p []byte) (n int, err error) {
2135 var _p0 unsafe.Pointer
2136 if len(p) > 0 {
2137 _p0 = unsafe.Pointer(&p[0])
2138 } else {
2139 _p0 = unsafe.Pointer(&_zero)
2141 r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)))
2142 n = int(r0)
2143 if e1 != 0 {
2144 err = errnoErr(e1)
2146 return
2149 var libc_write_trampoline_addr uintptr
2151 //go:cgo_import_dynamic libc_write write "libc.so"
2153 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2155 func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
2156 r0, _, e1 := syscall_syscall9(libc_mmap_trampoline_addr, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), uintptr(pos>>32), 0)
2157 ret = uintptr(r0)
2158 if e1 != 0 {
2159 err = errnoErr(e1)
2161 return
2164 var libc_mmap_trampoline_addr uintptr
2166 //go:cgo_import_dynamic libc_mmap mmap "libc.so"
2168 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2170 func munmap(addr uintptr, length uintptr) (err error) {
2171 _, _, e1 := syscall_syscall(libc_munmap_trampoline_addr, uintptr(addr), uintptr(length), 0)
2172 if e1 != 0 {
2173 err = errnoErr(e1)
2175 return
2178 var libc_munmap_trampoline_addr uintptr
2180 //go:cgo_import_dynamic libc_munmap munmap "libc.so"
2182 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2184 func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
2185 r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
2186 n = int(r0)
2187 if e1 != 0 {
2188 err = errnoErr(e1)
2190 return
2193 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2195 func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
2196 r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))
2197 n = int(r0)
2198 if e1 != 0 {
2199 err = errnoErr(e1)
2201 return
2204 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
2206 func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
2207 var _p0 *byte
2208 _p0, err = BytePtrFromString(path)
2209 if err != nil {
2210 return
2212 _, _, e1 := syscall_syscall6(libc_utimensat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
2213 if e1 != 0 {
2214 err = errnoErr(e1)
2216 return
2219 var libc_utimensat_trampoline_addr uintptr
2221 //go:cgo_import_dynamic libc_utimensat utimensat "libc.so"