diff options
author | 2005-08-14 06:23:16 +0000 | |
---|---|---|
committer | 2005-08-14 06:23:16 +0000 | |
commit | c74190a01f2fa7797158d53c06d8f2638c0f231a (patch) | |
tree | 0dd46255f072fcdcbf236f3d0bf0fce343d4b196 /lib | |
parent | regen (diff) | |
download | wireguard-openbsd-c74190a01f2fa7797158d53c06d8f2638c0f231a.tar.xz wireguard-openbsd-c74190a01f2fa7797158d53c06d8f2638c0f231a.zip |
add a standard RETURN VALUES section; ok deraadt, millert
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/getrusage.2 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libc/sys/getrusage.2 b/lib/libc/sys/getrusage.2 index 5ed027d7fa4..84b840c8336 100644 --- a/lib/libc/sys/getrusage.2 +++ b/lib/libc/sys/getrusage.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getrusage.2,v 1.10 2003/06/02 20:18:39 millert Exp $ +.\" $OpenBSD: getrusage.2,v 1.11 2005/08/14 06:23:16 jaredy Exp $ .\" .\" Copyright (c) 1985, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -136,10 +136,14 @@ and account only for real I/O; data supplied by the caching mechanism is charged only to the first process to read or write the data. +.Sh RETURN VALUES +Upon success, a value of zero is returned. +Otherwise, \-1 is returned and +.Va errno +is set to indicate the error. .Sh ERRORS .Fn getrusage -returns \-1 on error. -The possible errors are: +will fail if: .Bl -tag -width Er .It Bq Er EINVAL The |