]> Cypherpunks repositories - gostls13.git/commit
runtime: fix errno sign for epollctl on mips, mips64 and ppc64
authorWèi Cōngruì <crvv.mail@gmail.com>
Tue, 23 Jan 2018 07:56:24 +0000 (15:56 +0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 24 Apr 2018 14:10:43 +0000 (14:10 +0000)
commitcc8809238b69b8614a1db1ecd1602318a05a259d
treeed10a9e482b39a6936e89c3b88c04b9f017105bb
parent665b9b3476ad0a6dc4e578e42e6c63012e23aaa0
runtime: fix errno sign for epollctl on mips, mips64 and ppc64

The caller of epollctl expects it to return a negative errno value,
but it returns a positive errno value on mips, mips64 and ppc64.
The change fixes this.

Updates #23446

Change-Id: Ie6372eca6c23de21964caaaa433c9a45ef93531e
Reviewed-on: https://go-review.googlesource.com/89235
Reviewed-by: Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/export_linux_test.go
src/runtime/runtime_linux_test.go
src/runtime/sys_linux_mips64x.s
src/runtime/sys_linux_mipsx.s
src/runtime/sys_linux_ppc64x.s