Browse Source

Update STANDARDS section for a few <stdlib.h> functions

Update SYNOPSIS for setkey() to show it's in <stdlib.h>
ok jmc@, millert@
OPENBSD_5_2
guenther 12 years ago
parent
commit
1dcb8b96d7
4 changed files with 35 additions and 14 deletions
  1. +6
    -5
      src/lib/libc/crypt/crypt.3
  2. +9
    -2
      src/lib/libc/stdlib/getenv.3
  3. +4
    -5
      src/lib/libc/stdlib/rand.3
  4. +16
    -2
      src/lib/libc/stdlib/rand48.3

+ 6
- 5
src/lib/libc/crypt/crypt.3 View File

@ -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"


+ 9
- 2
src/lib/libc/stdlib/getenv.3 View File

@ -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


+ 4
- 5
src/lib/libc/stdlib/rand.3 View File

@ -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 .

+ 16
- 2
src/lib/libc/stdlib/rand48.3 View File

@ -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

Loading…
Cancel
Save