diff options
author | guenther <> | 2012-06-02 00:14:16 +0000 |
---|---|---|
committer | guenther <> | 2012-06-02 00:14:16 +0000 |
commit | 0e75ebe6fc3d4043e79e7c89766f56e43c180169 (patch) | |
tree | 6ce2615061c4f0a807ba0bf577a1a5f00b84d0d5 /src | |
parent | cb798cd101f47ccce02cb08724d7b433ebbe041d (diff) | |
download | openbsd-0e75ebe6fc3d4043e79e7c89766f56e43c180169.tar.gz openbsd-0e75ebe6fc3d4043e79e7c89766f56e43c180169.tar.bz2 openbsd-0e75ebe6fc3d4043e79e7c89766f56e43c180169.zip |
Update STANDARDS section for a few <stdlib.h> functions
Update SYNOPSIS for setkey() to show it's in <stdlib.h>
ok jmc@, millert@
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libc/crypt/crypt.3 | 11 | ||||
-rw-r--r-- | src/lib/libc/stdlib/getenv.3 | 11 | ||||
-rw-r--r-- | src/lib/libc/stdlib/rand.3 | 9 | ||||
-rw-r--r-- | 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 b58894d9ad..8415f28b9b 100644 --- a/src/lib/libc/crypt/crypt.3 +++ b/src/lib/libc/crypt/crypt.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: crypt.3,v 1.27 2007/10/08 11:55:27 pyr Exp $ | 1 | .\" $OpenBSD: crypt.3,v 1.28 2012/06/02 00:14:16 guenther Exp $ |
2 | .\" | 2 | .\" |
3 | .\" FreeSec: libcrypt | 3 | .\" FreeSec: libcrypt |
4 | .\" | 4 | .\" |
@@ -31,7 +31,7 @@ | |||
31 | .\" | 31 | .\" |
32 | .\" Manual page, using -mandoc macros | 32 | .\" Manual page, using -mandoc macros |
33 | .\" | 33 | .\" |
34 | .Dd $Mdocdate: October 8 2007 $ | 34 | .Dd $Mdocdate: June 2 2012 $ |
35 | .Dt CRYPT 3 | 35 | .Dt CRYPT 3 |
36 | .Os | 36 | .Os |
37 | .Sh NAME | 37 | .Sh NAME |
@@ -45,13 +45,14 @@ | |||
45 | .Nm md5crypt | 45 | .Nm md5crypt |
46 | .Nd DES encryption | 46 | .Nd DES encryption |
47 | .Sh SYNOPSIS | 47 | .Sh SYNOPSIS |
48 | .Fd #include <pwd.h> | 48 | .Fd #include <stdlib.h> |
49 | .Ft int | ||
50 | .Fn setkey "const char *key" | ||
51 | .Pp | ||
49 | .Fd #include <unistd.h> | 52 | .Fd #include <unistd.h> |
50 | .Ft char * | 53 | .Ft char * |
51 | .Fn crypt "const char *key" "const char *setting" | 54 | .Fn crypt "const char *key" "const char *setting" |
52 | .Ft int | 55 | .Ft int |
53 | .Fn setkey "const char *key" | ||
54 | .Ft int | ||
55 | .Fn encrypt "char *block" "int flag" | 56 | .Fn encrypt "char *block" "int flag" |
56 | .Ft int | 57 | .Ft int |
57 | .Fn des_setkey "const char *key" | 58 | .Fn des_setkey "const char *key" |
diff --git a/src/lib/libc/stdlib/getenv.3 b/src/lib/libc/stdlib/getenv.3 index 9da27ec11c..8c2b633f25 100644 --- a/src/lib/libc/stdlib/getenv.3 +++ b/src/lib/libc/stdlib/getenv.3 | |||
@@ -29,9 +29,9 @@ | |||
29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
30 | .\" SUCH DAMAGE. | 30 | .\" SUCH DAMAGE. |
31 | .\" | 31 | .\" |
32 | .\" $OpenBSD: getenv.3,v 1.16 2011/04/27 13:40:15 otto Exp $ | 32 | .\" $OpenBSD: getenv.3,v 1.17 2012/06/02 00:14:16 guenther Exp $ |
33 | .\" | 33 | .\" |
34 | .Dd $Mdocdate: April 27 2011 $ | 34 | .Dd $Mdocdate: June 2 2012 $ |
35 | .Dt GETENV 3 | 35 | .Dt GETENV 3 |
36 | .Os | 36 | .Os |
37 | .Sh NAME | 37 | .Sh NAME |
@@ -161,6 +161,13 @@ The | |||
161 | .Fn getenv | 161 | .Fn getenv |
162 | function conforms to | 162 | function conforms to |
163 | .St -ansiC . | 163 | .St -ansiC . |
164 | The | ||
165 | .Fn putenv , | ||
166 | .Fn setenv , | ||
167 | and | ||
168 | .Fn unsetenv | ||
169 | functions conform to | ||
170 | .St -p1003.1-2008 . | ||
164 | .Sh HISTORY | 171 | .Sh HISTORY |
165 | The function | 172 | The function |
166 | .Fn getenv | 173 | .Fn getenv |
diff --git a/src/lib/libc/stdlib/rand.3 b/src/lib/libc/stdlib/rand.3 index df4feaacdb..50fe67d109 100644 --- a/src/lib/libc/stdlib/rand.3 +++ b/src/lib/libc/stdlib/rand.3 | |||
@@ -29,9 +29,9 @@ | |||
29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
30 | .\" SUCH DAMAGE. | 30 | .\" SUCH DAMAGE. |
31 | .\" | 31 | .\" |
32 | .\" $OpenBSD: rand.3,v 1.10 2007/05/31 19:19:31 jmc Exp $ | 32 | .\" $OpenBSD: rand.3,v 1.11 2012/06/02 00:14:16 guenther Exp $ |
33 | .\" | 33 | .\" |
34 | .Dd $Mdocdate: May 31 2007 $ | 34 | .Dd $Mdocdate: June 2 2012 $ |
35 | .Dt RAND 3 | 35 | .Dt RAND 3 |
36 | .Os | 36 | .Os |
37 | .Sh NAME | 37 | .Sh NAME |
@@ -93,6 +93,5 @@ functions conform to | |||
93 | .Pp | 93 | .Pp |
94 | The | 94 | The |
95 | .Fn rand_r | 95 | .Fn rand_r |
96 | function conforms to ISO/IEC 9945-1 ANSI/IEEE | 96 | function conforms to |
97 | .Pq Dq Tn POSIX | 97 | .St -p1003.1-2008 . |
98 | Std 1003.1c Draft 10. | ||
diff --git a/src/lib/libc/stdlib/rand48.3 b/src/lib/libc/stdlib/rand48.3 index 0e8ca5389b..340e6461bd 100644 --- a/src/lib/libc/stdlib/rand48.3 +++ b/src/lib/libc/stdlib/rand48.3 | |||
@@ -9,9 +9,9 @@ | |||
9 | .\" of any kind. I shall in no event be liable for anything that happens | 9 | .\" of any kind. I shall in no event be liable for anything that happens |
10 | .\" to anyone/anything when using this software. | 10 | .\" to anyone/anything when using this software. |
11 | .\" | 11 | .\" |
12 | .\" $OpenBSD: rand48.3,v 1.11 2007/05/31 19:19:31 jmc Exp $ | 12 | .\" $OpenBSD: rand48.3,v 1.12 2012/06/02 00:14:16 guenther Exp $ |
13 | .\" | 13 | .\" |
14 | .Dd $Mdocdate: May 31 2007 $ | 14 | .Dd $Mdocdate: June 2 2012 $ |
15 | .Dt RAND48 3 | 15 | .Dt RAND48 3 |
16 | .Os | 16 | .Os |
17 | .Sh NAME | 17 | .Sh NAME |
@@ -161,5 +161,19 @@ For a more powerful random number generator, see | |||
161 | .Xr arc4random 3 , | 161 | .Xr arc4random 3 , |
162 | .Xr rand 3 , | 162 | .Xr rand 3 , |
163 | .Xr random 3 | 163 | .Xr random 3 |
164 | .Sh STANDARDS | ||
165 | The | ||
166 | .Fn drand48 , | ||
167 | .Fn erand48 , | ||
168 | .Fn jrand48 , | ||
169 | .Fn lcong48 , | ||
170 | .Fn lrand48 , | ||
171 | .Fn mrand48 , | ||
172 | .Fn nrand48 , | ||
173 | .Fn seed48 , | ||
174 | and | ||
175 | .Fn srand48 | ||
176 | functions conform to | ||
177 | .St -p1003.1-2008 . | ||
164 | .Sh AUTHORS | 178 | .Sh AUTHORS |
165 | Martin Birgmeier | 179 | Martin Birgmeier |