]> Cypherpunks repositories - gostls13.git/commit
os, internal/syscall/unix: consolidate Pipe implementations
authorTobias Klauser <tklauser@distanz.ch>
Tue, 8 Mar 2022 13:54:53 +0000 (14:54 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Tue, 8 Mar 2022 21:16:44 +0000 (21:16 +0000)
commit085ef537c4a2c57d373e72f4a110d9fae9a287be
tree9d7d74ed9535a68b5924b00c16910802be8bf662
parentde8ddd97accb417450db014d1f45723515cb5d80
os, internal/syscall/unix: consolidate Pipe implementations

All platforms with the pipe2 syscall now provide syscall.Pipe2.  Use it
to implement os.Pipe.

This also allows to drop the illumos-specific wrapper in
internal/sys/unix.

Change-Id: Ieb712a1498e86a389bad261e4e97c61c11d4bdd0
Reviewed-on: https://go-review.googlesource.com/c/go/+/390715
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Trust: Matt Layher <mdlayher@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/internal/syscall/unix/pipe2_illumos.go [deleted file]
src/os/pipe2_illumos.go [deleted file]
src/os/pipe2_unix.go [moved from src/os/pipe2_bsd.go with 81% similarity]
src/os/pipe_linux.go [deleted file]
src/os/pipe_unix.go [moved from src/os/pipe_bsd.go with 91% similarity]