summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2012-06-02 00:14:17 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2012-06-02 00:14:17 +0000
commit19e779357f7cd0f326d00b06db357a45e80d8698 (patch)
treef214edc198de5d8e2f70285ff19281cd580d5a5e
parent9b77a6ec7e09d4e464e549fa3b82c2349c2f69b6 (diff)
Update STANDARDS section for a few <stdlib.h> functions
Update SYNOPSIS for setkey() to show it's in <stdlib.h> ok jmc@, millert@
-rw-r--r--lib/libc/crypt/crypt.311
-rw-r--r--lib/libc/stdlib/getenv.311
-rw-r--r--lib/libc/stdlib/rand.39
-rw-r--r--lib/libc/stdlib/rand48.318
4 files changed, 35 insertions, 14 deletions
diff --git a/lib/libc/crypt/crypt.3 b/lib/libc/crypt/crypt.3
index b58894d9adb..8415f28b9bc 100644
--- a/lib/libc/crypt/crypt.3
+++ b/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 <pwd.h>
+.Fd #include <stdlib.h>
+.Ft int
+.Fn setkey "const char *key"
+.Pp
.Fd #include <unistd.h>
.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/lib/libc/stdlib/getenv.3 b/lib/libc/stdlib/getenv.3
index 9da27ec11cf..8c2b633f257 100644
--- a/lib/libc/stdlib/getenv.3
+++ b/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/lib/libc/stdlib/rand.3 b/lib/libc/stdlib/rand.3
index df4feaacdb8..50fe67d1095 100644
--- a/lib/libc/stdlib/rand.3
+++ b/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/lib/libc/stdlib/rand48.3 b/lib/libc/stdlib/rand48.3
index 0e8ca5389b6..340e6461bd9 100644
--- a/lib/libc/stdlib/rand48.3
+++ b/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