]> Cypherpunks repositories - gostls13.git/commit
runtime: improve mmap return value checking for netbsd/openbsd
authorJoel Sing <jsing@google.com>
Fri, 22 Mar 2013 15:15:52 +0000 (02:15 +1100)
committerJoel Sing <jsing@google.com>
Fri, 22 Mar 2013 15:15:52 +0000 (02:15 +1100)
commit28f65bf4a2ca23701f3c24c866b02bc473c0dd1e
tree0e29bafb938ede25a9115f4b55db0628e606771c
parentd88133137bcab6839d1f1cab0d4b9edb30381b41
runtime: improve mmap return value checking for netbsd/openbsd

Rather than just checking for ENOMEM, check for a return value of less
than 4096, so that we catch other errors such as EACCES and EINVAL.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7942043
src/pkg/runtime/mem_netbsd.c
src/pkg/runtime/mem_openbsd.c