1
0
mirror of https://github.com/golang/go synced 2024-11-07 16:56:14 -07:00
go/src
David Wimmer acd30e9a82 runtime: fix syscall error returns on mips/mips64/ppc64
The linux syscall functions used in runtime are designed around the calling
convention of returning errors as negative numbers. On some other systems
(like mips and ppc) the actual syscalls signal errors in other ways. This
means that the assembly implementations of the syscall functions on these
platforms need to transform the return values in the error cases to match
the expected negative errno values. This was addressed for certain syscalls
in https://golang.org/cl/19455 and https://golang.org/cl/89235. This patch
handles the rest of the syscall functions in sys_linux_*.s that return any
value for mips/mips64/ppc64.

Fixes #23446

Change-Id: I302100261231f76d5850ab2c2ea080170d7dba72
GitHub-Last-Rev: e358e2b08c
GitHub-Pull-Request: golang/go#26606
Reviewed-on: https://go-review.googlesource.com/125895
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2018-08-01 18:44:46 +00:00
..
archive
bufio
builtin
bytes
cmd cmd/cgo: stop expanding typedefs once we reach __builtin types 2018-08-01 14:29:58 +00:00
compress
container
context
crypto crypto/x509: skip TestSystemRoots 2018-07-27 16:44:57 +00:00
database/sql
debug
encoding
errors
expvar
flag
fmt strconv: clarify "g" and "G" precision in the docs 2018-08-01 00:57:00 +00:00
go go/doc: do not treat methods as test functions 2018-07-31 16:11:48 +00:00
hash
html html: lazily populate Unescape tables 2018-07-31 22:10:54 +00:00
image
index/suffixarray
internal
io
log
math
mime
net net/http: revert CL 89275 (don't sniff Content-Type when nosniff set) 2018-07-31 17:29:58 +00:00
os
path path: present the correct error message in TestMatch 2018-07-29 19:18:48 +00:00
plugin
reflect
regexp
runtime runtime: fix syscall error returns on mips/mips64/ppc64 2018-08-01 18:44:46 +00:00
sort
strconv strconv: clarify "g" and "G" precision in the docs 2018-08-01 00:57:00 +00:00
strings
sync
syscall syscall: remove support for O_NONBLOCK and O_SYNC on js/wasm 2018-07-31 17:03:39 +00:00
testing
text
time
unicode
unsafe
vendor/golang_org/x
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash cmd/go: add $GOFLAGS environment variable 2018-08-01 00:35:21 +00:00
make.bat cmd/go: add $GOFLAGS environment variable 2018-08-01 00:35:21 +00:00
Make.dist
make.rc cmd/go: add $GOFLAGS environment variable 2018-08-01 00:35:21 +00:00
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash cmd/go: add $GOFLAGS environment variable 2018-08-01 00:35:21 +00:00
run.bat cmd/go: add $GOFLAGS environment variable 2018-08-01 00:35:21 +00:00
run.rc cmd/go: add $GOFLAGS environment variable 2018-08-01 00:35:21 +00:00