641 |
641 |
642 //go:cgo_import_dynamic libc_flistxattr flistxattr "/usr/lib/libSystem.B.dylib" |
642 //go:cgo_import_dynamic libc_flistxattr flistxattr "/usr/lib/libSystem.B.dylib" |
643 |
643 |
644 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
644 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
645 |
645 |
646 func setattrlist(path *byte, list unsafe.Pointer, buf unsafe.Pointer, size uintptr, options int) (err error) { |
646 func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { |
647 _, _, e1 := syscall_syscall6(libc_setattrlist_trampoline_addr, uintptr(unsafe.Pointer(path)), uintptr(list), uintptr(buf), uintptr(size), uintptr(options), 0) |
647 var _p0 *byte |
648 if e1 != 0 { |
648 _p0, err = BytePtrFromString(path) |
649 err = errnoErr(e1) |
649 if err != nil { |
650 } |
650 return |
651 return |
651 } |
652 } |
652 _, _, e1 := syscall_syscall6(libc_utimensat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) |
653 |
653 if e1 != 0 { |
654 var libc_setattrlist_trampoline_addr uintptr |
654 err = errnoErr(e1) |
655 |
655 } |
656 //go:cgo_import_dynamic libc_setattrlist setattrlist "/usr/lib/libSystem.B.dylib" |
656 return |
|
657 } |
|
658 |
|
659 var libc_utimensat_trampoline_addr uintptr |
|
660 |
|
661 //go:cgo_import_dynamic libc_utimensat utimensat "/usr/lib/libSystem.B.dylib" |
657 |
662 |
658 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
663 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
659 |
664 |
660 func fcntl(fd int, cmd int, arg int) (val int, err error) { |
665 func fcntl(fd int, cmd int, arg int) (val int, err error) { |
661 r0, _, e1 := syscall_syscall(libc_fcntl_trampoline_addr, uintptr(fd), uintptr(cmd), uintptr(arg)) |
666 r0, _, e1 := syscall_syscall(libc_fcntl_trampoline_addr, uintptr(fd), uintptr(cmd), uintptr(arg)) |
732 |
737 |
733 //go:cgo_import_dynamic libc_sendfile sendfile "/usr/lib/libSystem.B.dylib" |
738 //go:cgo_import_dynamic libc_sendfile sendfile "/usr/lib/libSystem.B.dylib" |
734 |
739 |
735 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
740 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
736 |
741 |
|
742 func shmat(id int, addr uintptr, flag int) (ret uintptr, err error) { |
|
743 r0, _, e1 := syscall_syscall(libc_shmat_trampoline_addr, uintptr(id), uintptr(addr), uintptr(flag)) |
|
744 ret = uintptr(r0) |
|
745 if e1 != 0 { |
|
746 err = errnoErr(e1) |
|
747 } |
|
748 return |
|
749 } |
|
750 |
|
751 var libc_shmat_trampoline_addr uintptr |
|
752 |
|
753 //go:cgo_import_dynamic libc_shmat shmat "/usr/lib/libSystem.B.dylib" |
|
754 |
|
755 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
756 |
|
757 func shmctl(id int, cmd int, buf *SysvShmDesc) (result int, err error) { |
|
758 r0, _, e1 := syscall_syscall(libc_shmctl_trampoline_addr, uintptr(id), uintptr(cmd), uintptr(unsafe.Pointer(buf))) |
|
759 result = int(r0) |
|
760 if e1 != 0 { |
|
761 err = errnoErr(e1) |
|
762 } |
|
763 return |
|
764 } |
|
765 |
|
766 var libc_shmctl_trampoline_addr uintptr |
|
767 |
|
768 //go:cgo_import_dynamic libc_shmctl shmctl "/usr/lib/libSystem.B.dylib" |
|
769 |
|
770 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
771 |
|
772 func shmdt(addr uintptr) (err error) { |
|
773 _, _, e1 := syscall_syscall(libc_shmdt_trampoline_addr, uintptr(addr), 0, 0) |
|
774 if e1 != 0 { |
|
775 err = errnoErr(e1) |
|
776 } |
|
777 return |
|
778 } |
|
779 |
|
780 var libc_shmdt_trampoline_addr uintptr |
|
781 |
|
782 //go:cgo_import_dynamic libc_shmdt shmdt "/usr/lib/libSystem.B.dylib" |
|
783 |
|
784 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
785 |
|
786 func shmget(key int, size int, flag int) (id int, err error) { |
|
787 r0, _, e1 := syscall_syscall(libc_shmget_trampoline_addr, uintptr(key), uintptr(size), uintptr(flag)) |
|
788 id = int(r0) |
|
789 if e1 != 0 { |
|
790 err = errnoErr(e1) |
|
791 } |
|
792 return |
|
793 } |
|
794 |
|
795 var libc_shmget_trampoline_addr uintptr |
|
796 |
|
797 //go:cgo_import_dynamic libc_shmget shmget "/usr/lib/libSystem.B.dylib" |
|
798 |
|
799 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
800 |
737 func Access(path string, mode uint32) (err error) { |
801 func Access(path string, mode uint32) (err error) { |
738 var _p0 *byte |
802 var _p0 *byte |
739 _p0, err = BytePtrFromString(path) |
803 _p0, err = BytePtrFromString(path) |
740 if err != nil { |
804 if err != nil { |
741 return |
805 return |
1577 |
1641 |
1578 //go:cgo_import_dynamic libc_mknod mknod "/usr/lib/libSystem.B.dylib" |
1642 //go:cgo_import_dynamic libc_mknod mknod "/usr/lib/libSystem.B.dylib" |
1579 |
1643 |
1580 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1644 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1581 |
1645 |
|
1646 func Mount(fsType string, dir string, flags int, data unsafe.Pointer) (err error) { |
|
1647 var _p0 *byte |
|
1648 _p0, err = BytePtrFromString(fsType) |
|
1649 if err != nil { |
|
1650 return |
|
1651 } |
|
1652 var _p1 *byte |
|
1653 _p1, err = BytePtrFromString(dir) |
|
1654 if err != nil { |
|
1655 return |
|
1656 } |
|
1657 _, _, e1 := syscall_syscall6(libc_mount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(flags), uintptr(data), 0, 0) |
|
1658 if e1 != 0 { |
|
1659 err = errnoErr(e1) |
|
1660 } |
|
1661 return |
|
1662 } |
|
1663 |
|
1664 var libc_mount_trampoline_addr uintptr |
|
1665 |
|
1666 //go:cgo_import_dynamic libc_mount mount "/usr/lib/libSystem.B.dylib" |
|
1667 |
|
1668 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
|
1669 |
1582 func Open(path string, mode int, perm uint32) (fd int, err error) { |
1670 func Open(path string, mode int, perm uint32) (fd int, err error) { |
1583 var _p0 *byte |
1671 var _p0 *byte |
1584 _p0, err = BytePtrFromString(path) |
1672 _p0, err = BytePtrFromString(path) |
1585 if err != nil { |
1673 if err != nil { |
1586 return |
1674 return |
1637 |
1725 |
1638 //go:cgo_import_dynamic libc_pathconf pathconf "/usr/lib/libSystem.B.dylib" |
1726 //go:cgo_import_dynamic libc_pathconf pathconf "/usr/lib/libSystem.B.dylib" |
1639 |
1727 |
1640 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1728 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1641 |
1729 |
1642 func Pread(fd int, p []byte, offset int64) (n int, err error) { |
1730 func pread(fd int, p []byte, offset int64) (n int, err error) { |
1643 var _p0 unsafe.Pointer |
1731 var _p0 unsafe.Pointer |
1644 if len(p) > 0 { |
1732 if len(p) > 0 { |
1645 _p0 = unsafe.Pointer(&p[0]) |
1733 _p0 = unsafe.Pointer(&p[0]) |
1646 } else { |
1734 } else { |
1647 _p0 = unsafe.Pointer(&_zero) |
1735 _p0 = unsafe.Pointer(&_zero) |
1658 |
1746 |
1659 //go:cgo_import_dynamic libc_pread pread "/usr/lib/libSystem.B.dylib" |
1747 //go:cgo_import_dynamic libc_pread pread "/usr/lib/libSystem.B.dylib" |
1660 |
1748 |
1661 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1749 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT |
1662 |
1750 |
1663 func Pwrite(fd int, p []byte, offset int64) (n int, err error) { |
1751 func pwrite(fd int, p []byte, offset int64) (n int, err error) { |
1664 var _p0 unsafe.Pointer |
1752 var _p0 unsafe.Pointer |
1665 if len(p) > 0 { |
1753 if len(p) > 0 { |
1666 _p0 = unsafe.Pointer(&p[0]) |
1754 _p0 = unsafe.Pointer(&p[0]) |
1667 } else { |
1755 } else { |
1668 _p0 = unsafe.Pointer(&_zero) |
1756 _p0 = unsafe.Pointer(&_zero) |