Browse Source

- section reorder

- merge COMPATIBILITY
- kill whitespace at EOL
OPENBSD_3_4
jmc 21 years ago
parent
commit
fdc9cd7b4e
9 changed files with 56 additions and 56 deletions
  1. +13
    -13
      src/lib/libc/stdlib/atoi.3
  2. +5
    -5
      src/lib/libc/stdlib/getopt.3
  3. +4
    -4
      src/lib/libc/stdlib/insque.3
  4. +8
    -8
      src/lib/libc/stdlib/malloc.3
  5. +7
    -7
      src/lib/libc/stdlib/qsort.3
  6. +3
    -3
      src/lib/libc/stdlib/rand48.3
  7. +3
    -3
      src/lib/libc/stdlib/random.3
  8. +9
    -9
      src/lib/libc/stdlib/realpath.3
  9. +4
    -4
      src/lib/libc/stdlib/tsearch.3

+ 13
- 13
src/lib/libc/stdlib/atoi.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: atoi.3,v 1.5 2000/04/20 13:50:01 aaron Exp $
.\" $OpenBSD: atoi.3,v 1.6 2003/06/01 19:27:27 jmc Exp $
.\" .\"
.Dd June 4, 1993 .Dd June 4, 1993
.Dt ATOI 3 .Dt ATOI 3
@ -60,18 +60,6 @@ It is equivalent to:
.Bd -literal -offset indent .Bd -literal -offset indent
(int)strtol(nptr, (char **)NULL, 10); (int)strtol(nptr, (char **)NULL, 10);
.Ed .Ed
.Sh CAVEATS
.Nm
does no overflow checking, handles unsigned numbers poorly,
and handles strings containing trailing extra characters
(like
.Dq "123abc" Ns )
poorly.
Careful use of
.Xr strtol 3
and
.Xr strtoul 3
can alleviate these problems.
.Sh SEE ALSO .Sh SEE ALSO
.Xr atof 3 , .Xr atof 3 ,
.Xr atol 3 , .Xr atol 3 ,
@ -83,3 +71,15 @@ The
.Fn atoi .Fn atoi
function conforms to function conforms to
.St -ansiC . .St -ansiC .
.Sh CAVEATS
.Nm
does no overflow checking, handles unsigned numbers poorly,
and handles strings containing trailing extra characters
(like
.Dq "123abc" )
poorly.
Careful use of
.Xr strtol 3
and
.Xr strtoul 3
can alleviate these problems.

+ 5
- 5
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.22 2003/05/10 06:48:30 jmc Exp $
.\" $OpenBSD: getopt.3,v 1.23 2003/06/01 19:27:27 jmc Exp $
.\" .\"
.Dd December 8, 2002 .Dd December 8, 2002
.Dt GETOPT 3 .Dt GETOPT 3
@ -174,10 +174,6 @@ while ((ch = getopt(argc, argv, "bf:")) != -1) {
argc -= optind; argc -= optind;
argv += optind; argv += optind;
.Ed .Ed
.Sh SEE ALSO
.Xr getopt 1 ,
.Xr getopt_long 3 ,
.Xr getsubopt 3
.Sh DIAGNOSTICS .Sh DIAGNOSTICS
If the If the
.Fn getopt .Fn getopt
@ -202,6 +198,10 @@ to be returned in addition to suppressing any error messages.
Option arguments are allowed to begin with Option arguments are allowed to begin with
.Ql - ; .Ql - ;
this is reasonable but reduces the amount of error checking possible. this is reasonable but reduces the amount of error checking possible.
.Sh SEE ALSO
.Xr getopt 1 ,
.Xr getopt_long 3 ,
.Xr getsubopt 3
.Sh EXTENSIONS .Sh EXTENSIONS
The The
.Va optreset .Va optreset


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

@ -1,4 +1,4 @@
.\" $OpenBSD: insque.3,v 1.1 2003/05/08 23:26:30 millert Exp $
.\" $OpenBSD: insque.3,v 1.2 2003/06/01 19:27:27 jmc Exp $
.\" Copyright (c) 1993 John Brezak .\" Copyright (c) 1993 John Brezak
.\" All rights reserved. .\" All rights reserved.
.\" .\"
@ -83,13 +83,13 @@ These functions are not atomic unless that machine architecture allows it.
.Xr queue 3 .Xr queue 3
.Sh STANDARDS .Sh STANDARDS
The The
.Fn lsearch
.Fn lsearch
and and
.Fn lfind .Fn lfind
functions conform to the functions conform to the
.St -p1003.1-01 .St -p1003.1-01
and
.St -xpg4.3 .
and
.St -xpg4.3 .
specifications. specifications.
.Sh HISTORY .Sh HISTORY
The The


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

@ -34,7 +34,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: malloc.3,v 1.26 2003/05/14 04:48:06 krw Exp $
.\" $OpenBSD: malloc.3,v 1.27 2003/06/01 19:27:27 jmc Exp $
.\" .\"
.Dd August 27, 1996 .Dd August 27, 1996
.Dt MALLOC 3 .Dt MALLOC 3
@ -261,8 +261,6 @@ If a program changes behavior if either of these options are used,
it is buggy. it is buggy.
.Pp .Pp
The default cache size is 16 pages. The default cache size is 16 pages.
.Sh ENVIRONMENT
See above.
.Sh RETURN VALUES .Sh RETURN VALUES
The The
.Fn malloc .Fn malloc
@ -287,6 +285,13 @@ if successful; otherwise, a null pointer is returned and
.Va errno .Va errno
is set to is set to
.Er ENOMEM . .Er ENOMEM .
.Sh ENVIRONMENT
See above.
.Sh FILES
.Bl -tag -width "/etc/malloc.conf"
.It Pa /etc/malloc.conf
symbolic link to filename containing option flags
.El
.Sh DIAGNOSTICS .Sh DIAGNOSTICS
If If
.Fn malloc , .Fn malloc ,
@ -377,11 +382,6 @@ routines).
.It Dq unknown char in MALLOC_OPTIONS .It Dq unknown char in MALLOC_OPTIONS
We found something we didn't understand. We found something we didn't understand.
.El .El
.Sh FILES
.Bl -tag -width "/etc/malloc.conf"
.It Pa /etc/malloc.conf
symbolic link to filename containing option flags
.El
.Sh SEE ALSO .Sh SEE ALSO
.Xr brk 2 , .Xr brk 2 ,
.Xr alloca 3 , .Xr alloca 3 ,


+ 7
- 7
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.10 2003/05/10 06:48:30 jmc Exp $
.\" $OpenBSD: qsort.3,v 1.11 2003/06/01 19:27:27 jmc Exp $
.\" .\"
.Dd June 4, 1993 .Dd June 4, 1993
.Dt QSORT 3 .Dt QSORT 3
@ -181,12 +181,6 @@ or
.Fn mergesort .Fn mergesort
were unable to allocate memory. were unable to allocate memory.
.El .El
.Sh COMPATIBILITY
Previous versions of
.Fn qsort
did not permit the comparison routine itself to call
.Fn qsort .
This is no longer true.
.Sh SEE ALSO .Sh SEE ALSO
.Xr sort 1 , .Xr sort 1 ,
.Xr radixsort 3 .Xr radixsort 3
@ -227,6 +221,12 @@ This is no longer true.
.%V January 1992 .%V January 1992
.Re .Re
.Sh STANDARDS .Sh STANDARDS
Previous versions of
.Fn qsort
did not permit the comparison routine itself to call
.Fn qsort .
This is no longer true.
.Pp
The The
.Fn qsort .Fn qsort
function conforms to function conforms to


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

@ -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.9 2003/05/10 06:48:30 jmc Exp $
.\" $OpenBSD: rand48.3,v 1.10 2003/06/01 19:27:27 jmc Exp $
.\" .\"
.Dd October 8, 1993 .Dd October 8, 1993
.Dt RAND48 3 .Dt RAND48 3
@ -157,9 +157,9 @@ 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
Martin Birgmeier
.Sh SEE ALSO .Sh SEE ALSO
.Xr arc4random 3 , .Xr arc4random 3 ,
.Xr rand 3 , .Xr rand 3 ,
.Xr random 3 .Xr random 3
.Sh AUTHORS
Martin Birgmeier

+ 3
- 3
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.15 2003/05/10 06:48:30 jmc Exp $
.\" $OpenBSD: random.3,v 1.16 2003/06/01 19:27:27 jmc Exp $
.\" .\"
.Dd April 19, 1991 .Dd April 19, 1991
.Dt RANDOM 3 .Dt RANDOM 3
@ -154,8 +154,6 @@ it is initialized.
With 256 bytes of state information, the period of the random number With 256 bytes of state information, the period of the random number
generator is greater than 2**69 generator is greater than 2**69
which should be sufficient for most purposes. which should be sufficient for most purposes.
.Sh AUTHORS
.An Earl T. Cohen
.Sh DIAGNOSTICS .Sh DIAGNOSTICS
If If
.Fn initstate .Fn initstate
@ -185,6 +183,8 @@ function is an extension.
These These
functions appeared in functions appeared in
.Bx 4.2 . .Bx 4.2 .
.Sh AUTHORS
.An Earl T. Cohen
.Sh BUGS .Sh BUGS
About 2/3 the speed of About 2/3 the speed of
.Xr rand 3 . .Xr rand 3 .

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

@ -32,7 +32,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: realpath.3,v 1.8 2001/04/23 15:30:25 aaron Exp $
.\" $OpenBSD: realpath.3,v 1.9 2003/06/01 19:27:27 jmc Exp $
.\" .\"
.Dd February 16, 1994 .Dd February 16, 1994
.Dt REALPATH 3 .Dt REALPATH 3
@ -76,7 +76,7 @@ All but the last component of
must exist when must exist when
.Fn realpath .Fn realpath
is called. is called.
.Sh "RETURN VALUES"
.Sh RETURN VALUES
The The
.Fn realpath .Fn realpath
function returns function returns
@ -103,6 +103,13 @@ for any of the errors specified for the library functions
.Xr readlink 2 , .Xr readlink 2 ,
and and
.Xr getcwd 3 . .Xr getcwd 3 .
.Sh SEE ALSO
.Xr getcwd 3
.Sh HISTORY
The
.Fn realpath
function call first appeared in
.Bx 4.4 .
.Sh CAVEATS .Sh CAVEATS
This implementation of This implementation of
.Fn realpath .Fn realpath
@ -115,10 +122,3 @@ under certain circumstances, return a relative
.Fa resolvedname .Fa resolvedname
when given a relative when given a relative
.Fa pathname . .Fa pathname .
.Sh SEE ALSO
.Xr getcwd 3
.Sh HISTORY
The
.Fn realpath
function call first appeared in
.Bx 4.4 .

+ 4
- 4
src/lib/libc/stdlib/tsearch.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: tsearch.3,v 1.9 2000/08/09 15:51:21 aaron Exp $
.\" $OpenBSD: tsearch.3,v 1.10 2003/06/01 19:27:27 jmc Exp $
.\" .\"
.Dd June 15, 1997 .Dd June 15, 1997
.Dt TSEARCH 3 .Dt TSEARCH 3
@ -99,9 +99,6 @@ a value from the enum
.Sy "typedef enum { preorder, postorder, endorder, leaf } VISIT;" .Sy "typedef enum { preorder, postorder, endorder, leaf } VISIT;"
specifying the traversal type, and a node level (where level specifying the traversal type, and a node level (where level
zero is the root of the tree). zero is the root of the tree).
.Sh SEE ALSO
.Xr bsearch 3 ,
.Xr lsearch 3
.Sh RETURN VALUES .Sh RETURN VALUES
The The
.Fn tsearch .Fn tsearch
@ -125,3 +122,6 @@ or the datum cannot be found.
The The
.Fn twalk .Fn twalk
function returns no value. function returns no value.
.Sh SEE ALSO
.Xr bsearch 3 ,
.Xr lsearch 3

Loading…
Cancel
Save