• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..24-Jan-2021-

linux/H24-Jan-2021-4,6853,711

.gitignoreH A D24-Jan-202116 32

README.mdH A D24-Jan-20218.5 KiB185138

affinity_linux.goH A D24-Jan-20211.9 KiB8757

aliases.goH A D24-Jan-2021372 155

asm_aix_ppc64.sH A D24-Jan-2021406 185

asm_darwin_386.sH A D24-Jan-2021671 3011

asm_darwin_amd64.sH A D24-Jan-2021674 3011

asm_darwin_arm.sH A D24-Jan-2021682 3111

asm_darwin_arm64.sH A D24-Jan-2021687 3111

asm_dragonfly_amd64.sH A D24-Jan-2021677 3011

asm_freebsd_386.sH A D24-Jan-2021672 3011

asm_freebsd_amd64.sH A D24-Jan-2021675 3011

asm_freebsd_arm.sH A D24-Jan-2021662 3011

asm_freebsd_arm64.sH A D24-Jan-2021675 3011

asm_linux_386.sH A D24-Jan-20211.4 KiB6640

asm_linux_amd64.sH A D24-Jan-20211.2 KiB5837

asm_linux_arm.sH A D24-Jan-20211.1 KiB5736

asm_linux_arm64.sH A D24-Jan-20211.1 KiB5335

asm_linux_mips64x.sH A D24-Jan-20211.1 KiB5735

asm_linux_mipsx.sH A D24-Jan-20211.1 KiB5532

asm_linux_ppc64x.sH A D24-Jan-2021917 4527

asm_linux_riscv64.sH A D24-Jan-20211 KiB4829

asm_linux_s390x.sH A D24-Jan-20211.1 KiB5735

asm_netbsd_386.sH A D24-Jan-2021671 3011

asm_netbsd_amd64.sH A D24-Jan-2021674 3011

asm_netbsd_arm.sH A D24-Jan-2021661 3011

asm_netbsd_arm64.sH A D24-Jan-2021664 3011

asm_openbsd_386.sH A D24-Jan-2021672 3011

asm_openbsd_amd64.sH A D24-Jan-2021675 3011

asm_openbsd_arm.sH A D24-Jan-2021662 3011

asm_openbsd_arm64.sH A D24-Jan-2021675 3011

asm_openbsd_mips64.sH A D24-Jan-2021676 3011

asm_solaris_amd64.sH A D24-Jan-2021422 185

bluetooth_linux.goH A D24-Jan-2021680 3725

cap_freebsd.goH A D24-Jan-20215 KiB196148

constants.goH A D24-Jan-2021289 146

creds_test.goH A D24-Jan-20213.1 KiB135107

darwin_test.goH A D24-Jan-20217.5 KiB210170

dev_aix_ppc.goH A D24-Jan-2021745 2810

dev_aix_ppc64.goH A D24-Jan-2021864 3012

dev_darwin.goH A D24-Jan-2021747 2510

dev_dragonfly.goH A D24-Jan-20211 KiB3110

dev_freebsd.goH A D24-Jan-20211,013 3110

dev_linux.goH A D24-Jan-20211.5 KiB4318

dev_linux_test.goH A D24-Jan-20211.5 KiB5743

dev_netbsd.goH A D24-Jan-2021913 3015

dev_openbsd.goH A D24-Jan-2021918 3015

dirent.goH A D24-Jan-20213 KiB10385

dirent_test.goH A D24-Jan-20213.4 KiB151125

endian_big.goH A D24-Jan-2021293 102

endian_little.goH A D24-Jan-2021307 102

env_unix.goH A D24-Jan-2021616 3217

errors_freebsd_386.goH A D24-Jan-20219.4 KiB234225

errors_freebsd_amd64.goH A D24-Jan-20219.4 KiB234225

errors_freebsd_arm.goH A D24-Jan-20218.8 KiB227219

errors_freebsd_arm64.goH A D24-Jan-2021481 189

example_exec_test.goH A D24-Jan-2021404 2010

example_flock_test.goH A D24-Jan-2021594 2615

export_test.goH A D24-Jan-2021259 102

fcntl.goH A D24-Jan-20211 KiB3721

fcntl_darwin.goH A D24-Jan-2021806 2513

fcntl_linux_32bit.goH A D24-Jan-2021388 144

fdset.goH A D24-Jan-2021752 3015

fdset_test.goH A D24-Jan-20211.2 KiB6448

gccgo.goH A D24-Jan-20211.9 KiB6140

gccgo_c.cH A D24-Jan-20211.5 KiB4628

gccgo_linux_amd64.goH A D24-Jan-2021429 2110

getdirentries_test.goH A D24-Jan-20211.8 KiB8469

ioctl.goH A D24-Jan-20212.4 KiB7537

mkall.shH A D24-Jan-20218.3 KiB244208

mkasm_darwin.goH A D24-Jan-20212.2 KiB7961

mkerrors.shH A D24-Jan-202117.8 KiB727647

mkmerge.goH A D24-Jan-202112.8 KiB522368

mkmerge_test.goH A D24-Jan-202110.6 KiB506373

mkpost.goH A D24-Jan-20215.4 KiB15085

mksyscall.goH A D24-Jan-202112 KiB395303

mksyscall_aix_ppc.goH A D24-Jan-202112.1 KiB416323

mksyscall_aix_ppc64.goH A D24-Jan-202118.9 KiB615436

mksyscall_solaris.goH A D24-Jan-20219.6 KiB342253

mksysctl_openbsd.goH A D24-Jan-20217.9 KiB352290

mksysnum.goH A D24-Jan-20214.3 KiB184139

mmap_unix_test.goH A D24-Jan-2021976 4229

openbsd_test.goH A D24-Jan-20212.4 KiB11487

pagesize_unix.goH A D24-Jan-2021367 165

pledge_openbsd.goH A D24-Jan-20213.7 KiB164102

ptrace_darwin.goH A D24-Jan-2021311 124

ptrace_ios.goH A D24-Jan-2021283 124

race.goH A D24-Jan-2021607 3118

race0.goH A D24-Jan-2021509 2613

readdirent_getdents.goH A D24-Jan-2021385 134

readdirent_getdirentries.goH A D24-Jan-2021697 206

sendfile_test.goH A D24-Jan-20212.4 KiB10478

sockcmsg_dragonfly.goH A D24-Jan-2021544 178

sockcmsg_linux.goH A D24-Jan-20211 KiB3721

sockcmsg_unix.goH A D24-Jan-20212.6 KiB9364

sockcmsg_unix_other.goH A D24-Jan-20211.1 KiB4323

str.goH A D24-Jan-2021615 2718

syscall.goH A D24-Jan-20212.9 KiB9547

syscall_aix.goH A D24-Jan-202115.5 KiB553315

syscall_aix_ppc.goH A D24-Jan-20211.3 KiB5531

syscall_aix_ppc64.goH A D24-Jan-20212 KiB8656

syscall_aix_test.goH A D24-Jan-20212.1 KiB10881

syscall_bsd.goH A D24-Jan-202116.1 KiB664504

syscall_bsd_test.goH A D24-Jan-20211.8 KiB8569

syscall_darwin.1_12.goH A D24-Jan-2021846 3219

syscall_darwin.1_13.goH A D24-Jan-20212.7 KiB10865

syscall_darwin.goH A D24-Jan-202118.6 KiB669230

syscall_darwin_386.goH A D24-Jan-20211.5 KiB5126

syscall_darwin_amd64.goH A D24-Jan-20211.5 KiB5126

syscall_darwin_arm.goH A D24-Jan-20211.4 KiB5229

syscall_darwin_arm64.goH A D24-Jan-20211.4 KiB5126

syscall_darwin_libSystem.goH A D24-Jan-20211.4 KiB3412

syscall_darwin_test.goH A D24-Jan-20214.7 KiB220177

syscall_dragonfly.goH A D24-Jan-202114.2 KiB542170

syscall_dragonfly_amd64.goH A D24-Jan-20211.2 KiB5738

syscall_freebsd.goH A D24-Jan-202124.1 KiB864417

syscall_freebsd_386.goH A D24-Jan-20211.7 KiB6746

syscall_freebsd_amd64.goH A D24-Jan-20211.7 KiB6746

syscall_freebsd_arm.goH A D24-Jan-20211.6 KiB6343

syscall_freebsd_arm64.goH A D24-Jan-20211.6 KiB6343

syscall_freebsd_test.goH A D24-Jan-20217.3 KiB313251

syscall_illumos.goH A D24-Jan-20211.8 KiB7851

syscall_internal_bsd_test.goH A D24-Jan-20213.1 KiB155132

syscall_internal_darwin_test.goH A D24-Jan-20212.7 KiB132117

syscall_internal_linux_test.goH A D24-Jan-202114.2 KiB689634

syscall_linux.goH A D24-Jan-202169.4 KiB2,4021,502

syscall_linux_386.goH A D24-Jan-202110.6 KiB388274

syscall_linux_amd64.goH A D24-Jan-20216.4 KiB19592

syscall_linux_amd64_gc.goH A D24-Jan-2021293 143

syscall_linux_arm.goH A D24-Jan-20218.6 KiB287170

syscall_linux_arm64.goH A D24-Jan-20217.4 KiB246145

syscall_linux_gc.goH A D24-Jan-2021491 153

syscall_linux_gc_386.goH A D24-Jan-2021578 175

syscall_linux_gc_arm.goH A D24-Jan-2021404 143

syscall_linux_gccgo_386.goH A D24-Jan-2021979 3120

syscall_linux_gccgo_arm.goH A D24-Jan-2021589 2112

syscall_linux_mips64x.goH A D24-Jan-20216.8 KiB231134

syscall_linux_mipsx.goH A D24-Jan-20217.3 KiB239131

syscall_linux_ppc64x.goH A D24-Jan-20216 KiB15757

syscall_linux_riscv64.goH A D24-Jan-20217 KiB231134

syscall_linux_s390x.goH A D24-Jan-202110.5 KiB343241

syscall_linux_sparc64.goH A D24-Jan-20215.3 KiB15264

syscall_linux_test.goH A D24-Jan-202119.8 KiB798654

syscall_netbsd.goH A D24-Jan-202115.9 KiB604167

syscall_netbsd_386.goH A D24-Jan-2021815 3824

syscall_netbsd_amd64.goH A D24-Jan-2021810 3824

syscall_netbsd_arm.goH A D24-Jan-2021815 3824

syscall_netbsd_arm64.goH A D24-Jan-2021810 3824

syscall_netbsd_test.goH A D24-Jan-20211.8 KiB7656

syscall_openbsd.goH A D24-Jan-202111.1 KiB391156

syscall_openbsd_386.goH A D24-Jan-2021996 4225

syscall_openbsd_amd64.goH A D24-Jan-2021986 4225

syscall_openbsd_arm.goH A D24-Jan-2021996 4225

syscall_openbsd_arm64.goH A D24-Jan-2021986 4225

syscall_openbsd_mips64.goH A D24-Jan-2021874 3622

syscall_openbsd_test.goH A D24-Jan-20211 KiB5139

syscall_solaris.goH A D24-Jan-202120.9 KiB741471

syscall_solaris_amd64.goH A D24-Jan-2021589 2816

syscall_solaris_test.goH A D24-Jan-20211.4 KiB7764

syscall_test.goH A D24-Jan-20211.5 KiB7254

syscall_unix.goH A D24-Jan-202110.8 KiB431334

syscall_unix_gc.goH A D24-Jan-2021618 166

syscall_unix_gc_ppc64x.goH A D24-Jan-2021794 2514

syscall_unix_test.goH A D24-Jan-202122.3 KiB938777

timestruct.goH A D24-Jan-20212.2 KiB7744

timestruct_test.goH A D24-Jan-20211.7 KiB5541

types_aix.goH A D24-Jan-20214.3 KiB239104

types_darwin.goH A D24-Jan-20215.9 KiB299129

types_dragonfly.goH A D24-Jan-20215.2 KiB271117

types_freebsd.goH A D24-Jan-20218.5 KiB408181

types_netbsd.goH A D24-Jan-20215.8 KiB302133

types_openbsd.goH A D24-Jan-20215.4 KiB285121

types_solaris.goH A D24-Jan-20215.5 KiB271115

unveil_openbsd.goH A D24-Jan-20211 KiB4328

xattr_bsd.goH A D24-Jan-20215 KiB241178

xattr_test.goH A D24-Jan-20214.6 KiB208155

zerrors_aix_ppc.goH A D24-Jan-202152.4 KiB1,3851,366

zerrors_aix_ppc64.goH A D24-Jan-202152.7 KiB1,3861,367

zerrors_darwin_386.goH A D24-Jan-202173 KiB1,7891,770

zerrors_darwin_amd64.goH A D24-Jan-202173 KiB1,7891,770

zerrors_darwin_arm.goH A D24-Jan-202173 KiB1,7891,770

zerrors_darwin_arm64.goH A D24-Jan-202173 KiB1,7891,770

zerrors_dragonfly_amd64.goH A D24-Jan-202170.7 KiB1,7381,719

zerrors_freebsd_386.goH A D24-Jan-202175.5 KiB1,9371,918

zerrors_freebsd_amd64.goH A D24-Jan-202175.5 KiB1,9361,917

zerrors_freebsd_arm.goH A D24-Jan-202171.1 KiB1,8261,807

zerrors_freebsd_arm64.goH A D24-Jan-202175.5 KiB1,9371,918

zerrors_linux.goH A D24-Jan-2021141 KiB2,7872,776

zerrors_linux_386.goH A D24-Jan-202131.8 KiB791772

zerrors_linux_amd64.goH A D24-Jan-202131.8 KiB791772

zerrors_linux_arm.goH A D24-Jan-202132.1 KiB797778

zerrors_linux_arm64.goH A D24-Jan-202131.7 KiB787768

zerrors_linux_mips.goH A D24-Jan-202132.3 KiB798779

zerrors_linux_mips64.goH A D24-Jan-202132.3 KiB798779

zerrors_linux_mips64le.goH A D24-Jan-202132.3 KiB798779

zerrors_linux_mipsle.goH A D24-Jan-202132.3 KiB798779

zerrors_linux_ppc64.goH A D24-Jan-202134.6 KiB854835

zerrors_linux_ppc64le.goH A D24-Jan-202134.6 KiB854835

zerrors_linux_riscv64.goH A D24-Jan-202131.3 KiB778759

zerrors_linux_s390x.goH A D24-Jan-202134.3 KiB851832

zerrors_linux_sparc64.goH A D24-Jan-202134.5 KiB848829

zerrors_netbsd_386.goH A D24-Jan-202172.8 KiB1,7801,761

zerrors_netbsd_amd64.goH A D24-Jan-202172.3 KiB1,7701,751

zerrors_netbsd_arm.goH A D24-Jan-202171.9 KiB1,7591,740

zerrors_netbsd_arm64.goH A D24-Jan-202172.3 KiB1,7701,751

zerrors_openbsd_386.goH A D24-Jan-202168.1 KiB1,6651,646

zerrors_openbsd_amd64.goH A D24-Jan-202172.7 KiB1,7751,756

zerrors_openbsd_arm.goH A D24-Jan-202168.2 KiB1,6671,648

zerrors_openbsd_arm64.goH A D24-Jan-202173.7 KiB1,7981,779

zerrors_openbsd_mips64.goH A D24-Jan-202176.8 KiB1,8631,844

zerrors_solaris_amd64.goH A D24-Jan-202158.9 KiB1,5541,535

zptrace_armnn_linux.goH A D24-Jan-20211.2 KiB4223

zptrace_linux_arm64.goH A D24-Jan-2021733 1810

zptrace_mipsnn_linux.goH A D24-Jan-20211.4 KiB5132

zptrace_mipsnnle_linux.goH A D24-Jan-20211.4 KiB5132

zptrace_x86_linux.goH A D24-Jan-20211.8 KiB8162

zsyscall_aix_ppc.goH A D24-Jan-202136.1 KiB1,485992

zsyscall_aix_ppc64.goH A D24-Jan-202130.5 KiB1,4431,073

zsyscall_aix_ppc64_gc.goH A D24-Jan-202142.4 KiB1,193594

zsyscall_aix_ppc64_gccgo.goH A D24-Jan-202130.7 KiB1,071590

zsyscall_darwin_386.1_13.goH A D24-Jan-20211,013 4020

zsyscall_darwin_386.1_13.sH A D24-Jan-2021344 137

zsyscall_darwin_386.goH A D24-Jan-202163 KiB2,4311,565

zsyscall_darwin_386.sH A D24-Jan-20219.9 KiB291285

zsyscall_darwin_amd64.1_13.goH A D24-Jan-20211,012 4020

zsyscall_darwin_amd64.1_13.sH A D24-Jan-2021346 137

zsyscall_darwin_amd64.goH A D24-Jan-202162.8 KiB2,4311,565

zsyscall_darwin_amd64.sH A D24-Jan-20219.9 KiB291285

zsyscall_darwin_arm.1_13.goH A D24-Jan-20211,013 4020

zsyscall_darwin_arm.1_13.sH A D24-Jan-2021344 137

zsyscall_darwin_arm.goH A D24-Jan-202162.5 KiB2,4171,557

zsyscall_darwin_arm.sH A D24-Jan-20219.8 KiB289283

zsyscall_darwin_arm64.1_13.goH A D24-Jan-20211,012 4020

zsyscall_darwin_arm64.1_13.sH A D24-Jan-2021346 137

zsyscall_darwin_arm64.goH A D24-Jan-202162.7 KiB2,4311,565

zsyscall_darwin_arm64.sH A D24-Jan-20219.9 KiB291285

zsyscall_dragonfly_amd64.goH A D24-Jan-202139 KiB1,6771,270

zsyscall_freebsd_386.goH A D24-Jan-202148.3 KiB2,0161,543

zsyscall_freebsd_amd64.goH A D24-Jan-202148.1 KiB2,0161,543

zsyscall_freebsd_arm.goH A D24-Jan-202148.3 KiB2,0161,543

zsyscall_freebsd_arm64.goH A D24-Jan-202148.1 KiB2,0161,543

zsyscall_illumos_amd64.goH A D24-Jan-20212.6 KiB10267

zsyscall_linux.goH A D24-Jan-202146.3 KiB1,9341,523

zsyscall_linux_386.goH A D24-Jan-202114.2 KiB579424

zsyscall_linux_amd64.goH A D24-Jan-202118.7 KiB746546

zsyscall_linux_arm.goH A D24-Jan-202118.3 KiB716525

zsyscall_linux_arm64.goH A D24-Jan-202115.5 KiB603439

zsyscall_linux_mips.goH A D24-Jan-202119.2 KiB759556

zsyscall_linux_mips64.goH A D24-Jan-202118.3 KiB730536

zsyscall_linux_mips64le.goH A D24-Jan-202118.3 KiB730536

zsyscall_linux_mipsle.goH A D24-Jan-202119.2 KiB759556

zsyscall_linux_ppc64.goH A D24-Jan-202120.2 KiB808593

zsyscall_linux_ppc64le.goH A D24-Jan-202120.2 KiB808593

zsyscall_linux_riscv64.goH A D24-Jan-202115 KiB583422

zsyscall_linux_s390x.goH A D24-Jan-202114 KiB578426

zsyscall_linux_sparc64.goH A D24-Jan-202118.6 KiB741544

zsyscall_netbsd_386.goH A D24-Jan-202144 KiB1,8521,421

zsyscall_netbsd_amd64.goH A D24-Jan-202143.8 KiB1,8521,421

zsyscall_netbsd_arm.goH A D24-Jan-202144 KiB1,8521,421

zsyscall_netbsd_arm64.goH A D24-Jan-202143.8 KiB1,8521,421

zsyscall_openbsd_386.goH A D24-Jan-202139.5 KiB1,6931,283

zsyscall_openbsd_amd64.goH A D24-Jan-202139.4 KiB1,6931,283

zsyscall_openbsd_arm.goH A D24-Jan-202139.5 KiB1,6931,283

zsyscall_openbsd_arm64.goH A D24-Jan-202139.4 KiB1,6931,283

zsyscall_openbsd_mips64.goH A D24-Jan-202139.4 KiB1,6931,283

zsyscall_solaris_amd64.goH A D24-Jan-202154.2 KiB1,9681,313

zsysctl_openbsd_386.goH A D24-Jan-202111.8 KiB274266

zsysctl_openbsd_amd64.goH A D24-Jan-202111.6 KiB272264

zsysctl_openbsd_arm.goH A D24-Jan-202111.8 KiB274266

zsysctl_openbsd_arm64.goH A D24-Jan-202111.8 KiB276268

zsysctl_openbsd_mips64.goH A D24-Jan-202111.9 KiB280272

zsysnum_darwin_386.goH A D24-Jan-202117.8 KiB438430

zsysnum_darwin_amd64.goH A D24-Jan-202117.8 KiB440432

zsysnum_darwin_arm.goH A D24-Jan-202117.8 KiB438430

zsysnum_darwin_arm64.goH A D24-Jan-202117.8 KiB438430

zsysnum_dragonfly_amd64.goH A D24-Jan-202127.6 KiB317309

zsysnum_freebsd_386.goH A D24-Jan-202136.2 KiB397389

zsysnum_freebsd_amd64.goH A D24-Jan-202136.2 KiB397389

zsysnum_freebsd_arm.goH A D24-Jan-202136.2 KiB397389

zsysnum_freebsd_arm64.goH A D24-Jan-202136.2 KiB397389

zsysnum_linux_386.goH A D24-Jan-202116.9 KiB440433

zsysnum_linux_amd64.goH A D24-Jan-202111.8 KiB362355

zsysnum_linux_arm.goH A D24-Jan-202115.5 KiB404397

zsysnum_linux_arm64.goH A D24-Jan-202110 KiB307300

zsysnum_linux_mips.goH A D24-Jan-202116.8 KiB425418

zsysnum_linux_mips64.goH A D24-Jan-202112 KiB355348

zsysnum_linux_mips64le.goH A D24-Jan-202112 KiB355348

zsysnum_linux_mipsle.goH A D24-Jan-202116.8 KiB425418

zsysnum_linux_ppc64.goH A D24-Jan-202113.2 KiB404397

zsysnum_linux_ppc64le.goH A D24-Jan-202113.2 KiB404397

zsysnum_linux_riscv64.goH A D24-Jan-20219.9 KiB306299

zsysnum_linux_s390x.goH A D24-Jan-202112.1 KiB369362

zsysnum_linux_sparc64.goH A D24-Jan-202112.5 KiB383376

zsysnum_netbsd_386.goH A D24-Jan-202125.7 KiB275268

zsysnum_netbsd_amd64.goH A D24-Jan-202125.7 KiB275268

zsysnum_netbsd_arm.goH A D24-Jan-202125.7 KiB275268

zsysnum_netbsd_arm64.goH A D24-Jan-202125.7 KiB275268

zsysnum_openbsd_386.goH A D24-Jan-202117.8 KiB219212

zsysnum_openbsd_amd64.goH A D24-Jan-202117.8 KiB219212

zsysnum_openbsd_arm.goH A D24-Jan-202117.8 KiB219212

zsysnum_openbsd_arm64.goH A D24-Jan-202117.8 KiB218211

zsysnum_openbsd_mips64.goH A D24-Jan-202118 KiB221214

ztypes_aix_ppc.goH A D24-Jan-20214.9 KiB354296

ztypes_aix_ppc64.goH A D24-Jan-20215 KiB358300

ztypes_darwin_386.goH A D24-Jan-20217.5 KiB517448

ztypes_darwin_amd64.goH A D24-Jan-20217.5 KiB522453

ztypes_darwin_arm.goH A D24-Jan-20217.5 KiB517448

ztypes_darwin_arm64.goH A D24-Jan-20217.5 KiB522453

ztypes_dragonfly_amd64.goH A D24-Jan-20216.8 KiB471410

ztypes_freebsd_386.goH A D24-Jan-202110.7 KiB711630

ztypes_freebsd_amd64.goH A D24-Jan-202110.7 KiB714633

ztypes_freebsd_arm.goH A D24-Jan-202110.5 KiB695614

ztypes_freebsd_arm64.goH A D24-Jan-202110.4 KiB692611

ztypes_linux.goH A D24-Jan-2021134.2 KiB3,6833,502

ztypes_linux_386.goH A D24-Jan-202111 KiB620546

ztypes_linux_amd64.goH A D24-Jan-202111.3 KiB638564

ztypes_linux_arm.goH A D24-Jan-202110.9 KiB615541

ztypes_linux_arm64.goH A D24-Jan-202110.9 KiB617543

ztypes_linux_mips.goH A D24-Jan-202111 KiB621547

ztypes_linux_mips64.goH A D24-Jan-202111 KiB620546

ztypes_linux_mips64le.goH A D24-Jan-202111 KiB620546

ztypes_linux_mipsle.goH A D24-Jan-202111 KiB621547

ztypes_linux_ppc64.goH A D24-Jan-202111.1 KiB627553

ztypes_linux_ppc64le.goH A D24-Jan-202111.2 KiB627553

ztypes_linux_riscv64.goH A D24-Jan-202111.3 KiB645571

ztypes_linux_s390x.goH A D24-Jan-202111.4 KiB641564

ztypes_linux_sparc64.goH A D24-Jan-202111 KiB622548

ztypes_netbsd_386.goH A D24-Jan-20217.3 KiB500433

ztypes_netbsd_amd64.goH A D24-Jan-20217.5 KiB508441

ztypes_netbsd_arm.goH A D24-Jan-20217.5 KiB505438

ztypes_netbsd_arm64.goH A D24-Jan-20217.5 KiB508441

ztypes_openbsd_386.goH A D24-Jan-20219.4 KiB573508

ztypes_openbsd_amd64.goH A D24-Jan-20219.3 KiB573508

ztypes_openbsd_arm.goH A D24-Jan-20219.3 KiB574509

ztypes_openbsd_arm64.goH A D24-Jan-20219.2 KiB567502

ztypes_openbsd_mips64.goH A D24-Jan-20219.2 KiB567502

ztypes_solaris_amd64.goH A D24-Jan-20216.3 KiB442381

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 an 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, an 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
140an 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### mkmerge.go
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