]> Cypherpunks repositories - gostls13.git/commit
runtime: consolidate on a single closeonexec definition
authorIan Lance Taylor <iant@golang.org>
Sat, 20 May 2023 00:44:35 +0000 (17:44 -0700)
committerGopher Robot <gobot@golang.org>
Sat, 20 May 2023 21:27:51 +0000 (21:27 +0000)
commit58315a771a645359d2173f9555d4a606e6613158
tree2aa0c4ac7106e77d601fdb12af2fbb69eaa1414d
parent2ec648aa8c42d1215ddf59c6a461b21fb6723b74
runtime: consolidate on a single closeonexec definition

Now that we implement fcntl on all Unix systems, we can
write closeonexec that uses it. This lets us remove a bunch
of assembler code.

Change-Id: If35591df535ccfc67292086a9492f0a8920e3681
Reviewed-on: https://go-review.googlesource.com/c/go/+/496081
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
38 files changed:
src/runtime/defs1_solaris_amd64.go
src/runtime/defs_aix.go
src/runtime/defs_aix_ppc64.go
src/runtime/defs_darwin.go
src/runtime/defs_darwin_amd64.go
src/runtime/defs_darwin_arm64.go
src/runtime/defs_openbsd.go
src/runtime/defs_openbsd_386.go
src/runtime/defs_openbsd_amd64.go
src/runtime/defs_openbsd_arm.go
src/runtime/defs_openbsd_arm64.go
src/runtime/defs_solaris.go
src/runtime/export_linux_test.go
src/runtime/export_unix2_test.go [deleted file]
src/runtime/export_unix_test.go
src/runtime/internal/syscall/defs_linux.go [deleted file]
src/runtime/internal/syscall/syscall_linux.go
src/runtime/netpoll_solaris.go
src/runtime/os3_solaris.go
src/runtime/os_aix.go
src/runtime/os_dragonfly.go
src/runtime/os_freebsd.go
src/runtime/os_netbsd.go
src/runtime/os_openbsd_syscall2.go
src/runtime/os_unix.go [new file with mode: 0644]
src/runtime/sys_darwin.go
src/runtime/sys_dragonfly_amd64.s
src/runtime/sys_freebsd_386.s
src/runtime/sys_freebsd_amd64.s
src/runtime/sys_freebsd_arm.s
src/runtime/sys_freebsd_arm64.s
src/runtime/sys_freebsd_riscv64.s
src/runtime/sys_netbsd_386.s
src/runtime/sys_netbsd_amd64.s
src/runtime/sys_netbsd_arm.s
src/runtime/sys_netbsd_arm64.s
src/runtime/sys_openbsd2.go
src/runtime/sys_openbsd_mips64.s