]> Cypherpunks repositories - gostls13.git/commit
net: merge common Unix/Windows methods
authorIan Lance Taylor <iant@golang.org>
Thu, 19 Mar 2020 21:29:23 +0000 (14:29 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 20 Mar 2020 00:49:34 +0000 (00:49 +0000)
commitd55e0c10ad5e2fde97697e01c46c12a2b2406a10
treeadae1f55c87a40230a4ac00d8f2565d6d8ab2557
parenta3a9901c1e82f69e41308f45448f4db618548366
net: merge common Unix/Windows methods

When we added the internal/poll package, the Unix and Windows implementations
of several netFD methods became exactly the same, except for using a
different name for the string passed to wrapSyscallError.

One case is not an exact duplicate: we slightly tweak the implementation
of (*netFD).shutdown on Windows to wrap the error.

Change-Id: I3d87a317d5468ff8f1958d86f6189ea1ba697e9a
Reviewed-on: https://go-review.googlesource.com/c/go/+/224140
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
src/net/fd_posix.go [new file with mode: 0644]
src/net/fd_unix.go
src/net/fd_windows.go