]> Cypherpunks repositories - gostls13.git/commit
syscall package: document that errno is zeroed on success
authorGiles Lean <giles.lean@pobox.com>
Tue, 6 Apr 2010 17:28:55 +0000 (10:28 -0700)
committerRuss Cox <rsc@golang.org>
Tue, 6 Apr 2010 17:28:55 +0000 (10:28 -0700)
commitac3cf56d336d37357da320d1885a197bc4cfcacd
tree826074615f668823403853925de219512a35aeb7
parent0688a97556ec50dc15b708e6e7c8ff0b9c3fc35c
syscall package: document that errno is zeroed on success

This is a documentation enhancement only, without any code
change.

The rationale for documenting this precisely is that Unix
programmers who "know" that errno's value is undefined after
a successful system call may be surprised otherwise and
search to be sure that a zero errno may be relied upon after
successful calls.

R=r, rsc1, rsc
CC=golang-dev
https://golang.org/cl/812044
src/pkg/syscall/syscall.go