diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-05-02 09:21:00 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-05-02 09:21:00 +0000 |
commit | fdd1c9f4af676f11e841e248e23cb05fdc1e9061 (patch) | |
tree | f478c008ec5dba76aef1845dcf08fe62dac241f7 /lib/libc | |
parent | 092020ffbc7a8c33178002131c29729124c5e39b (diff) |
Document the lack of error return value in arc4random.
Sync the documentation in getpid with arc4random's format.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/crypt/arc4random.3 | 5 | ||||
-rw-r--r-- | lib/libc/sys/getpid.2 | 12 |
2 files changed, 8 insertions, 9 deletions
diff --git a/lib/libc/crypt/arc4random.3 b/lib/libc/crypt/arc4random.3 index fd127439bcf..7416e440148 100644 --- a/lib/libc/crypt/arc4random.3 +++ b/lib/libc/crypt/arc4random.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: arc4random.3,v 1.19 2005/07/17 08:50:55 jaredy Exp $ +.\" $OpenBSD: arc4random.3,v 1.20 2007/05/02 09:20:59 pyr Exp $ .\" .\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> .\" All rights reserved. @@ -87,6 +87,9 @@ before using since .Fn arc4random automatically initializes itself. +Sh RETURN VALUES +These functions are always successful, and no return value is +reserved to indicate an error. .Sh SEE ALSO .Xr rand 3 , .Xr rand48 3 , diff --git a/lib/libc/sys/getpid.2 b/lib/libc/sys/getpid.2 index 121e32d4bbf..9820e91f716 100644 --- a/lib/libc/sys/getpid.2 +++ b/lib/libc/sys/getpid.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getpid.2,v 1.9 2003/06/02 20:18:39 millert Exp $ +.\" $OpenBSD: getpid.2,v 1.10 2007/05/02 09:20:59 pyr Exp $ .\" $NetBSD: getpid.2,v 1.5 1995/02/27 12:33:12 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -55,13 +55,9 @@ instead. .Pp .Fn getppid returns the process ID of the parent of the calling process. -.Sh ERRORS -The -.Fn getpid -and -.Fn getppid -functions are always successful, and no return value is reserved to -indicate an error. +.Sh RETURN VALUES +These functions are always successful, and no return value is +reserved to indicate an error. .Sh SEE ALSO .Xr gethostid 3 .Sh STANDARDS |