diff options
author | 2011-04-19 22:19:46 +0000 | |
---|---|---|
committer | 2011-04-19 22:19:46 +0000 | |
commit | 5fa06f55cf4e375b33daa8d93dcb5bcd996fa7e7 (patch) | |
tree | 54138017e3f8c57213902c65ec17e0d5f137fed4 /lib/libc | |
parent | add some more intel cpuid models (diff) | |
download | wireguard-openbsd-5fa06f55cf4e375b33daa8d93dcb5bcd996fa7e7.tar.xz wireguard-openbsd-5fa06f55cf4e375b33daa8d93dcb5bcd996fa7e7.zip |
Do not over-specify the return value.
Instead, just document what POSIX requires.
Reminded of the problem by joachimschipper dot nl,
Feedback from matthew@, krw@, deraadt@, and ok deraadt@.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/uname.3 | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libc/gen/uname.3 b/lib/libc/gen/uname.3 index d42ad097201..a7d6689221a 100644 --- a/lib/libc/gen/uname.3 +++ b/lib/libc/gen/uname.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: uname.3,v 1.12 2007/05/31 19:19:29 jmc Exp $ +.\" $OpenBSD: uname.3,v 1.13 2011/04/19 22:19:46 schwarze Exp $ .\" .\" Copyright (c) 1994 .\" The Regents of the University of California. All rights reserved. @@ -27,7 +27,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: April 19 2011 $ .Dt UNAME 3 .Os .Sh NAME @@ -63,11 +63,12 @@ Version level of the operating system. Machine hardware platform. .El .Sh RETURN VALUES -If +The .Fn uname -is successful, 0 is returned; otherwise, \-1 is returned and +function returns a non-negative value if successful; +otherwise the value -1 is returned and the global variable .Va errno -is set appropriately. +is set to indicate the error. .Sh ERRORS The .Fn uname |