]> Cypherpunks repositories - gostls13.git/commit
net: pass MSG_CMSG_CLOEXEC in ReadMsgUnix on dragonfly, netbsd and openbsd
authorTobias Klauser <tklauser@distanz.ch>
Tue, 20 Apr 2021 08:25:19 +0000 (10:25 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Tue, 20 Apr 2021 21:00:46 +0000 (21:00 +0000)
commit57b0d838ed2e0c128dfc480fee3b5c43309d3369
tree427d16b4253885f734deb8473b84eb853bf6702e
parent3f8e64878a93a1b005e1ff0f2a939bab826b8b9f
net: pass MSG_CMSG_CLOEXEC in ReadMsgUnix on dragonfly, netbsd and openbsd

Add support for passing MSG_CMSG_CLOEXEC to the recvmsg syscall on
dragonfly, netbsd and openbsd. MSG_CMSG_CLOEXEC on freebsd is currently
broken, see https://reviews.freebsd.org/D29328.

Change-Id: Ie4c6e3cb550cd0ae32a1c2acca12edf77569e96a
Reviewed-on: https://go-review.googlesource.com/c/go/+/311570
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/unixsock_posix.go
src/net/unixsock_readmsg_cloexec.go [moved from src/net/unixsock_readmsg_posix.go with 78% similarity]
src/net/unixsock_readmsg_cmsg_cloexec.go [moved from src/net/unixsock_readmsg_linux.go with 59% similarity]
src/net/unixsock_readmsg_other.go
src/syscall/zerrors_dragonfly_amd64.go
src/syscall/zerrors_openbsd_386.go
src/syscall/zerrors_openbsd_amd64.go