]> Cypherpunks repositories - gostls13.git/commit
os: define wrapSyscallError only on linux
authorTobias Klauser <tklauser@distanz.ch>
Mon, 1 Apr 2024 22:10:47 +0000 (00:10 +0200)
committerGopher Robot <gobot@golang.org>
Tue, 2 Apr 2024 15:01:40 +0000 (15:01 +0000)
commite3ec1ca17e339e21ca50fbdb375b4294783bc385
tree939d0724ec4341444f9cb999dbfb7c0906fd99ee
parent88b1d6115a9d984780391f11523364dbd509ae14
os: define wrapSyscallError only on linux

wrapSyscallError by now is only used on linux in the methods defined in
os/zero_copy_linux.go. Move the definition there.

Change-Id: I0ca5749adaac44e8d095b8452458b647f595d3c8
Reviewed-on: https://go-review.googlesource.com/c/go/+/575595
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
src/os/error_posix.go [deleted file]
src/os/zero_copy_linux.go