]> Cypherpunks.ru repositories - gostls13.git/commit
syscall, os: use pipe2 syscall on DragonflyBSD instead of pipe
authorTobias Klauser <tklauser@distanz.ch>
Tue, 23 Feb 2021 13:58:32 +0000 (14:58 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Thu, 25 Feb 2021 09:20:03 +0000 (09:20 +0000)
commit76c0003cd5645078e342c1d24c98b3ce5ae42eb4
tree9e07285c7cedd7a94b95a3b9acafeef9ba77bcb4
parent666ad85df450e3a54a77954f97423980b6ac064f
syscall, os: use pipe2 syscall on DragonflyBSD instead of pipe

Follow the implementation used by the other BSDs and account for the
intricacy of having to pass the fds array even though the file
descriptors are returned.

Re-submit of CL 130996 with corrected pipe2 wrapper.

Change-Id: Ie36d8214cba60c4fdb579f18bfc1c1ab3ead3ddc
Reviewed-on: https://go-review.googlesource.com/c/go/+/295372
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/os/pipe2_bsd.go
src/os/pipe_bsd.go
src/syscall/forkpipe.go
src/syscall/forkpipe2.go
src/syscall/syscall_dragonfly.go
src/syscall/zsyscall_dragonfly_amd64.go
src/syscall/zsysnum_dragonfly_amd64.go