Browse Source

- typos, punctuation, layout, macro tweaks

- break long lines
ok jmc
OPENBSD_3_8
jaredy 19 years ago
parent
commit
eb2659255c
9 changed files with 48 additions and 34 deletions
  1. +2
    -2
      src/lib/libc/stdlib/atoll.3
  2. +3
    -3
      src/lib/libc/stdlib/getenv.3
  3. +2
    -2
      src/lib/libc/stdlib/getopt.3
  4. +3
    -3
      src/lib/libc/stdlib/getsubopt.3
  5. +6
    -5
      src/lib/libc/stdlib/hcreate.3
  6. +11
    -7
      src/lib/libc/stdlib/insque.3
  7. +7
    -5
      src/lib/libc/stdlib/lsearch.3
  8. +11
    -4
      src/lib/libc/stdlib/malloc.3
  9. +3
    -3
      src/lib/libc/stdlib/radixsort.3

+ 2
- 2
src/lib/libc/stdlib/atoll.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: atoll.3,v 1.3 2003/06/02 20:18:37 millert Exp $
.\" $OpenBSD: atoll.3,v 1.4 2005/07/26 04:20:23 jaredy Exp $
.\" .\"
.Dd June 29, 1991 .Dd June 29, 1991
.Dt ATOLL 3 .Dt ATOLL 3
@ -49,7 +49,7 @@ The
function converts the initial portion of the string pointed to by function converts the initial portion of the string pointed to by
.Fa nptr .Fa nptr
to to
.Li long integer
.Li long long integer
representation. representation.
.Pp .Pp
It is equivalent to: It is equivalent to:


+ 3
- 3
src/lib/libc/stdlib/getenv.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: getenv.3,v 1.10 2005/05/11 20:09:44 otto Exp $
.\" $OpenBSD: getenv.3,v 1.11 2005/07/26 04:20:23 jaredy Exp $
.\" .\"
.Dd December 11, 1993 .Dd December 11, 1993
.Dt GETENV 3 .Dt GETENV 3
@ -62,7 +62,7 @@ may be appended and prepended, respectively, with an equal sign
.Pp .Pp
The The
.Fn getenv .Fn getenv
function obtains the current value of the environment variable,
function obtains the current value of the environment variable
.Fa name . .Fa name .
If the variable If the variable
.Fa name .Fa name
@ -111,7 +111,7 @@ If
.Fn getenv .Fn getenv
is successful, the string returned should be considered read-only. is successful, the string returned should be considered read-only.
.Sh ERRORS .Sh ERRORS
.Bl -tag -width [ENOMEM]
.Bl -tag -width Er
.It Bq Er ENOMEM .It Bq Er ENOMEM
The function The function
.Fn setenv .Fn setenv


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

@ -25,7 +25,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.34 2005/07/26 04:14:58 jaredy Exp $
.\" $OpenBSD: getopt.3,v 1.35 2005/07/26 04:20:23 jaredy Exp $
.\" .\"
.Dd December 17, 2002 .Dd December 17, 2002
.Dt GETOPT 3 .Dt GETOPT 3
@ -207,7 +207,7 @@ If the
function encounters a character not found in the string function encounters a character not found in the string
.Fa optstring .Fa optstring
or detects or detects
a missing option argument it writes an error message to
a missing option argument, it writes an error message to
.Em stderr .Em stderr
and returns and returns
.Ql \&? . .Ql \&? .


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

@ -1,4 +1,4 @@
.\" $OpenBSD: getsubopt.3,v 1.9 2005/02/25 03:12:44 cloder Exp $
.\" $OpenBSD: getsubopt.3,v 1.10 2005/07/26 04:20:23 jaredy 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.
@ -44,7 +44,7 @@
The The
.Fn getsubopt .Fn getsubopt
function parses a string containing tokens delimited by one or more function parses a string containing tokens delimited by one or more
tab, space or comma
tab, space, or comma
.Pq Ql \&, .Pq Ql \&,
characters. characters.
It is intended for use in parsing groups of option arguments provided It is intended for use in parsing groups of option arguments provided
@ -90,7 +90,7 @@ will be set to point to the value portion of the token, or
.Dv NULL .Dv NULL
if no value portion was present. if no value portion was present.
.Sh EXAMPLES .Sh EXAMPLES
.Bd -literal -compact
.Bd -literal
char *tokens[] = { char *tokens[] = {
#define ONE 0 #define ONE 0
"one", "one",


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

@ -1,4 +1,4 @@
.\" $OpenBSD: hcreate.3,v 1.1 2004/06/24 04:43:33 millert Exp $
.\" $OpenBSD: hcreate.3,v 1.2 2005/07/26 04:20:23 jaredy Exp $
.\" $NetBSD: hcreate.3,v 1.6 2003/04/16 13:34:46 wiz Exp $ .\" $NetBSD: hcreate.3,v 1.6 2003/04/16 13:34:46 wiz Exp $
.\" .\"
.\" Copyright (c) 1999 The NetBSD Foundation, Inc. .\" Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -54,7 +54,7 @@
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Fn hcreate , .Fn hcreate ,
.Fn hdestroy
.Fn hdestroy ,
and and
.Fn hsearch .Fn hsearch
functions manage hash search tables. functions manage hash search tables.
@ -93,6 +93,7 @@ The
argument is of type argument is of type
.Dv ENTRY , .Dv ENTRY ,
a structural type which contains the following members: a structural type which contains the following members:
.Pp
.Bl -tag -compact -offset indent -width voidX*dataXX .Bl -tag -compact -offset indent -width voidX*dataXX
.It Fa char *key .It Fa char *key
comparison key. comparison key.
@ -111,7 +112,7 @@ The
argument is of type argument is of type
.Dv ACTION , .Dv ACTION ,
an enumeration type which defines the following values: an enumeration type which defines the following values:
.Bl -tag -compact -offset indent -width ENTERXX
.Bl -tag -offset indent -width ENTERXX
.It Dv ENTER .It Dv ENTER
Insert Insert
.Fa item .Fa item
@ -145,7 +146,7 @@ returns no value.
.Pp .Pp
If successful, the If successful, the
.Fn hsearch .Fn hsearch
function returns a pointer to hash table entry matching
function returns a pointer to a hash table entry matching
the provided key. the provided key.
If the action is If the action is
.Dv FIND .Dv FIND
@ -178,7 +179,7 @@ Insufficient memory is available.
.Sh STANDARDS .Sh STANDARDS
The The
.Fn hcreate , .Fn hcreate ,
.Fn hdestroy
.Fn hdestroy ,
and and
.Fn hsearch .Fn hsearch
functions conform to functions conform to


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

@ -1,4 +1,4 @@
.\" $OpenBSD: insque.3,v 1.5 2005/07/26 04:13:18 jaredy Exp $
.\" $OpenBSD: insque.3,v 1.6 2005/07/26 04:20:23 jaredy Exp $
.\" Copyright (c) 1993 John Brezak .\" Copyright (c) 1993 John Brezak
.\" All rights reserved. .\" All rights reserved.
.\" .\"
@ -52,11 +52,11 @@ and
manipulate queues built from doubly linked lists. manipulate queues built from doubly linked lists.
The queue can be either circular or linear. The queue can be either circular or linear.
Each element in the queue must be of the following form: Each element in the queue must be of the following form:
.Bd -literal
.Bd -literal -offset indent
struct qelem { struct qelem {
struct qelem *q_forw;
struct qelem *q_back;
char q_data[];
struct qelem *q_forw;
struct qelem *q_back;
char q_data[];
}; };
.Ed .Ed
.Pp .Pp
@ -77,7 +77,7 @@ The
function removes function removes
.Fa elem .Fa elem
from the queue. from the queue.
.Sh DIAGNOSTICS
.Pp
These functions are not atomic unless that machine architecture allows it. These functions are not atomic unless that machine architecture allows it.
.Sh SEE ALSO .Sh SEE ALSO
.Xr queue 3 .Xr queue 3
@ -96,7 +96,11 @@ The
.Fn insque .Fn insque
and and
.Fn remque .Fn remque
functions are derived from the insque and remque instructions on a
functions are derived from the
.Li insque
and
.Li remque
instructions on the
.Tn VAX . .Tn VAX .
They first appeared in They first appeared in
.Bx 4.2 . .Bx 4.2 .

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

@ -1,4 +1,4 @@
.\" $OpenBSD: lsearch.3,v 1.5 2005/07/07 07:50:38 jmc Exp $
.\" $OpenBSD: lsearch.3,v 1.6 2005/07/26 04:20:23 jaredy Exp $
.\" .\"
.\" Copyright (c) 1989, 1991, 1993 .\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved. .\" The Regents of the University of California. All rights reserved.
@ -38,12 +38,14 @@
.Nd linear searching routines .Nd linear searching routines
.Sh SYNOPSIS .Sh SYNOPSIS
.Ft char * .Ft char *
.Fn lsearch "const void *key" "const void *base" "size_t *nelp" "size_t width" "int (*compar)(void *, void *)"
.Fn lsearch "const void *key" "const void *base" "size_t *nelp" \
"size_t width" "int (*compar)(void *, void *)"
.Ft char * .Ft char *
.Fn lfind "const void *key" "const void *base" "size_t *nelp" "size_t width" "int (*compar)(void *, void *)"
.Fn lfind "const void *key" "const void *base" "size_t *nelp" \
"size_t width" "int (*compar)(void *, void *)"
.Sh DESCRIPTION .Sh DESCRIPTION
The functions The functions
.Fn lsearch ,
.Fn lsearch
and and
.Fn lfind .Fn lfind
provide basic linear searching functionality. provide basic linear searching functionality.
@ -86,7 +88,7 @@ will return a null pointer and
.Fn lsearch .Fn lsearch
will add it to the array. will add it to the array.
When an element is added to the array by When an element is added to the array by
.Fn lsearch
.Fn lsearch ,
the location referenced by the argument the location referenced by the argument
.Fa nelp .Fa nelp
is incremented by one. is incremented by one.


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

@ -30,7 +30,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.40 2005/06/07 09:04:42 jmc Exp $
.\" $OpenBSD: malloc.3,v 1.41 2005/07/26 04:20:23 jaredy Exp $
.\" .\"
.Dd August 27, 1996 .Dd August 27, 1996
.Dt MALLOC 3 .Dt MALLOC 3
@ -293,7 +293,10 @@ if successful; otherwise, a null pointer is returned and
is set to is set to
.Er ENOMEM . .Er ENOMEM .
.Sh ENVIRONMENT .Sh ENVIRONMENT
.Bl -tag -width Ev
.It Ev MALLOC_OPTIONS
See above. See above.
.El
.Sh FILES .Sh FILES
.Bl -tag -width "/etc/malloc.conf" .Bl -tag -width "/etc/malloc.conf"
.It Pa /etc/malloc.conf .It Pa /etc/malloc.conf
@ -318,7 +321,7 @@ option has been specified, warnings will also
the process. the process.
.Pp .Pp
Here is a brief description of the error messages and what they mean: Here is a brief description of the error messages and what they mean:
.Bl -tag -width Fl
.Bl -tag -width Ds
.It Dq (ES): mumble mumble mumble .It Dq (ES): mumble mumble mumble
.Fn malloc .Fn malloc
has been compiled with has been compiled with
@ -346,7 +349,7 @@ internal freelist has been stomped on.
.El .El
.Pp .Pp
Here is a brief description of the warning messages and what they mean: Here is a brief description of the warning messages and what they mean:
.Bl -tag -width Fl
.Bl -tag -width Ds
.It Dq chunk/page is already free. .It Dq chunk/page is already free.
There was an attempt to free a chunk that had already been freed. There was an attempt to free a chunk that had already been freed.
.It Dq junk pointer, too high to make sense. .It Dq junk pointer, too high to make sense.
@ -367,7 +370,11 @@ This pointer probably came from your data or bss segments.
Nothing has ever been allocated, yet something is being freed or Nothing has ever been allocated, yet something is being freed or
realloc'ed. realloc'ed.
.It Dq modified (chunk-/page-) pointer. .It Dq modified (chunk-/page-) pointer.
The pointer passed to free or realloc has been modified.
The pointer passed to
.Fn free
or
.Fn realloc
has been modified.
.It Dq pointer to wrong page. .It Dq pointer to wrong page.
The pointer that The pointer that
.Fn malloc .Fn malloc


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

@ -25,7 +25,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: radixsort.3,v 1.9 2003/06/02 20:18:38 millert Exp $
.\" $OpenBSD: radixsort.3,v 1.10 2005/07/26 04:20:23 jaredy Exp $
.\" .\"
.Dd January 27, 1994 .Dd January 27, 1994
.Dt RADIXSORT 3 .Dt RADIXSORT 3
@ -71,8 +71,8 @@ More than one byte may have the same sort weight.
The The
.Fa table .Fa table
argument is useful for applications which wish to sort different characters argument is useful for applications which wish to sort different characters
equally, for example, providing a table with the same weights
for A-Z as for a-z will result in a case-insensitive sort.
equally; for example, providing a table with the same weights
for A\-Z as for a\-z will result in a case-insensitive sort.
If If
.Fa table .Fa table
is is


Loading…
Cancel
Save