diff options
author | Jared Yanovich <jaredy@cvs.openbsd.org> | 2005-08-14 06:23:17 +0000 |
---|---|---|
committer | Jared Yanovich <jaredy@cvs.openbsd.org> | 2005-08-14 06:23:17 +0000 |
commit | c5055ea5fa9b8693a995d73c112fd0732d5ea67e (patch) | |
tree | 617fd76e71c602591ed99f1a5d5f466446b539cd /lib | |
parent | 50ed8ef78ec8cdc6347d7c2e4befb426f5a49cc6 (diff) |
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 |