diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-04-19 22:19:47 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-04-19 22:19:47 +0000 |
commit | 77f6f841641629a7e14c7a05374a773df85a3794 (patch) | |
tree | d4b0f65971090edcfa2260c3bad754d5003b538f /lib | |
parent | e0532ee1f5ab43361ecc07f76d27f2e5db115d67 (diff) |
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')
-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 |