517 |
516 |
518 //go:cgo_import_dynamic libc_getcwd getcwd "libc.so" |
517 //go:cgo_import_dynamic libc_getcwd getcwd "libc.so" |
519 |
518 |
520 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
519 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
521 |
520 |
|
521 func getresuid(ruid *_C_int, euid *_C_int, suid *_C_int) { |
|
522 syscall_rawSyscall(libc_getresuid_trampoline_addr, uintptr(unsafe.Pointer(ruid)), uintptr(unsafe.Pointer(euid)), uintptr(unsafe.Pointer(suid))) |
|
523 return |
|
524 } |
|
525 |
|
526 var libc_getresuid_trampoline_addr uintptr |
|
527 |
|
528 //go:cgo_import_dynamic libc_getresuid getresuid "libc.so" |
|
529 |
|
530 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
531 |
|
532 func getresgid(rgid *_C_int, egid *_C_int, sgid *_C_int) { |
|
533 syscall_rawSyscall(libc_getresgid_trampoline_addr, uintptr(unsafe.Pointer(rgid)), uintptr(unsafe.Pointer(egid)), uintptr(unsafe.Pointer(sgid))) |
|
534 return |
|
535 } |
|
536 |
|
537 var libc_getresgid_trampoline_addr uintptr |
|
538 |
|
539 //go:cgo_import_dynamic libc_getresgid getresgid "libc.so" |
|
540 |
|
541 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
542 |
522 func ioctl(fd int, req uint, arg uintptr) (err error) { |
543 func ioctl(fd int, req uint, arg uintptr) (err error) { |
523 _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) |
544 _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) |
524 if e1 != 0 { |
545 if e1 != 0 { |
525 err = errnoErr(e1) |
546 err = errnoErr(e1) |
526 } |
547 } |
527 return |
548 return |
528 } |
549 } |
529 |
550 |
|
551 var libc_ioctl_trampoline_addr uintptr |
|
552 |
|
553 //go:cgo_import_dynamic libc_ioctl ioctl "libc.so" |
|
554 |
|
555 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
556 |
530 func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { |
557 func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { |
531 _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) |
558 _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) |
532 if e1 != 0 { |
559 if e1 != 0 { |
533 err = errnoErr(e1) |
560 err = errnoErr(e1) |
534 } |
561 } |
535 return |
562 return |
536 } |
563 } |
537 |
|
538 var libc_ioctl_trampoline_addr uintptr |
|
539 |
|
540 //go:cgo_import_dynamic libc_ioctl ioctl "libc.so" |
|
541 |
564 |
542 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
565 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
543 |
566 |
544 func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { |
567 func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { |
545 var _p0 unsafe.Pointer |
568 var _p0 unsafe.Pointer |
559 |
582 |
560 //go:cgo_import_dynamic libc_sysctl sysctl "libc.so" |
583 //go:cgo_import_dynamic libc_sysctl sysctl "libc.so" |
561 |
584 |
562 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
585 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
563 |
586 |
|
587 func fcntl(fd int, cmd int, arg int) (n int, err error) { |
|
588 r0, _, e1 := syscall_syscall(libc_fcntl_trampoline_addr, uintptr(fd), uintptr(cmd), uintptr(arg)) |
|
589 n = int(r0) |
|
590 if e1 != 0 { |
|
591 err = errnoErr(e1) |
|
592 } |
|
593 return |
|
594 } |
|
595 |
|
596 var libc_fcntl_trampoline_addr uintptr |
|
597 |
|
598 //go:cgo_import_dynamic libc_fcntl fcntl "libc.so" |
|
599 |
|
600 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
601 |
|
602 func fcntlPtr(fd int, cmd int, arg unsafe.Pointer) (n int, err error) { |
|
603 r0, _, e1 := syscall_syscall(libc_fcntl_trampoline_addr, uintptr(fd), uintptr(cmd), uintptr(arg)) |
|
604 n = int(r0) |
|
605 if e1 != 0 { |
|
606 err = errnoErr(e1) |
|
607 } |
|
608 return |
|
609 } |
|
610 |
|
611 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
612 |
564 func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { |
613 func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { |
565 r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) |
614 r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) |
566 n = int(r0) |
615 n = int(r0) |
567 if e1 != 0 { |
616 if e1 != 0 { |
568 err = errnoErr(e1) |
617 err = errnoErr(e1) |
1892 |
1941 |
1893 //go:cgo_import_dynamic libc_setresuid setresuid "libc.so" |
1942 //go:cgo_import_dynamic libc_setresuid setresuid "libc.so" |
1894 |
1943 |
1895 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1944 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1896 |
1945 |
1897 func Setrlimit(which int, lim *Rlimit) (err error) { |
|
1898 _, _, e1 := syscall_rawSyscall(libc_setrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) |
|
1899 if e1 != 0 { |
|
1900 err = errnoErr(e1) |
|
1901 } |
|
1902 return |
|
1903 } |
|
1904 |
|
1905 var libc_setrlimit_trampoline_addr uintptr |
|
1906 |
|
1907 //go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so" |
|
1908 |
|
1909 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
1910 |
|
1911 func Setrtable(rtable int) (err error) { |
1946 func Setrtable(rtable int) (err error) { |
1912 _, _, e1 := syscall_rawSyscall(libc_setrtable_trampoline_addr, uintptr(rtable), 0, 0) |
1947 _, _, e1 := syscall_rawSyscall(libc_setrtable_trampoline_addr, uintptr(rtable), 0, 0) |
1913 if e1 != 0 { |
1948 if e1 != 0 { |
1914 err = errnoErr(e1) |
1949 err = errnoErr(e1) |
1915 } |
1950 } |
2201 |
2236 |
2202 //go:cgo_import_dynamic libc_munmap munmap "libc.so" |
2237 //go:cgo_import_dynamic libc_munmap munmap "libc.so" |
2203 |
2238 |
2204 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2239 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2205 |
2240 |
2206 func readlen(fd int, buf *byte, nbuf int) (n int, err error) { |
2241 func getfsstat(stat *Statfs_t, bufsize uintptr, flags int) (n int, err error) { |
2207 r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) |
2242 r0, _, e1 := syscall_syscall(libc_getfsstat_trampoline_addr, uintptr(unsafe.Pointer(stat)), uintptr(bufsize), uintptr(flags)) |
2208 n = int(r0) |
2243 n = int(r0) |
2209 if e1 != 0 { |
2244 if e1 != 0 { |
2210 err = errnoErr(e1) |
2245 err = errnoErr(e1) |
2211 } |
2246 } |
2212 return |
2247 return |
2213 } |
2248 } |
2214 |
2249 |
2215 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2250 var libc_getfsstat_trampoline_addr uintptr |
2216 |
2251 |
2217 func writelen(fd int, buf *byte, nbuf int) (n int, err error) { |
2252 //go:cgo_import_dynamic libc_getfsstat getfsstat "libc.so" |
2218 r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) |
|
2219 n = int(r0) |
|
2220 if e1 != 0 { |
|
2221 err = errnoErr(e1) |
|
2222 } |
|
2223 return |
|
2224 } |
|
2225 |
2253 |
2226 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2254 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
2227 |
2255 |
2228 func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { |
2256 func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { |
2229 var _p0 *byte |
2257 var _p0 *byte |
2239 } |
2267 } |
2240 |
2268 |
2241 var libc_utimensat_trampoline_addr uintptr |
2269 var libc_utimensat_trampoline_addr uintptr |
2242 |
2270 |
2243 //go:cgo_import_dynamic libc_utimensat utimensat "libc.so" |
2271 //go:cgo_import_dynamic libc_utimensat utimensat "libc.so" |
|
2272 |
|
2273 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
2274 |
|
2275 func pledge(promises *byte, execpromises *byte) (err error) { |
|
2276 _, _, e1 := syscall_syscall(libc_pledge_trampoline_addr, uintptr(unsafe.Pointer(promises)), uintptr(unsafe.Pointer(execpromises)), 0) |
|
2277 if e1 != 0 { |
|
2278 err = errnoErr(e1) |
|
2279 } |
|
2280 return |
|
2281 } |
|
2282 |
|
2283 var libc_pledge_trampoline_addr uintptr |
|
2284 |
|
2285 //go:cgo_import_dynamic libc_pledge pledge "libc.so" |
|
2286 |
|
2287 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
2288 |
|
2289 func unveil(path *byte, flags *byte) (err error) { |
|
2290 _, _, e1 := syscall_syscall(libc_unveil_trampoline_addr, uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(flags)), 0) |
|
2291 if e1 != 0 { |
|
2292 err = errnoErr(e1) |
|
2293 } |
|
2294 return |
|
2295 } |
|
2296 |
|
2297 var libc_unveil_trampoline_addr uintptr |
|
2298 |
|
2299 //go:cgo_import_dynamic libc_unveil unveil "libc.so" |