]> Cypherpunks repositories - gostls13.git/commit
runtime: document, fix libc error checks on macOS
authorRuss Cox <rsc@golang.org>
Wed, 5 Jun 2019 18:51:57 +0000 (14:51 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 6 Jun 2019 19:56:53 +0000 (19:56 +0000)
commit7d65e3a8533c90e5a3ec3d73734891a18b057fed
tree461b62764aa6344486ed30ee928d53cc31979ac2
parent47df542fefc355d65659278761d06cb9d5eba235
runtime: document, fix libc error checks on macOS

It matters whether we are calling a function that would
return a 32-bit or 64-bit -1 on error. A few sites were wrong
and this key detail was omitted from syscall/syscallX docs.

Change-Id: I48a421b6cc4d2d2b5e58f790cc947e3cb2f98940
Reviewed-on: https://go-review.googlesource.com/c/go/+/180841
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/lookup_darwin_amd64.s
src/runtime/sys_darwin_amd64.s