Browse Source

typos;

OPENBSD_3_4
jmc 21 years ago
parent
commit
a7d1a88bc4
11 changed files with 32 additions and 31 deletions
  1. +2
    -2
      src/lib/libc/stdlib/a64l.3
  2. +1
    -1
      src/lib/libc/stdlib/ecvt.3
  3. +2
    -1
      src/lib/libc/stdlib/exit.3
  4. +2
    -2
      src/lib/libc/stdlib/getopt.3
  5. +8
    -8
      src/lib/libc/stdlib/getopt_long.3
  6. +2
    -2
      src/lib/libc/stdlib/getsubopt.3
  7. +2
    -2
      src/lib/libc/stdlib/qsort.3
  8. +5
    -5
      src/lib/libc/stdlib/rand48.3
  9. +4
    -4
      src/lib/libc/stdlib/random.3
  10. +2
    -2
      src/lib/libc/stdlib/strtol.3
  11. +2
    -2
      src/lib/libc/stdlib/strtoul.3

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

@ -23,7 +23,7 @@
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" 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 .Dd August 17, 1997
.Dt A64L 3 .Dt A64L 3
@ -95,7 +95,7 @@ returns a 32-bit representation of
.Fa s . .Fa s .
If If
.Fa s .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 .Fn a64l
returns \-1 and sets the global variable returns \-1 and sets the global variable
.Va errno .Va errno


+ 1
- 1
src/lib/libc/stdlib/ecvt.3 View File

@ -117,7 +117,7 @@ significant digits similar to the %f
.Xr printf 3 .Xr printf 3
format specifier where possible. format specifier where possible.
If If
.Fa ndigit
.Fa ndigit
does allow sufficient precision, the result is stored in does allow sufficient precision, the result is stored in
exponential notation similar to the %e exponential notation similar to the %e
.Xr printf 3 .Xr printf 3


+ 2
- 1
src/lib/libc/stdlib/exit.3 View File

@ -33,7 +33,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" 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 .Dd June 29, 1991
.Dt EXIT 3 .Dt EXIT 3
@ -66,6 +66,7 @@ Unlink all files created with the
.Xr tmpfile 3 .Xr tmpfile 3
function. function.
.El .El
.Pp
Following this, Following this,
.Fn exit .Fn exit
calls calls


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

@ -29,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" 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 .Dd December 8, 2002
.Dt GETOPT 3 .Dt GETOPT 3
@ -244,7 +244,7 @@ as an option flag.
This practice is wrong, and should not be used in any current development. This practice is wrong, and should not be used in any current development.
It is provided for backward compatibility It is provided for backward compatibility
.Em only . .Em only .
Care should be taken to not to use
Care should be taken not to use
.Ql - .Ql -
as the first character in as the first character in
.Fa optstring .Fa optstring


+ 8
- 8
src/lib/libc/stdlib/getopt_long.3 View File

@ -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 $ .\" $NetBSD: getopt_long.3,v 1.11 2002/10/02 10:54:19 wiz Exp $
.\" .\"
.\" Copyright (c) 1988, 1991, 1993 .\" Copyright (c) 1988, 1991, 1993
@ -44,10 +44,10 @@
.Sh SYNOPSIS .Sh SYNOPSIS
.Fd #include <getopt.h> .Fd #include <getopt.h>
.Vt extern char *optarg; .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 .Ft int
.Fn getopt_long "int argc" "char * const *argv" "const char *optstring" "const struct option *longopts" "int *index" .Fn getopt_long "int argc" "char * const *argv" "const char *optstring" "const struct option *longopts" "int *index"
.Ft int .Ft int
@ -241,7 +241,7 @@ arguments to option '\e1'.
honors POSIXLY_CORRECT and stops at the first non-option. honors POSIXLY_CORRECT and stops at the first non-option.
.El .El
.It Li o .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" .Bl -tag -width "OpenBSD"
.It Li GNU .It Li GNU
treats a treats a
@ -283,8 +283,8 @@ handling of --a in getopt:
.It Li GNU .It Li GNU
parses this as option '-', option 'a'. parses this as option '-', option 'a'.
.It Li OpenBSD .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 .El
.It Li o .It Li o
setting of optopt for long options with flag != setting of optopt for long options with flag !=


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

@ -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 .\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved. .\" 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 function returns the zero-based offset of the pointer in the
.Fa tokens .Fa tokens
array referencing a string which matches the first token 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 .Fa tokens
does not contain a matching string. does not contain a matching string.
.Pp .Pp


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

@ -33,7 +33,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" 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 .Dd June 4, 1993
.Dt QSORT 3 .Dt QSORT 3
@ -185,7 +185,7 @@ were unable to allocate memory.
Previous versions of Previous versions of
.Fn qsort .Fn qsort
did not permit the comparison routine itself to call did not permit the comparison routine itself to call
.Fn qsort 3 .
.Fn qsort .
This is no longer true. This is no longer true.
.Sh SEE ALSO .Sh SEE ALSO
.Xr sort 1 , .Xr sort 1 ,


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

@ -1,4 +1,4 @@
\" Copyright (c) 1993 Martin Birgmeier
.\" Copyright (c) 1993 Martin Birgmeier
.\" All rights reserved. .\" All rights reserved.
.\" .\"
.\" You may redistribute unmodified or modified versions of this source .\" 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 .\" of any kind. I shall in no event be liable for anything that happens
.\" to anyone/anything when using this software. .\" 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 .Dd October 8, 1993
.Dt RAND48 3 .Dt RAND48 3
@ -24,7 +24,7 @@
.Nm srand48 , .Nm srand48 ,
.Nm seed48 , .Nm seed48 ,
.Nm lcong48 .Nm lcong48
.Nd pseudo random number generators and initialization routines
.Nd pseudo-random number generators and initialization routines
.Sh SYNOPSIS .Sh SYNOPSIS
.Fd #include <stdlib.h> .Fd #include <stdlib.h>
.Ft double .Ft double
@ -67,7 +67,7 @@ and
return values of type double. return values of type double.
The full 48 bits of r(n+1) are The full 48 bits of r(n+1) are
loaded into the mantissa of the returned value, with the exponent set 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 .Pp
.Fn lrand48 .Fn lrand48
and and
@ -156,7 +156,7 @@ always also set the multiplicand and addend for any of the six
generator calls. generator calls.
.Pp .Pp
For a more powerful random number generator, see For a more powerful random number generator, see
.Xr random 3
.Xr random 3 .
.Sh AUTHORS .Sh AUTHORS
Martin Birgmeier Martin Birgmeier
.Sh SEE ALSO .Sh SEE ALSO


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

@ -29,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" 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 .Dd April 19, 1991
.Dt RANDOM 3 .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 a default table of size 31 long integers to return successive pseudo-random
numbers in the range from 0 to (2**31)\-1. numbers in the range from 0 to (2**31)\-1.
The period of this random number generator is very large, approximately The period of this random number generator is very large, approximately
16*((2**31)\-1.
16*((2**31)\-1).
.Pp .Pp
The The
.Fn random .Fn random
@ -68,7 +68,7 @@ and
.Fn srandom .Fn srandom
functions have (almost) the same calling sequence and initialization functions have (almost) the same calling sequence and initialization
properties as properties as
.Xr rand 3 Ns / Xr srand 3 .
.Xr rand 3 Ns / Ns Xr srand 3 .
The difference is that The difference is that
.Xr rand .Xr rand
produces a much less random sequence \(em in fact, the low dozen bits produces a much less random sequence \(em in fact, the low dozen bits
@ -93,7 +93,7 @@ as the seed.
.Pp .Pp
The The
.Fn srandomdev .Fn srandomdev
routine initialize a state array using the
routine initializes a state array using the
.Xr arandom 4 .Xr arandom 4
random number device which returns good random numbers, random number device which returns good random numbers,
suitable for cryptographic use. suitable for cryptographic use.


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

@ -33,7 +33,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" 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 .Dd June 25, 1992
.Dt STRTOL 3 .Dt STRTOL 3
@ -42,7 +42,7 @@
.Nm strtol , .Nm strtol ,
.Nm strtoll , .Nm strtoll ,
.Nm strtoq .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 .Sh SYNOPSIS
.Fd #include <stdlib.h> .Fd #include <stdlib.h>
.Fd #include <limits.h> .Fd #include <limits.h>


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

@ -33,7 +33,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" 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 .Dd June 25, 1992
.Dt STRTOUL 3 .Dt STRTOUL 3
@ -42,7 +42,7 @@
.Nm strtoul , .Nm strtoul ,
.Nm strtoull , .Nm strtoull ,
.Nm strtouq .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 .Sh SYNOPSIS
.Fd #include <stdlib.h> .Fd #include <stdlib.h>
.Fd #include <limits.h> .Fd #include <limits.h>


Loading…
Cancel
Save