Libraries updates and cleanup

* Updating common/lib
 * Updating lib/csu
 * Updating lib/libc
 * Updating libexec/ld.elf_so
 * Corrected test on __minix in featuretest to actually follow the
   meaning of the comment.
 * Cleaned up _REENTRANT-related defintions.
 * Disabled -D_REENTRANT for libfetch
 * Removing some unneeded __NBSD_LIBC defines and tests

Change-Id: Ic1394baef74d11b9f86b312f5ff4bbc3cbf72ce2
This commit is contained in:
2013-01-14 11:36:26 +01:00
parent f6aac1c3b5
commit f14fb60209
1285 changed files with 44244 additions and 14308 deletions
+22 -2
View File
@@ -1,4 +1,4 @@
.\" $NetBSD: arc4random.3,v 1.7 2005/12/26 19:40:14 perry Exp $
.\" $NetBSD: arc4random.3,v 1.9 2011/02/05 00:24:08 wiz Exp $
.\" $OpenBSD: arc4random.3,v 1.17 2000/12/21 14:07:41 aaron Exp $
.\"
.\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
@@ -31,11 +31,13 @@
.\"
.\" Manual page, using -mandoc macros
.\"
.Dd April 15, 1997
.Dd February 4, 2011
.Dt ARC4RANDOM 3
.Os
.Sh NAME
.Nm arc4random ,
.Nm arc4random_buf ,
.Nm arc4random_uniform ,
.Nm arc4random_stir ,
.Nm arc4random_addrandom
.Nd arc4 random number generator
@@ -46,6 +48,10 @@
.Ft uint32_t
.Fn arc4random "void"
.Ft void
.Fn arc4random_buf "void *buffer" "size_t length"
.Ft uint32_t
.Fn arc4random_uniform "uint32_t upper_bound"
.Ft void
.Fn arc4random_stir "void"
.Ft void
.Fn arc4random_addrandom "u_char *dat" "int datlen"
@@ -77,6 +83,20 @@ and
.Xr drand48 3 .
.Pp
The
.Fn arc4random_buf
function fills the
.Fa buffer
with
.Fa length
bytes of ARC4-derived random data.
.Pp
The
.Fn arc4random_uniform
function returns a uniformly distributed random number less than
.Fa upper_bound
avoiding modulo bias when the upper bound is not a power of two.
.Pp
The
.Fn arc4random_stir
function reads data from
.Pa /dev/urandom