]> Cypherpunks.ru repositories - gostls13.git/commit
net, internal/poll, net/internal/socktest: use SOCK_{CLOEXEC,NONBLOCK} accept4/socket...
authorTobias Klauser <tklauser@distanz.ch>
Mon, 26 Feb 2018 14:58:05 +0000 (14:58 +0000)
committerTobias Klauser <tobias.klauser@gmail.com>
Mon, 26 Feb 2018 16:59:38 +0000 (16:59 +0000)
commit144bf04a2b0dea43e17fc9e745d3fa8885de11f7
treef96fc4725e73fb190e45ccafd995687aa212bb59
parentdb7af2e67b023da2c4e8c1cc49543ebf4566ce52
net, internal/poll, net/internal/socktest: use SOCK_{CLOEXEC,NONBLOCK} accept4/socket flags on OpenBSD

The SOCK_CLOEXEC and SOCK_NONBLOCK flags to the socket syscall and the
accept4 syscall are supported since OpenBSD 5.7.

Follows CL 40895 and CL 94295

Change-Id: Icaf35ace2ef5e73279a70d4f1a9fbf3be9371e6c
Reviewed-on: https://go-review.googlesource.com/97196
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
15 files changed:
src/internal/poll/hook_cloexec.go
src/internal/poll/sock_cloexec.go
src/internal/poll/sys_cloexec.go
src/net/internal/socktest/sys_cloexec.go
src/net/main_cloexec_test.go
src/net/sock_cloexec.go
src/net/sys_cloexec.go
src/syscall/syscall_openbsd.go
src/syscall/zerrors_openbsd_386.go
src/syscall/zerrors_openbsd_amd64.go
src/syscall/zsyscall_openbsd_386.go
src/syscall/zsyscall_openbsd_amd64.go
src/syscall/zsyscall_openbsd_arm.go
src/syscall/zsysnum_openbsd_386.go
src/syscall/zsysnum_openbsd_amd64.go