diff --git a/src/lib/libc/stdlib/a64l.3 b/src/lib/libc/stdlib/a64l.3 index 78763430..6b9fd231 100644 --- a/src/lib/libc/stdlib/a64l.3 +++ b/src/lib/libc/stdlib/a64l.3 @@ -23,7 +23,7 @@ .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF .\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.\" $OpenBSD: a64l.3,v 1.5 2000/04/20 13:50:01 aaron Exp $ +.\" $OpenBSD: a64l.3,v 1.6 2003/05/10 06:48:30 jmc Exp $ .\" .Dd August 17, 1997 .Dt A64L 3 @@ -95,7 +95,7 @@ returns a 32-bit representation of .Fa s . If .Fa s -is a null pointer or if it contains digits other than those described above. +is a null pointer or if it contains digits other than those described above, .Fn a64l returns \-1 and sets the global variable .Va errno diff --git a/src/lib/libc/stdlib/ecvt.3 b/src/lib/libc/stdlib/ecvt.3 index 1ff9a4f6..64559ec0 100644 --- a/src/lib/libc/stdlib/ecvt.3 +++ b/src/lib/libc/stdlib/ecvt.3 @@ -117,7 +117,7 @@ significant digits similar to the %f .Xr printf 3 format specifier where possible. If -.Fa ndigit +.Fa ndigit does allow sufficient precision, the result is stored in exponential notation similar to the %e .Xr printf 3 diff --git a/src/lib/libc/stdlib/exit.3 b/src/lib/libc/stdlib/exit.3 index 68752bb0..fb499e09 100644 --- a/src/lib/libc/stdlib/exit.3 +++ b/src/lib/libc/stdlib/exit.3 @@ -33,7 +33,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: exit.3,v 1.7 2003/03/06 19:54:52 jmc Exp $ +.\" $OpenBSD: exit.3,v 1.8 2003/05/10 06:48:30 jmc Exp $ .\" .Dd June 29, 1991 .Dt EXIT 3 @@ -66,6 +66,7 @@ Unlink all files created with the .Xr tmpfile 3 function. .El +.Pp Following this, .Fn exit calls diff --git a/src/lib/libc/stdlib/getopt.3 b/src/lib/libc/stdlib/getopt.3 index e16a11df..d25b4970 100644 --- a/src/lib/libc/stdlib/getopt.3 +++ b/src/lib/libc/stdlib/getopt.3 @@ -29,7 +29,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: getopt.3,v 1.21 2003/04/10 17:05:08 jsyn Exp $ +.\" $OpenBSD: getopt.3,v 1.22 2003/05/10 06:48:30 jmc Exp $ .\" .Dd December 8, 2002 .Dt GETOPT 3 @@ -244,7 +244,7 @@ as an option flag. This practice is wrong, and should not be used in any current development. It is provided for backward compatibility .Em only . -Care should be taken to not to use +Care should be taken not to use .Ql - as the first character in .Fa optstring diff --git a/src/lib/libc/stdlib/getopt_long.3 b/src/lib/libc/stdlib/getopt_long.3 index 4e5923cb..2589bd7b 100644 --- a/src/lib/libc/stdlib/getopt_long.3 +++ b/src/lib/libc/stdlib/getopt_long.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getopt_long.3,v 1.5 2003/02/24 03:09:07 deraadt Exp $ +.\" $OpenBSD: getopt_long.3,v 1.6 2003/05/10 06:48:30 jmc Exp $ .\" $NetBSD: getopt_long.3,v 1.11 2002/10/02 10:54:19 wiz Exp $ .\" .\" Copyright (c) 1988, 1991, 1993 @@ -44,10 +44,10 @@ .Sh SYNOPSIS .Fd #include .Vt extern char *optarg; -.Vt extern int optind; -.Vt extern int optopt; -.Vt extern int opterr; -.Vt extern int optreset; +.Vt extern int optind; +.Vt extern int optopt; +.Vt extern int opterr; +.Vt extern int optreset; .Ft int .Fn getopt_long "int argc" "char * const *argv" "const char *optstring" "const struct option *longopts" "int *index" .Ft int @@ -241,7 +241,7 @@ arguments to option '\e1'. honors POSIXLY_CORRECT and stops at the first non-option. .El .It Li o -handling of - within the option string (not the first character). +handling of - within the option string (not the first character): .Bl -tag -width "OpenBSD" .It Li GNU treats a @@ -283,8 +283,8 @@ handling of --a in getopt: .It Li GNU parses this as option '-', option 'a'. .It Li OpenBSD -parses this as '--', and returns -1 (ignoring the a). (Because -the original getopt does.) +parses this as '--', and returns \-1 (ignoring the a). +(Because the original getopt does.) .El .It Li o setting of optopt for long options with flag != diff --git a/src/lib/libc/stdlib/getsubopt.3 b/src/lib/libc/stdlib/getsubopt.3 index 8a17da4e..e2d86410 100644 --- a/src/lib/libc/stdlib/getsubopt.3 +++ b/src/lib/libc/stdlib/getsubopt.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getsubopt.3,v 1.5 2000/12/15 14:31:17 aaron Exp $ +.\" $OpenBSD: getsubopt.3,v 1.6 2003/05/10 06:48:30 jmc Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -66,7 +66,7 @@ The function returns the zero-based offset of the pointer in the .Fa tokens array referencing a string which matches the first token -in the string, or, \-1 if the string contains no tokens or +in the string, or \-1 if the string contains no tokens or .Fa tokens does not contain a matching string. .Pp diff --git a/src/lib/libc/stdlib/qsort.3 b/src/lib/libc/stdlib/qsort.3 index 6c4eba46..a0561cad 100644 --- a/src/lib/libc/stdlib/qsort.3 +++ b/src/lib/libc/stdlib/qsort.3 @@ -33,7 +33,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: qsort.3,v 1.9 2002/02/23 19:51:46 miod Exp $ +.\" $OpenBSD: qsort.3,v 1.10 2003/05/10 06:48:30 jmc Exp $ .\" .Dd June 4, 1993 .Dt QSORT 3 @@ -185,7 +185,7 @@ were unable to allocate memory. Previous versions of .Fn qsort did not permit the comparison routine itself to call -.Fn qsort 3 . +.Fn qsort . This is no longer true. .Sh SEE ALSO .Xr sort 1 , diff --git a/src/lib/libc/stdlib/rand48.3 b/src/lib/libc/stdlib/rand48.3 index 31a4fdf4..6b0831ea 100644 --- a/src/lib/libc/stdlib/rand48.3 +++ b/src/lib/libc/stdlib/rand48.3 @@ -1,4 +1,4 @@ -\" Copyright (c) 1993 Martin Birgmeier +.\" Copyright (c) 1993 Martin Birgmeier .\" All rights reserved. .\" .\" You may redistribute unmodified or modified versions of this source @@ -9,7 +9,7 @@ .\" 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.8 2001/08/06 10:42:26 mpech Exp $ +.\" $OpenBSD: rand48.3,v 1.9 2003/05/10 06:48:30 jmc Exp $ .\" .Dd October 8, 1993 .Dt RAND48 3 @@ -24,7 +24,7 @@ .Nm srand48 , .Nm seed48 , .Nm lcong48 -.Nd pseudo random number generators and initialization routines +.Nd pseudo-random number generators and initialization routines .Sh SYNOPSIS .Fd #include .Ft double @@ -67,7 +67,7 @@ and return values of type double. The full 48 bits of r(n+1) are loaded into the mantissa of the returned value, with the exponent set -such that the values produced lie in the interval [0.0, 1.0). +such that the values produced lie in the interval [0.0, 1.0]. .Pp .Fn lrand48 and @@ -156,7 +156,7 @@ always also set the multiplicand and addend for any of the six generator calls. .Pp For a more powerful random number generator, see -.Xr random 3 +.Xr random 3 . .Sh AUTHORS Martin Birgmeier .Sh SEE ALSO diff --git a/src/lib/libc/stdlib/random.3 b/src/lib/libc/stdlib/random.3 index 3d454565..b98917a4 100644 --- a/src/lib/libc/stdlib/random.3 +++ b/src/lib/libc/stdlib/random.3 @@ -29,7 +29,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: random.3,v 1.14 2001/09/06 15:04:34 mpech Exp $ +.\" $OpenBSD: random.3,v 1.15 2003/05/10 06:48:30 jmc Exp $ .\" .Dd April 19, 1991 .Dt RANDOM 3 @@ -60,7 +60,7 @@ function uses a non-linear additive feedback random number generator employing a default table of size 31 long integers to return successive pseudo-random numbers in the range from 0 to (2**31)\-1. The period of this random number generator is very large, approximately -16*((2**31)\-1. +16*((2**31)\-1). .Pp The .Fn random @@ -68,7 +68,7 @@ and .Fn srandom functions have (almost) the same calling sequence and initialization properties as -.Xr rand 3 Ns / Xr srand 3 . +.Xr rand 3 Ns / Ns Xr srand 3 . The difference is that .Xr rand produces a much less random sequence \(em in fact, the low dozen bits @@ -93,7 +93,7 @@ as the seed. .Pp The .Fn srandomdev -routine initialize a state array using the +routine initializes a state array using the .Xr arandom 4 random number device which returns good random numbers, suitable for cryptographic use. diff --git a/src/lib/libc/stdlib/strtol.3 b/src/lib/libc/stdlib/strtol.3 index 7ac9f52b..b37f2cd7 100644 --- a/src/lib/libc/stdlib/strtol.3 +++ b/src/lib/libc/stdlib/strtol.3 @@ -33,7 +33,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: strtol.3,v 1.11 2002/11/21 20:54:09 millert Exp $ +.\" $OpenBSD: strtol.3,v 1.12 2003/05/10 06:48:30 jmc Exp $ .\" .Dd June 25, 1992 .Dt STRTOL 3 @@ -42,7 +42,7 @@ .Nm strtol , .Nm strtoll , .Nm strtoq -.Nd convert string value to a long or long long integer +.Nd "convert string value to a long or long long integer" .Sh SYNOPSIS .Fd #include .Fd #include diff --git a/src/lib/libc/stdlib/strtoul.3 b/src/lib/libc/stdlib/strtoul.3 index 0e804ec3..39de7e06 100644 --- a/src/lib/libc/stdlib/strtoul.3 +++ b/src/lib/libc/stdlib/strtoul.3 @@ -33,7 +33,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: strtoul.3,v 1.13 2003/04/21 21:49:40 millert Exp $ +.\" $OpenBSD: strtoul.3,v 1.14 2003/05/10 06:48:30 jmc Exp $ .\" .Dd June 25, 1992 .Dt STRTOUL 3 @@ -42,7 +42,7 @@ .Nm strtoul , .Nm strtoull , .Nm strtouq -.Nd convert a string to an unsigned long or unsigned long long integer +.Nd "convert a string to an unsigned long or unsigned long long integer" .Sh SYNOPSIS .Fd #include .Fd #include