]> Cypherpunks repositories - gostls13.git/commit
runtime: make mmap return 0 instead of -1 on aix/ppc64
authorClément Chigot <clement.chigot@atos.net>
Mon, 29 Apr 2019 14:15:47 +0000 (16:15 +0200)
committerIan Lance Taylor <iant@golang.org>
Mon, 29 Apr 2019 21:26:07 +0000 (21:26 +0000)
commitd5014ec05b3cfe2589974b240863b5439e204417
tree41eb0cb26d541ddbdd6cc08a8ed2e1553d4674e6
parentfbc6a972226f889d2ab1150468755615098ee80f
runtime: make mmap return 0 instead of -1 on aix/ppc64

Most of the platforms are returning 0 instead of -1 when mmap syscalls
is failing. This patch corrects it for AIX in order to fix
TestMmapErrorSign and to improve AIX compatibility.

Change-Id: I1dad88d0e69163ad55c504b2b4a997892fd876cd
Reviewed-on: https://go-review.googlesource.com/c/go/+/174297
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/os2_aix.go