]> Cypherpunks repositories - gostls13.git/commit
runtime: negate errno value for mips pipe/pipe2
authorIan Lance Taylor <iant@golang.org>
Sun, 22 Mar 2020 19:57:36 +0000 (12:57 -0700)
committerTobias Klauser <tobias.klauser@gmail.com>
Tue, 24 Mar 2020 11:03:07 +0000 (11:03 +0000)
commit20b46c7c697ce9d833141abe9aa0ea6101f00ae2
tree78bead8f3d3e0eaf2fe103a514894bc6edb48065
parent9ef61d58c015e7bc297ed4404e34af5f3d514257
runtime: negate errno value for mips pipe/pipe2

The callers expect negative errno values, so negate them when necessary.

No test because there is no reasonable way to make pipe/pipe2 fail.
This was reported on a system on which pipe2 returned ENOSYS.

Fixes #37997

Change-Id: I3ad6cbbc2521cf495f8df6ec991a3f781122b508
Reviewed-on: https://go-review.googlesource.com/c/go/+/224592
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
src/runtime/sys_linux_mips64x.s
src/runtime/sys_linux_mipsx.s