Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.gitignore | H A D | 01-Dec-2021 | 16 | 3 | 2 | |
README.md | H A D | 01-Dec-2021 | 8.5 KiB | 185 | 138 | |
affinity_linux.go | H A D | 01-Dec-2021 | 1.9 KiB | 87 | 57 | |
aliases.go | H A D | 01-Dec-2021 | 484 | 16 | 5 | |
asm_aix_ppc64.s | H A D | 01-Dec-2021 | 420 | 19 | 5 | |
asm_bsd_386.s | H A D | 01-Dec-2021 | 742 | 30 | 11 | |
asm_bsd_amd64.s | H A D | 01-Dec-2021 | 785 | 30 | 11 | |
asm_bsd_arm.s | H A D | 01-Dec-2021 | 732 | 30 | 11 | |
asm_bsd_arm64.s | H A D | 01-Dec-2021 | 762 | 30 | 11 | |
asm_linux_386.s | H A D | 01-Dec-2021 | 1.4 KiB | 67 | 40 | |
asm_linux_amd64.s | H A D | 01-Dec-2021 | 1.2 KiB | 59 | 37 | |
asm_linux_arm.s | H A D | 01-Dec-2021 | 1.1 KiB | 58 | 36 | |
asm_linux_arm64.s | H A D | 01-Dec-2021 | 1.1 KiB | 54 | 35 | |
asm_linux_mips64x.s | H A D | 01-Dec-2021 | 1.2 KiB | 58 | 35 | |
asm_linux_mipsx.s | H A D | 01-Dec-2021 | 1.2 KiB | 56 | 32 | |
asm_linux_ppc64x.s | H A D | 01-Dec-2021 | 962 | 46 | 27 | |
asm_linux_riscv64.s | H A D | 01-Dec-2021 | 1 KiB | 50 | 29 | |
asm_linux_s390x.s | H A D | 01-Dec-2021 | 1.2 KiB | 58 | 35 | |
asm_openbsd_mips64.s | H A D | 01-Dec-2021 | 690 | 31 | 11 | |
asm_solaris_amd64.s | H A D | 01-Dec-2021 | 436 | 19 | 5 | |
asm_zos_s390x.s | H A D | 01-Dec-2021 | 8.4 KiB | 427 | 314 | |
bluetooth_linux.go | H A D | 01-Dec-2021 | 680 | 37 | 25 | |
cap_freebsd.go | H A D | 01-Dec-2021 | 5 KiB | 197 | 148 | |
constants.go | H A D | 01-Dec-2021 | 390 | 15 | 6 | |
dev_aix_ppc.go | H A D | 01-Dec-2021 | 757 | 28 | 10 | |
dev_aix_ppc64.go | H A D | 01-Dec-2021 | 878 | 30 | 12 | |
dev_darwin.go | H A D | 01-Dec-2021 | 747 | 25 | 10 | |
dev_dragonfly.go | H A D | 01-Dec-2021 | 1 KiB | 31 | 10 | |
dev_freebsd.go | H A D | 01-Dec-2021 | 1,013 | 31 | 10 | |
dev_linux.go | H A D | 01-Dec-2021 | 1.5 KiB | 43 | 18 | |
dev_netbsd.go | H A D | 01-Dec-2021 | 913 | 30 | 15 | |
dev_openbsd.go | H A D | 01-Dec-2021 | 918 | 30 | 15 | |
dev_zos.go | H A D | 01-Dec-2021 | 850 | 30 | 10 | |
dirent.go | H A D | 01-Dec-2021 | 3.1 KiB | 104 | 85 | |
endian_big.go | H A D | 01-Dec-2021 | 421 | 11 | 2 | |
endian_little.go | H A D | 01-Dec-2021 | 451 | 11 | 2 | |
env_unix.go | H A D | 01-Dec-2021 | 717 | 33 | 17 | |
epoll_zos.go | H A D | 01-Dec-2021 | 5 KiB | 222 | 155 | |
errors_freebsd_386.go | H A D | 01-Dec-2021 | 9.4 KiB | 234 | 225 | |
errors_freebsd_amd64.go | H A D | 01-Dec-2021 | 9.4 KiB | 234 | 225 | |
errors_freebsd_arm.go | H A D | 01-Dec-2021 | 8.8 KiB | 227 | 219 | |
errors_freebsd_arm64.go | H A D | 01-Dec-2021 | 481 | 18 | 9 | |
fcntl.go | H A D | 01-Dec-2021 | 1.1 KiB | 38 | 21 | |
fcntl_darwin.go | H A D | 01-Dec-2021 | 806 | 25 | 13 | |
fcntl_linux_32bit.go | H A D | 01-Dec-2021 | 500 | 15 | 4 | |
fdset.go | H A D | 01-Dec-2021 | 853 | 31 | 15 | |
fstatfs_zos.go | H A D | 01-Dec-2021 | 4.1 KiB | 165 | 146 | |
gccgo.go | H A D | 01-Dec-2021 | 1.9 KiB | 61 | 40 | |
gccgo_c.c | H A D | 01-Dec-2021 | 1.5 KiB | 46 | 28 | |
gccgo_linux_amd64.go | H A D | 01-Dec-2021 | 464 | 22 | 10 | |
ifreq_linux.go | H A D | 01-Dec-2021 | 4.5 KiB | 150 | 72 | |
ioctl.go | H A D | 01-Dec-2021 | 2.5 KiB | 76 | 37 | |
ioctl_linux.go | H A D | 01-Dec-2021 | 6.5 KiB | 197 | 131 | |
ioctl_zos.go | H A D | 01-Dec-2021 | 2.1 KiB | 75 | 39 | |
mkall.sh | H A D | 01-Dec-2021 | 8 KiB | 232 | 196 | |
mkerrors.sh | H A D | 01-Dec-2021 | 19 KiB | 764 | 680 | |
pagesize_unix.go | H A D | 01-Dec-2021 | 457 | 17 | 5 | |
pledge_openbsd.go | H A D | 01-Dec-2021 | 3.7 KiB | 164 | 102 | |
ptrace_darwin.go | H A D | 01-Dec-2021 | 337 | 13 | 4 | |
ptrace_ios.go | H A D | 01-Dec-2021 | 298 | 13 | 4 | |
race.go | H A D | 01-Dec-2021 | 675 | 32 | 18 | |
race0.go | H A D | 01-Dec-2021 | 643 | 27 | 13 | |
readdirent_getdents.go | H A D | 01-Dec-2021 | 454 | 14 | 4 | |
readdirent_getdirentries.go | H A D | 01-Dec-2021 | 715 | 21 | 6 | |
sockcmsg_dragonfly.go | H A D | 01-Dec-2021 | 544 | 17 | 8 | |
sockcmsg_linux.go | H A D | 01-Dec-2021 | 2.6 KiB | 86 | 60 | |
sockcmsg_unix.go | H A D | 01-Dec-2021 | 2.7 KiB | 94 | 64 | |
sockcmsg_unix_other.go | H A D | 01-Dec-2021 | 1.3 KiB | 48 | 25 | |
str.go | H A D | 01-Dec-2021 | 705 | 28 | 18 | |
syscall.go | H A D | 01-Dec-2021 | 3 KiB | 96 | 47 | |
syscall_aix.go | H A D | 01-Dec-2021 | 15.5 KiB | 550 | 310 | |
syscall_aix_ppc.go | H A D | 01-Dec-2021 | 1.4 KiB | 55 | 31 | |
syscall_aix_ppc64.go | H A D | 01-Dec-2021 | 2 KiB | 86 | 56 | |
syscall_bsd.go | H A D | 01-Dec-2021 | 15.9 KiB | 653 | 492 | |
syscall_darwin.1_12.go | H A D | 01-Dec-2021 | 885 | 33 | 19 | |
syscall_darwin.1_13.go | H A D | 01-Dec-2021 | 2.7 KiB | 109 | 65 | |
syscall_darwin.go | H A D | 01-Dec-2021 | 21.7 KiB | 771 | 304 | |
syscall_darwin_amd64.go | H A D | 01-Dec-2021 | 1.5 KiB | 52 | 26 | |
syscall_darwin_arm64.go | H A D | 01-Dec-2021 | 1.4 KiB | 52 | 26 | |
syscall_darwin_libSystem.go | H A D | 01-Dec-2021 | 1.2 KiB | 28 | 9 | |
syscall_dragonfly.go | H A D | 01-Dec-2021 | 14.3 KiB | 542 | 168 | |
syscall_dragonfly_amd64.go | H A D | 01-Dec-2021 | 1.3 KiB | 58 | 38 | |
syscall_freebsd.go | H A D | 01-Dec-2021 | 24.4 KiB | 873 | 423 | |
syscall_freebsd_386.go | H A D | 01-Dec-2021 | 1.8 KiB | 68 | 46 | |
syscall_freebsd_amd64.go | H A D | 01-Dec-2021 | 1.7 KiB | 68 | 46 | |
syscall_freebsd_arm.go | H A D | 01-Dec-2021 | 1.6 KiB | 64 | 43 | |
syscall_freebsd_arm64.go | H A D | 01-Dec-2021 | 1.6 KiB | 64 | 43 | |
syscall_illumos.go | H A D | 01-Dec-2021 | 4.2 KiB | 187 | 137 | |
syscall_linux.go | H A D | 01-Dec-2021 | 69.4 KiB | 2,415 | 1,516 | |
syscall_linux_386.go | H A D | 01-Dec-2021 | 10 KiB | 355 | 251 | |
syscall_linux_amd64.go | H A D | 01-Dec-2021 | 5.6 KiB | 152 | 62 | |
syscall_linux_amd64_gc.go | H A D | 01-Dec-2021 | 315 | 14 | 3 | |
syscall_linux_arm.go | H A D | 01-Dec-2021 | 7.9 KiB | 250 | 144 | |
syscall_linux_arm64.go | H A D | 01-Dec-2021 | 6.5 KiB | 200 | 107 | |
syscall_linux_gc.go | H A D | 01-Dec-2021 | 514 | 16 | 3 | |
syscall_linux_gc_386.go | H A D | 01-Dec-2021 | 608 | 18 | 5 | |
syscall_linux_gc_arm.go | H A D | 01-Dec-2021 | 434 | 15 | 3 | |
syscall_linux_gccgo_386.go | H A D | 01-Dec-2021 | 1,012 | 32 | 20 | |
syscall_linux_gccgo_arm.go | H A D | 01-Dec-2021 | 622 | 22 | 12 | |
syscall_linux_mips64x.go | H A D | 01-Dec-2021 | 6.2 KiB | 197 | 108 | |
syscall_linux_mipsx.go | H A D | 01-Dec-2021 | 6.7 KiB | 209 | 111 | |
syscall_linux_ppc.go | H A D | 01-Dec-2021 | 7.7 KiB | 238 | 134 | |
syscall_linux_ppc64x.go | H A D | 01-Dec-2021 | 5.4 KiB | 124 | 34 | |
syscall_linux_riscv64.go | H A D | 01-Dec-2021 | 6.1 KiB | 185 | 96 | |
syscall_linux_s390x.go | H A D | 01-Dec-2021 | 9.9 KiB | 312 | 218 | |
syscall_linux_sparc64.go | H A D | 01-Dec-2021 | 4.7 KiB | 120 | 41 | |
syscall_netbsd.go | H A D | 01-Dec-2021 | 16.2 KiB | 619 | 177 | |
syscall_netbsd_386.go | H A D | 01-Dec-2021 | 840 | 39 | 24 | |
syscall_netbsd_amd64.go | H A D | 01-Dec-2021 | 837 | 39 | 24 | |
syscall_netbsd_arm.go | H A D | 01-Dec-2021 | 840 | 39 | 24 | |
syscall_netbsd_arm64.go | H A D | 01-Dec-2021 | 837 | 39 | 24 | |
syscall_openbsd.go | H A D | 01-Dec-2021 | 11.1 KiB | 391 | 156 | |
syscall_openbsd_386.go | H A D | 01-Dec-2021 | 1,022 | 43 | 25 | |
syscall_openbsd_amd64.go | H A D | 01-Dec-2021 | 1,014 | 43 | 25 | |
syscall_openbsd_arm.go | H A D | 01-Dec-2021 | 1,022 | 43 | 25 | |
syscall_openbsd_arm64.go | H A D | 01-Dec-2021 | 1,014 | 43 | 25 | |
syscall_openbsd_mips64.go | H A D | 01-Dec-2021 | 874 | 36 | 22 | |
syscall_solaris.go | H A D | 01-Dec-2021 | 27.5 KiB | 979 | 662 | |
syscall_solaris_amd64.go | H A D | 01-Dec-2021 | 617 | 29 | 16 | |
syscall_unix.go | H A D | 01-Dec-2021 | 11 KiB | 436 | 337 | |
syscall_unix_gc.go | H A D | 01-Dec-2021 | 751 | 19 | 6 | |
syscall_unix_gc_ppc64x.go | H A D | 01-Dec-2021 | 839 | 26 | 14 | |
syscall_zos_s390x.go | H A D | 01-Dec-2021 | 49 KiB | 1,822 | 1,410 | |
sysvshm_linux.go | H A D | 01-Dec-2021 | 537 | 22 | 9 | |
sysvshm_unix.go | H A D | 01-Dec-2021 | 1.6 KiB | 62 | 32 | |
sysvshm_unix_other.go | H A D | 01-Dec-2021 | 420 | 15 | 4 | |
timestruct.go | H A D | 01-Dec-2021 | 2.3 KiB | 78 | 44 | |
unveil_openbsd.go | H A D | 01-Dec-2021 | 1 KiB | 43 | 28 | |
xattr_bsd.go | H A D | 01-Dec-2021 | 5 KiB | 242 | 178 | |
zerrors_aix_ppc.go | H A D | 01-Dec-2021 | 52.4 KiB | 1,386 | 1,366 | |
zerrors_aix_ppc64.go | H A D | 01-Dec-2021 | 52.7 KiB | 1,387 | 1,367 | |
zerrors_darwin_amd64.go | H A D | 01-Dec-2021 | 86.5 KiB | 1,893 | 1,873 | |
zerrors_darwin_arm64.go | H A D | 01-Dec-2021 | 86.5 KiB | 1,893 | 1,873 | |
zerrors_dragonfly_amd64.go | H A D | 01-Dec-2021 | 70.7 KiB | 1,739 | 1,719 | |
zerrors_freebsd_386.go | H A D | 01-Dec-2021 | 75.9 KiB | 1,949 | 1,929 | |
zerrors_freebsd_amd64.go | H A D | 01-Dec-2021 | 75.9 KiB | 1,948 | 1,928 | |
zerrors_freebsd_arm.go | H A D | 01-Dec-2021 | 71.9 KiB | 1,847 | 1,827 | |
zerrors_freebsd_arm64.go | H A D | 01-Dec-2021 | 75.9 KiB | 1,949 | 1,929 | |
zerrors_linux.go | H A D | 01-Dec-2021 | 152.2 KiB | 3,008 | 2,996 | |
zerrors_linux_386.go | H A D | 01-Dec-2021 | 33.3 KiB | 824 | 804 | |
zerrors_linux_amd64.go | H A D | 01-Dec-2021 | 33.3 KiB | 824 | 804 | |
zerrors_linux_arm.go | H A D | 01-Dec-2021 | 33.5 KiB | 830 | 810 | |
zerrors_linux_arm64.go | H A D | 01-Dec-2021 | 33.2 KiB | 821 | 801 | |
zerrors_linux_mips.go | H A D | 01-Dec-2021 | 33.8 KiB | 831 | 811 | |
zerrors_linux_mips64.go | H A D | 01-Dec-2021 | 33.8 KiB | 831 | 811 | |
zerrors_linux_mips64le.go | H A D | 01-Dec-2021 | 33.8 KiB | 831 | 811 | |
zerrors_linux_mipsle.go | H A D | 01-Dec-2021 | 33.8 KiB | 831 | 811 | |
zerrors_linux_ppc.go | H A D | 01-Dec-2021 | 35.9 KiB | 883 | 863 | |
zerrors_linux_ppc64.go | H A D | 01-Dec-2021 | 36.1 KiB | 887 | 867 | |
zerrors_linux_ppc64le.go | H A D | 01-Dec-2021 | 36.1 KiB | 887 | 867 | |
zerrors_linux_riscv64.go | H A D | 01-Dec-2021 | 32.8 KiB | 811 | 791 | |
zerrors_linux_s390x.go | H A D | 01-Dec-2021 | 35.8 KiB | 886 | 866 | |
zerrors_linux_sparc64.go | H A D | 01-Dec-2021 | 36 KiB | 881 | 861 | |
zerrors_netbsd_386.go | H A D | 01-Dec-2021 | 72.8 KiB | 1,781 | 1,761 | |
zerrors_netbsd_amd64.go | H A D | 01-Dec-2021 | 72.4 KiB | 1,771 | 1,751 | |
zerrors_netbsd_arm.go | H A D | 01-Dec-2021 | 71.9 KiB | 1,760 | 1,740 | |
zerrors_netbsd_arm64.go | H A D | 01-Dec-2021 | 72.4 KiB | 1,771 | 1,751 | |
zerrors_openbsd_386.go | H A D | 01-Dec-2021 | 68.3 KiB | 1,669 | 1,649 | |
zerrors_openbsd_amd64.go | H A D | 01-Dec-2021 | 72.7 KiB | 1,776 | 1,756 | |
zerrors_openbsd_arm.go | H A D | 01-Dec-2021 | 68.4 KiB | 1,671 | 1,651 | |
zerrors_openbsd_arm64.go | H A D | 01-Dec-2021 | 73.8 KiB | 1,799 | 1,779 | |
zerrors_openbsd_mips64.go | H A D | 01-Dec-2021 | 76.8 KiB | 1,864 | 1,844 | |
zerrors_solaris_amd64.go | H A D | 01-Dec-2021 | 59 KiB | 1,558 | 1,538 | |
zerrors_zos_s390x.go | H A D | 01-Dec-2021 | 34.5 KiB | 861 | 842 | |
zptrace_armnn_linux.go | H A D | 01-Dec-2021 | 1.2 KiB | 43 | 23 | |
zptrace_linux_arm64.go | H A D | 01-Dec-2021 | 733 | 18 | 10 | |
zptrace_mipsnn_linux.go | H A D | 01-Dec-2021 | 1.4 KiB | 52 | 32 | |
zptrace_mipsnnle_linux.go | H A D | 01-Dec-2021 | 1.5 KiB | 52 | 32 | |
zptrace_x86_linux.go | H A D | 01-Dec-2021 | 1.9 KiB | 82 | 62 | |
zsyscall_aix_ppc.go | H A D | 01-Dec-2021 | 36.3 KiB | 1,486 | 992 | |
zsyscall_aix_ppc64.go | H A D | 01-Dec-2021 | 30.6 KiB | 1,444 | 1,073 | |
zsyscall_aix_ppc64_gc.go | H A D | 01-Dec-2021 | 42.6 KiB | 1,193 | 594 | |
zsyscall_aix_ppc64_gccgo.go | H A D | 01-Dec-2021 | 30.9 KiB | 1,071 | 590 | |
zsyscall_darwin_amd64.1_13.go | H A D | 01-Dec-2021 | 1 KiB | 41 | 20 | |
zsyscall_darwin_amd64.1_13.s | H A D | 01-Dec-2021 | 766 | 26 | 13 | |
zsyscall_darwin_amd64.go | H A D | 01-Dec-2021 | 65.4 KiB | 2,491 | 1,600 | |
zsyscall_darwin_amd64.s | H A D | 01-Dec-2021 | 28.7 KiB | 884 | 585 | |
zsyscall_darwin_arm64.1_13.go | H A D | 01-Dec-2021 | 1 KiB | 41 | 20 | |
zsyscall_darwin_arm64.1_13.s | H A D | 01-Dec-2021 | 766 | 26 | 13 | |
zsyscall_darwin_arm64.go | H A D | 01-Dec-2021 | 65.3 KiB | 2,491 | 1,600 | |
zsyscall_darwin_arm64.s | H A D | 01-Dec-2021 | 28.6 KiB | 884 | 585 | |
zsyscall_dragonfly_amd64.go | H A D | 01-Dec-2021 | 39.1 KiB | 1,680 | 1,272 | |
zsyscall_freebsd_386.go | H A D | 01-Dec-2021 | 48.3 KiB | 2,017 | 1,543 | |
zsyscall_freebsd_amd64.go | H A D | 01-Dec-2021 | 48.1 KiB | 2,017 | 1,543 | |
zsyscall_freebsd_arm.go | H A D | 01-Dec-2021 | 48.3 KiB | 2,017 | 1,543 | |
zsyscall_freebsd_arm64.go | H A D | 01-Dec-2021 | 48.1 KiB | 2,017 | 1,543 | |
zsyscall_illumos_amd64.go | H A D | 01-Dec-2021 | 3.5 KiB | 129 | 83 | |
zsyscall_linux.go | H A D | 01-Dec-2021 | 48.9 KiB | 2,035 | 1,596 | |
zsyscall_linux_386.go | H A D | 01-Dec-2021 | 13.1 KiB | 527 | 386 | |
zsyscall_linux_amd64.go | H A D | 01-Dec-2021 | 17.6 KiB | 694 | 508 | |
zsyscall_linux_arm.go | H A D | 01-Dec-2021 | 17.2 KiB | 664 | 487 | |
zsyscall_linux_arm64.go | H A D | 01-Dec-2021 | 15.5 KiB | 604 | 439 | |
zsyscall_linux_mips.go | H A D | 01-Dec-2021 | 18 KiB | 705 | 516 | |
zsyscall_linux_mips64.go | H A D | 01-Dec-2021 | 17.6 KiB | 699 | 513 | |
zsyscall_linux_mips64le.go | H A D | 01-Dec-2021 | 17.6 KiB | 699 | 513 | |
zsyscall_linux_mipsle.go | H A D | 01-Dec-2021 | 18.1 KiB | 705 | 516 | |
zsyscall_linux_ppc.go | H A D | 01-Dec-2021 | 18.1 KiB | 710 | 521 | |
zsyscall_linux_ppc64.go | H A D | 01-Dec-2021 | 19.1 KiB | 756 | 555 | |
zsyscall_linux_ppc64le.go | H A D | 01-Dec-2021 | 19.1 KiB | 756 | 555 | |
zsyscall_linux_riscv64.go | H A D | 01-Dec-2021 | 15 KiB | 584 | 422 | |
zsyscall_linux_s390x.go | H A D | 01-Dec-2021 | 13.1 KiB | 536 | 395 | |
zsyscall_linux_sparc64.go | H A D | 01-Dec-2021 | 17.7 KiB | 700 | 514 | |
zsyscall_netbsd_386.go | H A D | 01-Dec-2021 | 44.3 KiB | 1,863 | 1,428 | |
zsyscall_netbsd_amd64.go | H A D | 01-Dec-2021 | 44.1 KiB | 1,863 | 1,428 | |
zsyscall_netbsd_arm.go | H A D | 01-Dec-2021 | 44.3 KiB | 1,863 | 1,428 | |
zsyscall_netbsd_arm64.go | H A D | 01-Dec-2021 | 44.1 KiB | 1,863 | 1,428 | |
zsyscall_openbsd_386.go | H A D | 01-Dec-2021 | 39.6 KiB | 1,694 | 1,283 | |
zsyscall_openbsd_amd64.go | H A D | 01-Dec-2021 | 39.4 KiB | 1,694 | 1,283 | |
zsyscall_openbsd_arm.go | H A D | 01-Dec-2021 | 39.6 KiB | 1,694 | 1,283 | |
zsyscall_openbsd_arm64.go | H A D | 01-Dec-2021 | 39.4 KiB | 1,694 | 1,283 | |
zsyscall_openbsd_mips64.go | H A D | 01-Dec-2021 | 39.4 KiB | 1,694 | 1,283 | |
zsyscall_solaris_amd64.go | H A D | 01-Dec-2021 | 56.9 KiB | 2,054 | 1,368 | |
zsyscall_zos_s390x.go | H A D | 01-Dec-2021 | 29.9 KiB | 1,256 | 942 | |
zsysctl_openbsd_386.go | H A D | 01-Dec-2021 | 11.8 KiB | 275 | 266 | |
zsysctl_openbsd_amd64.go | H A D | 01-Dec-2021 | 11.7 KiB | 273 | 264 | |
zsysctl_openbsd_arm.go | H A D | 01-Dec-2021 | 11.8 KiB | 275 | 266 | |
zsysctl_openbsd_arm64.go | H A D | 01-Dec-2021 | 11.8 KiB | 277 | 268 | |
zsysctl_openbsd_mips64.go | H A D | 01-Dec-2021 | 11.9 KiB | 281 | 272 | |
zsysnum_darwin_amd64.go | H A D | 01-Dec-2021 | 17.9 KiB | 441 | 432 | |
zsysnum_darwin_arm64.go | H A D | 01-Dec-2021 | 17.8 KiB | 439 | 430 | |
zsysnum_dragonfly_amd64.go | H A D | 01-Dec-2021 | 27.6 KiB | 318 | 309 | |
zsysnum_freebsd_386.go | H A D | 01-Dec-2021 | 36.2 KiB | 398 | 389 | |
zsysnum_freebsd_amd64.go | H A D | 01-Dec-2021 | 36.2 KiB | 398 | 389 | |
zsysnum_freebsd_arm.go | H A D | 01-Dec-2021 | 36.2 KiB | 398 | 389 | |
zsysnum_freebsd_arm64.go | H A D | 01-Dec-2021 | 36.2 KiB | 398 | 389 | |
zsysnum_linux_386.go | H A D | 01-Dec-2021 | 17.2 KiB | 449 | 441 | |
zsysnum_linux_amd64.go | H A D | 01-Dec-2021 | 12.4 KiB | 371 | 363 | |
zsysnum_linux_arm.go | H A D | 01-Dec-2021 | 15.8 KiB | 413 | 405 | |
zsysnum_linux_arm64.go | H A D | 01-Dec-2021 | 10.6 KiB | 316 | 308 | |
zsysnum_linux_mips.go | H A D | 01-Dec-2021 | 17.1 KiB | 433 | 425 | |
zsysnum_linux_mips64.go | H A D | 01-Dec-2021 | 12.6 KiB | 363 | 355 | |
zsysnum_linux_mips64le.go | H A D | 01-Dec-2021 | 12.6 KiB | 363 | 355 | |
zsysnum_linux_mipsle.go | H A D | 01-Dec-2021 | 17.1 KiB | 433 | 425 | |
zsysnum_linux_ppc.go | H A D | 01-Dec-2021 | 16.9 KiB | 440 | 432 | |
zsysnum_linux_ppc64.go | H A D | 01-Dec-2021 | 13.8 KiB | 412 | 404 | |
zsysnum_linux_ppc64le.go | H A D | 01-Dec-2021 | 13.8 KiB | 412 | 404 | |
zsysnum_linux_riscv64.go | H A D | 01-Dec-2021 | 10.5 KiB | 314 | 306 | |
zsysnum_linux_s390x.go | H A D | 01-Dec-2021 | 12.7 KiB | 377 | 369 | |
zsysnum_linux_sparc64.go | H A D | 01-Dec-2021 | 13.1 KiB | 391 | 383 | |
zsysnum_netbsd_386.go | H A D | 01-Dec-2021 | 25.7 KiB | 276 | 268 | |
zsysnum_netbsd_amd64.go | H A D | 01-Dec-2021 | 25.7 KiB | 276 | 268 | |
zsysnum_netbsd_arm.go | H A D | 01-Dec-2021 | 25.7 KiB | 276 | 268 | |
zsysnum_netbsd_arm64.go | H A D | 01-Dec-2021 | 25.7 KiB | 276 | 268 | |
zsysnum_openbsd_386.go | H A D | 01-Dec-2021 | 17.9 KiB | 220 | 212 | |
zsysnum_openbsd_amd64.go | H A D | 01-Dec-2021 | 17.9 KiB | 220 | 212 | |
zsysnum_openbsd_arm.go | H A D | 01-Dec-2021 | 17.9 KiB | 220 | 212 | |
zsysnum_openbsd_arm64.go | H A D | 01-Dec-2021 | 17.8 KiB | 219 | 211 | |
zsysnum_openbsd_mips64.go | H A D | 01-Dec-2021 | 18 KiB | 222 | 214 | |
zsysnum_zos_s390x.go | H A D | 01-Dec-2021 | 117 KiB | 2,671 | 2,660 | |
ztypes_aix_ppc.go | H A D | 01-Dec-2021 | 4.9 KiB | 355 | 296 | |
ztypes_aix_ppc64.go | H A D | 01-Dec-2021 | 5 KiB | 359 | 300 | |
ztypes_darwin_amd64.go | H A D | 01-Dec-2021 | 11.5 KiB | 769 | 679 | |
ztypes_darwin_arm64.go | H A D | 01-Dec-2021 | 11.5 KiB | 769 | 679 | |
ztypes_dragonfly_amd64.go | H A D | 01-Dec-2021 | 6.9 KiB | 475 | 413 | |
ztypes_freebsd_386.go | H A D | 01-Dec-2021 | 10.9 KiB | 724 | 640 | |
ztypes_freebsd_amd64.go | H A D | 01-Dec-2021 | 10.9 KiB | 727 | 643 | |
ztypes_freebsd_arm.go | H A D | 01-Dec-2021 | 10.7 KiB | 708 | 624 | |
ztypes_freebsd_arm64.go | H A D | 01-Dec-2021 | 10.6 KiB | 705 | 621 | |
ztypes_illumos_amd64.go | H A D | 01-Dec-2021 | 647 | 43 | 30 | |
ztypes_linux.go | H A D | 01-Dec-2021 | 140.6 KiB | 3,971 | 3,765 | |
ztypes_linux_386.go | H A D | 01-Dec-2021 | 11.8 KiB | 671 | 592 | |
ztypes_linux_amd64.go | H A D | 01-Dec-2021 | 12 KiB | 686 | 607 | |
ztypes_linux_arm.go | H A D | 01-Dec-2021 | 11.8 KiB | 666 | 587 | |
ztypes_linux_arm64.go | H A D | 01-Dec-2021 | 11.7 KiB | 665 | 586 | |
ztypes_linux_mips.go | H A D | 01-Dec-2021 | 11.8 KiB | 671 | 592 | |
ztypes_linux_mips64.go | H A D | 01-Dec-2021 | 11.7 KiB | 668 | 589 | |
ztypes_linux_mips64le.go | H A D | 01-Dec-2021 | 11.7 KiB | 668 | 589 | |
ztypes_linux_mipsle.go | H A D | 01-Dec-2021 | 11.9 KiB | 671 | 592 | |
ztypes_linux_ppc.go | H A D | 01-Dec-2021 | 12 KiB | 679 | 600 | |
ztypes_linux_ppc64.go | H A D | 01-Dec-2021 | 11.9 KiB | 674 | 595 | |
ztypes_linux_ppc64le.go | H A D | 01-Dec-2021 | 11.9 KiB | 674 | 595 | |
ztypes_linux_riscv64.go | H A D | 01-Dec-2021 | 12 KiB | 693 | 614 | |
ztypes_linux_s390x.go | H A D | 01-Dec-2021 | 12.2 KiB | 688 | 606 | |
ztypes_linux_sparc64.go | H A D | 01-Dec-2021 | 11.7 KiB | 669 | 590 | |
ztypes_netbsd_386.go | H A D | 01-Dec-2021 | 7.4 KiB | 503 | 435 | |
ztypes_netbsd_amd64.go | H A D | 01-Dec-2021 | 7.6 KiB | 511 | 443 | |
ztypes_netbsd_arm.go | H A D | 01-Dec-2021 | 7.6 KiB | 508 | 440 | |
ztypes_netbsd_arm64.go | H A D | 01-Dec-2021 | 7.6 KiB | 511 | 443 | |
ztypes_openbsd_386.go | H A D | 01-Dec-2021 | 9.5 KiB | 575 | 509 | |
ztypes_openbsd_amd64.go | H A D | 01-Dec-2021 | 9.4 KiB | 575 | 509 | |
ztypes_openbsd_arm.go | H A D | 01-Dec-2021 | 9.4 KiB | 576 | 510 | |
ztypes_openbsd_arm64.go | H A D | 01-Dec-2021 | 9.3 KiB | 569 | 503 | |
ztypes_openbsd_mips64.go | H A D | 01-Dec-2021 | 9.3 KiB | 569 | 503 | |
ztypes_solaris_amd64.go | H A D | 01-Dec-2021 | 7.1 KiB | 483 | 418 | |
ztypes_zos_s390x.go | H A D | 01-Dec-2021 | 6.6 KiB | 407 | 351 |
README.md
1# Building `sys/unix` 2 3The sys/unix package provides access to the raw system call interface of the 4underlying operating system. See: https://godoc.org/golang.org/x/sys/unix 5 6Porting Go to a new architecture/OS combination or adding syscalls, types, or 7constants to an existing architecture/OS pair requires some manual effort; 8however, there are tools that automate much of the process. 9 10## Build Systems 11 12There are currently two ways we generate the necessary files. We are currently 13migrating the build system to use containers so the builds are reproducible. 14This is being done on an OS-by-OS basis. Please update this documentation as 15components of the build system change. 16 17### Old Build System (currently for `GOOS != "linux"`) 18 19The old build system generates the Go files based on the C header files 20present on your system. This means that files 21for a given GOOS/GOARCH pair must be generated on a system with that OS and 22architecture. This also means that the generated code can differ from system 23to system, based on differences in the header files. 24 25To avoid this, if you are using the old build system, only generate the Go 26files on an installation with unmodified header files. It is also important to 27keep track of which version of the OS the files were generated from (ex. 28Darwin 14 vs Darwin 15). This makes it easier to track the progress of changes 29and have each OS upgrade correspond to a single change. 30 31To build the files for your current OS and architecture, make sure GOOS and 32GOARCH are set correctly and run `mkall.sh`. This will generate the files for 33your specific system. Running `mkall.sh -n` shows the commands that will be run. 34 35Requirements: bash, go 36 37### New Build System (currently for `GOOS == "linux"`) 38 39The new build system uses a Docker container to generate the go files directly 40from source checkouts of the kernel and various system libraries. This means 41that on any platform that supports Docker, all the files using the new build 42system can be generated at once, and generated files will not change based on 43what the person running the scripts has installed on their computer. 44 45The OS specific files for the new build system are located in the `${GOOS}` 46directory, and the build is coordinated by the `${GOOS}/mkall.go` program. When 47the kernel or system library updates, modify the Dockerfile at 48`${GOOS}/Dockerfile` to checkout the new release of the source. 49 50To build all the files under the new build system, you must be on an amd64/Linux 51system and have your GOOS and GOARCH set accordingly. Running `mkall.sh` will 52then generate all of the files for all of the GOOS/GOARCH pairs in the new build 53system. Running `mkall.sh -n` shows the commands that will be run. 54 55Requirements: bash, go, docker 56 57## Component files 58 59This section describes the various files used in the code generation process. 60It also contains instructions on how to modify these files to add a new 61architecture/OS or to add additional syscalls, types, or constants. Note that 62if you are using the new build system, the scripts/programs cannot be called normally. 63They must be called from within the docker container. 64 65### asm files 66 67The hand-written assembly file at `asm_${GOOS}_${GOARCH}.s` implements system 68call dispatch. There are three entry points: 69``` 70 func Syscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr) 71 func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr) 72 func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr) 73``` 74The first and second are the standard ones; they differ only in how many 75arguments can be passed to the kernel. The third is for low-level use by the 76ForkExec wrapper. Unlike the first two, it does not call into the scheduler to 77let it know that a system call is running. 78 79When porting Go to a new architecture/OS, this file must be implemented for 80each GOOS/GOARCH pair. 81 82### mksysnum 83 84Mksysnum is a Go program located at `${GOOS}/mksysnum.go` (or `mksysnum_${GOOS}.go` 85for the old system). This program takes in a list of header files containing the 86syscall number declarations and parses them to produce the corresponding list of 87Go numeric constants. See `zsysnum_${GOOS}_${GOARCH}.go` for the generated 88constants. 89 90Adding new syscall numbers is mostly done by running the build on a sufficiently 91new installation of the target OS (or updating the source checkouts for the 92new build system). However, depending on the OS, you may need to update the 93parsing in mksysnum. 94 95### mksyscall.go 96 97The `syscall.go`, `syscall_${GOOS}.go`, `syscall_${GOOS}_${GOARCH}.go` are 98hand-written Go files which implement system calls (for unix, the specific OS, 99or the specific OS/Architecture pair respectively) that need special handling 100and list `//sys` comments giving prototypes for ones that can be generated. 101 102The mksyscall.go program takes the `//sys` and `//sysnb` comments and converts 103them into syscalls. This requires the name of the prototype in the comment to 104match a syscall number in the `zsysnum_${GOOS}_${GOARCH}.go` file. The function 105prototype can be exported (capitalized) or not. 106 107Adding a new syscall often just requires adding a new `//sys` function prototype 108with the desired arguments and a capitalized name so it is exported. However, if 109you want the interface to the syscall to be different, often one will make an 110unexported `//sys` prototype, and then write a custom wrapper in 111`syscall_${GOOS}.go`. 112 113### types files 114 115For each OS, there is a hand-written Go file at `${GOOS}/types.go` (or 116`types_${GOOS}.go` on the old system). This file includes standard C headers and 117creates Go type aliases to the corresponding C types. The file is then fed 118through godef to get the Go compatible definitions. Finally, the generated code 119is fed though mkpost.go to format the code correctly and remove any hidden or 120private identifiers. This cleaned-up code is written to 121`ztypes_${GOOS}_${GOARCH}.go`. 122 123The hardest part about preparing this file is figuring out which headers to 124include and which symbols need to be `#define`d to get the actual data 125structures that pass through to the kernel system calls. Some C libraries 126preset alternate versions for binary compatibility and translate them on the 127way in and out of system calls, but there is almost always a `#define` that can 128get the real ones. 129See `types_darwin.go` and `linux/types.go` for examples. 130 131To add a new type, add in the necessary include statement at the top of the 132file (if it is not already there) and add in a type alias line. Note that if 133your type is significantly different on different architectures, you may need 134some `#if/#elif` macros in your include statements. 135 136### mkerrors.sh 137 138This script is used to generate the system's various constants. This doesn't 139just include the error numbers and error strings, but also the signal numbers 140and a wide variety of miscellaneous constants. The constants come from the list 141of include files in the `includes_${uname}` variable. A regex then picks out 142the desired `#define` statements, and generates the corresponding Go constants. 143The error numbers and strings are generated from `#include <errno.h>`, and the 144signal numbers and strings are generated from `#include <signal.h>`. All of 145these constants are written to `zerrors_${GOOS}_${GOARCH}.go` via a C program, 146`_errors.c`, which prints out all the constants. 147 148To add a constant, add the header that includes it to the appropriate variable. 149Then, edit the regex (if necessary) to match the desired constant. Avoid making 150the regex too broad to avoid matching unintended constants. 151 152### internal/mkmerge 153 154This program is used to extract duplicate const, func, and type declarations 155from the generated architecture-specific files listed below, and merge these 156into a common file for each OS. 157 158The merge is performed in the following steps: 1591. Construct the set of common code that is idential in all architecture-specific files. 1602. Write this common code to the merged file. 1613. Remove the common code from all architecture-specific files. 162 163 164## Generated files 165 166### `zerrors_${GOOS}_${GOARCH}.go` 167 168A file containing all of the system's generated error numbers, error strings, 169signal numbers, and constants. Generated by `mkerrors.sh` (see above). 170 171### `zsyscall_${GOOS}_${GOARCH}.go` 172 173A file containing all the generated syscalls for a specific GOOS and GOARCH. 174Generated by `mksyscall.go` (see above). 175 176### `zsysnum_${GOOS}_${GOARCH}.go` 177 178A list of numeric constants for all the syscall number of the specific GOOS 179and GOARCH. Generated by mksysnum (see above). 180 181### `ztypes_${GOOS}_${GOARCH}.go` 182 183A file containing Go types for passing into (or returning from) syscalls. 184Generated by godefs and the types file (see above). 185