]> Cypherpunks repositories - gostls13.git/commit
runtime: return errno value from Solaris mmap as expected
authorIan Lance Taylor <iant@golang.org>
Fri, 12 Feb 2016 02:09:34 +0000 (18:09 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 12 Feb 2016 19:20:19 +0000 (19:20 +0000)
commitc93193aec0f33e901d6802e61c966286785f57ee
treece42c613f8f1a68a01e6608daef6c1b11541b62e
parent68aa7fb636d236c23be4fa05f87a898b5e7df362
runtime: return errno value from Solaris mmap as expected

The code in mem_bsd.go expects that when mmap fails it will return a
positive errno value.  This fixes the Solaris implementation of mmap to
work as expected.

Change-Id: Id1c34a9b916e8dc955ced90ea2f4af8321d92265
Reviewed-on: https://go-review.googlesource.com/19477
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/os3_solaris.go