summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoraaron <>1999-07-04 18:59:43 +0000
committeraaron <>1999-07-04 18:59:43 +0000
commit5f78a44df1a8e524a82445f2fedb382128869a2a (patch)
treea4b9e57e7d2417e09c7bc3ec13a3511a5ebe8b47 /src
parentfd3c1edab9aec83ff25669f67d7f685ceb0ce2d9 (diff)
downloadopenbsd-5f78a44df1a8e524a82445f2fedb382128869a2a.tar.gz
openbsd-5f78a44df1a8e524a82445f2fedb382128869a2a.tar.bz2
openbsd-5f78a44df1a8e524a82445f2fedb382128869a2a.zip
trash some old leftover macros and replace them with -mdoc macros
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/crypt/arc4random.37
-rw-r--r--src/lib/libc/net/getservent.33
-rw-r--r--src/lib/libc/stdlib/random.313
-rw-r--r--src/lib/libc/stdlib/tsearch.34
4 files changed, 9 insertions, 18 deletions
diff --git a/src/lib/libc/crypt/arc4random.3 b/src/lib/libc/crypt/arc4random.3
index bcf98bd964..988de1d0f6 100644
--- a/src/lib/libc/crypt/arc4random.3
+++ b/src/lib/libc/crypt/arc4random.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: arc4random.3,v 1.9 1999/06/30 01:40:18 deraadt Exp $ 1.\" $OpenBSD: arc4random.3,v 1.10 1999/07/04 18:59:42 aaron Exp $
2.\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> 2.\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
3.\" All rights reserved. 3.\" All rights reserved.
4.\" 4.\"
@@ -50,10 +50,7 @@ The
50.Fn arc4random 50.Fn arc4random
51function uses the key stream generator employed by the 51function uses the key stream generator employed by the
52arc4 cipher, which uses 8*8 8 bit S-Boxes. The S-Boxes 52arc4 cipher, which uses 8*8 8 bit S-Boxes. The S-Boxes
53can be in about 53can be in about (2**1700) states.
54.if t 2\u\s71700\s10\d
55.if n (2**1700)
56states.
57.Pp 54.Pp
58The 55The
59.Fn arc4random_stir 56.Fn arc4random_stir
diff --git a/src/lib/libc/net/getservent.3 b/src/lib/libc/net/getservent.3
index 6badd85337..477d34249d 100644
--- a/src/lib/libc/net/getservent.3
+++ b/src/lib/libc/net/getservent.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getservent.3,v 1.6 1999/05/25 01:50:58 aaron Exp $ 1.\" $OpenBSD: getservent.3,v 1.7 1999/07/04 18:59:43 aaron Exp $
2.\" 2.\"
3.\" Copyright (c) 1983, 1991, 1993 3.\" Copyright (c) 1983, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -124,7 +124,6 @@ is encountered.
124If a protocol name is also supplied (non- 124If a protocol name is also supplied (non-
125.Dv NULL ) , 125.Dv NULL ) ,
126searches must also match the protocol. 126searches must also match the protocol.
127.ne 1i
128.Sh FILES 127.Sh FILES
129.Bl -tag -width /etc/services -compact 128.Bl -tag -width /etc/services -compact
130.It Pa /etc/services 129.It Pa /etc/services
diff --git a/src/lib/libc/stdlib/random.3 b/src/lib/libc/stdlib/random.3
index e1ab9e44da..7b8a566115 100644
--- a/src/lib/libc/stdlib/random.3
+++ b/src/lib/libc/stdlib/random.3
@@ -29,7 +29,7 @@
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: random.3,v 1.8 1999/06/29 18:36:23 aaron Exp $ 32.\" $OpenBSD: random.3,v 1.9 1999/07/04 18:59:43 aaron Exp $
33.\" 33.\"
34.Dd April 19, 1991 34.Dd April 19, 1991
35.Dt RANDOM 3 35.Dt RANDOM 3
@@ -56,9 +56,7 @@ The
56function 56function
57uses a non-linear additive feedback random number generator employing a 57uses a non-linear additive feedback random number generator employing a
58default table of size 31 long integers to return successive pseudo-random 58default table of size 31 long integers to return successive pseudo-random
59numbers in the range from 0 to 59numbers in the range from 0 to (2**31)\-1.
60.if t 2\u\s731\s10\d\(mi1.
61.if n (2**31)\(mi1.
62The maximum value returned by 60The maximum value returned by
63.Fn random 61.Fn random
64is 62is
@@ -66,8 +64,7 @@ is
66(as defined by the header file 64(as defined by the header file
67.Aq Pa limits.h ) . 65.Aq Pa limits.h ) .
68The period of this random number generator is very large, approximately 66The period of this random number generator is very large, approximately
69.if t 16\(mu(2\u\s731\s10\d\(mi1). 6716*((2**31)\-1.
70.if n 16*((2**31)\(mi1).
71.Pp 68.Pp
72The 69The
73.Fn random Ns / Fn srandom 70.Fn random Ns / Fn srandom
@@ -148,9 +145,7 @@ is that the size of the state array does not have to be remembered after
148it is initialized. 145it is initialized.
149.Pp 146.Pp
150With 256 bytes of state information, the period of the random number 147With 256 bytes of state information, the period of the random number
151generator is greater than 148generator is greater than 2**69
152.if t 2\u\s769\s10\d,
153.if n 2**69
154which should be sufficient for most purposes. 149which should be sufficient for most purposes.
155.Sh AUTHOR 150.Sh AUTHOR
156Earl T. Cohen 151Earl T. Cohen
diff --git a/src/lib/libc/stdlib/tsearch.3 b/src/lib/libc/stdlib/tsearch.3
index 8456457e27..79e220e2cb 100644
--- a/src/lib/libc/stdlib/tsearch.3
+++ b/src/lib/libc/stdlib/tsearch.3
@@ -23,7 +23,7 @@
23.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 23.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
24.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25.\" 25.\"
26.\" $OpenBSD: tsearch.3,v 1.5 1999/06/29 18:36:24 aaron Exp $ 26.\" $OpenBSD: tsearch.3,v 1.6 1999/07/04 18:59:43 aaron Exp $
27.\" 27.\"
28.Dd June 15, 1997 28.Dd June 15, 1997
29.Dt TSEARCH 3 29.Dt TSEARCH 3
@@ -84,7 +84,7 @@ will be adjusted.
84.Pp 84.Pp
85.Fn twalk 85.Fn twalk
86walks the binary search tree rooted in 86walks the binary search tree rooted in
87.fa root 87.Fa root
88and calls the function 88and calls the function
89.Fa action 89.Fa action
90on each node. 90on each node.