From 1dcb8b96d707403c5d394f4d545f77ba23491811 Mon Sep 17 00:00:00 2001 From: guenther <> Date: Sat, 2 Jun 2012 00:14:16 +0000 Subject: [PATCH] Update STANDARDS section for a few functions Update SYNOPSIS for setkey() to show it's in ok jmc@, millert@ --- src/lib/libc/crypt/crypt.3 | 11 ++++++----- src/lib/libc/stdlib/getenv.3 | 11 +++++++++-- src/lib/libc/stdlib/rand.3 | 9 ++++----- src/lib/libc/stdlib/rand48.3 | 18 ++++++++++++++++-- 4 files changed, 35 insertions(+), 14 deletions(-) diff --git a/src/lib/libc/crypt/crypt.3 b/src/lib/libc/crypt/crypt.3 index b58894d9..8415f28b 100644 --- a/src/lib/libc/crypt/crypt.3 +++ b/src/lib/libc/crypt/crypt.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: crypt.3,v 1.27 2007/10/08 11:55:27 pyr Exp $ +.\" $OpenBSD: crypt.3,v 1.28 2012/06/02 00:14:16 guenther Exp $ .\" .\" FreeSec: libcrypt .\" @@ -31,7 +31,7 @@ .\" .\" Manual page, using -mandoc macros .\" -.Dd $Mdocdate: October 8 2007 $ +.Dd $Mdocdate: June 2 2012 $ .Dt CRYPT 3 .Os .Sh NAME @@ -45,13 +45,14 @@ .Nm md5crypt .Nd DES encryption .Sh SYNOPSIS -.Fd #include +.Fd #include +.Ft int +.Fn setkey "const char *key" +.Pp .Fd #include .Ft char * .Fn crypt "const char *key" "const char *setting" .Ft int -.Fn setkey "const char *key" -.Ft int .Fn encrypt "char *block" "int flag" .Ft int .Fn des_setkey "const char *key" diff --git a/src/lib/libc/stdlib/getenv.3 b/src/lib/libc/stdlib/getenv.3 index 9da27ec1..8c2b633f 100644 --- a/src/lib/libc/stdlib/getenv.3 +++ b/src/lib/libc/stdlib/getenv.3 @@ -29,9 +29,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: getenv.3,v 1.16 2011/04/27 13:40:15 otto Exp $ +.\" $OpenBSD: getenv.3,v 1.17 2012/06/02 00:14:16 guenther Exp $ .\" -.Dd $Mdocdate: April 27 2011 $ +.Dd $Mdocdate: June 2 2012 $ .Dt GETENV 3 .Os .Sh NAME @@ -161,6 +161,13 @@ The .Fn getenv function conforms to .St -ansiC . +The +.Fn putenv , +.Fn setenv , +and +.Fn unsetenv +functions conform to +.St -p1003.1-2008 . .Sh HISTORY The function .Fn getenv diff --git a/src/lib/libc/stdlib/rand.3 b/src/lib/libc/stdlib/rand.3 index df4feaac..50fe67d1 100644 --- a/src/lib/libc/stdlib/rand.3 +++ b/src/lib/libc/stdlib/rand.3 @@ -29,9 +29,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: rand.3,v 1.10 2007/05/31 19:19:31 jmc Exp $ +.\" $OpenBSD: rand.3,v 1.11 2012/06/02 00:14:16 guenther Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 2 2012 $ .Dt RAND 3 .Os .Sh NAME @@ -93,6 +93,5 @@ functions conform to .Pp The .Fn rand_r -function conforms to ISO/IEC 9945-1 ANSI/IEEE -.Pq Dq Tn POSIX -Std 1003.1c Draft 10. +function conforms to +.St -p1003.1-2008 . diff --git a/src/lib/libc/stdlib/rand48.3 b/src/lib/libc/stdlib/rand48.3 index 0e8ca538..340e6461 100644 --- a/src/lib/libc/stdlib/rand48.3 +++ b/src/lib/libc/stdlib/rand48.3 @@ -9,9 +9,9 @@ .\" of any kind. I shall in no event be liable for anything that happens .\" to anyone/anything when using this software. .\" -.\" $OpenBSD: rand48.3,v 1.11 2007/05/31 19:19:31 jmc Exp $ +.\" $OpenBSD: rand48.3,v 1.12 2012/06/02 00:14:16 guenther Exp $ .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: June 2 2012 $ .Dt RAND48 3 .Os .Sh NAME @@ -161,5 +161,19 @@ For a more powerful random number generator, see .Xr arc4random 3 , .Xr rand 3 , .Xr random 3 +.Sh STANDARDS +The +.Fn drand48 , +.Fn erand48 , +.Fn jrand48 , +.Fn lcong48 , +.Fn lrand48 , +.Fn mrand48 , +.Fn nrand48 , +.Fn seed48 , +and +.Fn srand48 +functions conform to +.St -p1003.1-2008 . .Sh AUTHORS Martin Birgmeier