summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjaredy <>2005-07-26 04:20:23 +0000
committerjaredy <>2005-07-26 04:20:23 +0000
commit2af170451ab1c3caae54f5889dbbb37e288ebc62 (patch)
tree7a334ba0ee85227a8932abce033722fd48d45573 /src
parent182eb10d8cb1661b4873a254245ae02caafeb8fe (diff)
downloadopenbsd-2af170451ab1c3caae54f5889dbbb37e288ebc62.tar.gz
openbsd-2af170451ab1c3caae54f5889dbbb37e288ebc62.tar.bz2
openbsd-2af170451ab1c3caae54f5889dbbb37e288ebc62.zip
- typos, punctuation, layout, macro tweaks
- break long lines ok jmc
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/stdlib/atoll.34
-rw-r--r--src/lib/libc/stdlib/getenv.36
-rw-r--r--src/lib/libc/stdlib/getopt.34
-rw-r--r--src/lib/libc/stdlib/getsubopt.36
-rw-r--r--src/lib/libc/stdlib/hcreate.311
-rw-r--r--src/lib/libc/stdlib/insque.318
-rw-r--r--src/lib/libc/stdlib/lsearch.312
-rw-r--r--src/lib/libc/stdlib/malloc.315
-rw-r--r--src/lib/libc/stdlib/radixsort.36
9 files changed, 48 insertions, 34 deletions
diff --git a/src/lib/libc/stdlib/atoll.3 b/src/lib/libc/stdlib/atoll.3
index 40584e9d47..2b53e9b694 100644
--- a/src/lib/libc/stdlib/atoll.3
+++ b/src/lib/libc/stdlib/atoll.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: atoll.3,v 1.3 2003/06/02 20:18:37 millert Exp $ 32.\" $OpenBSD: atoll.3,v 1.4 2005/07/26 04:20:23 jaredy Exp $
33.\" 33.\"
34.Dd June 29, 1991 34.Dd June 29, 1991
35.Dt ATOLL 3 35.Dt ATOLL 3
@@ -49,7 +49,7 @@ The
49function converts the initial portion of the string pointed to by 49function converts the initial portion of the string pointed to by
50.Fa nptr 50.Fa nptr
51to 51to
52.Li long integer 52.Li long long integer
53representation. 53representation.
54.Pp 54.Pp
55It is equivalent to: 55It is equivalent to:
diff --git a/src/lib/libc/stdlib/getenv.3 b/src/lib/libc/stdlib/getenv.3
index 8faf74c43d..f131bbf513 100644
--- a/src/lib/libc/stdlib/getenv.3
+++ b/src/lib/libc/stdlib/getenv.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: getenv.3,v 1.10 2005/05/11 20:09:44 otto Exp $ 32.\" $OpenBSD: getenv.3,v 1.11 2005/07/26 04:20:23 jaredy Exp $
33.\" 33.\"
34.Dd December 11, 1993 34.Dd December 11, 1993
35.Dt GETENV 3 35.Dt GETENV 3
@@ -62,7 +62,7 @@ may be appended and prepended, respectively, with an equal sign
62.Pp 62.Pp
63The 63The
64.Fn getenv 64.Fn getenv
65function obtains the current value of the environment variable, 65function obtains the current value of the environment variable
66.Fa name . 66.Fa name .
67If the variable 67If the variable
68.Fa name 68.Fa name
@@ -111,7 +111,7 @@ If
111.Fn getenv 111.Fn getenv
112is successful, the string returned should be considered read-only. 112is successful, the string returned should be considered read-only.
113.Sh ERRORS 113.Sh ERRORS
114.Bl -tag -width [ENOMEM] 114.Bl -tag -width Er
115.It Bq Er ENOMEM 115.It Bq Er ENOMEM
116The function 116The function
117.Fn setenv 117.Fn setenv
diff --git a/src/lib/libc/stdlib/getopt.3 b/src/lib/libc/stdlib/getopt.3
index ed4456f52f..2fb70b7260 100644
--- a/src/lib/libc/stdlib/getopt.3
+++ b/src/lib/libc/stdlib/getopt.3
@@ -25,7 +25,7 @@
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE. 26.\" SUCH DAMAGE.
27.\" 27.\"
28.\" $OpenBSD: getopt.3,v 1.34 2005/07/26 04:14:58 jaredy Exp $ 28.\" $OpenBSD: getopt.3,v 1.35 2005/07/26 04:20:23 jaredy Exp $
29.\" 29.\"
30.Dd December 17, 2002 30.Dd December 17, 2002
31.Dt GETOPT 3 31.Dt GETOPT 3
@@ -207,7 +207,7 @@ If the
207function encounters a character not found in the string 207function encounters a character not found in the string
208.Fa optstring 208.Fa optstring
209or detects 209or detects
210a missing option argument it writes an error message to 210a missing option argument, it writes an error message to
211.Em stderr 211.Em stderr
212and returns 212and returns
213.Ql \&? . 213.Ql \&? .
diff --git a/src/lib/libc/stdlib/getsubopt.3 b/src/lib/libc/stdlib/getsubopt.3
index 6cb4975ced..d0308e2d50 100644
--- a/src/lib/libc/stdlib/getsubopt.3
+++ b/src/lib/libc/stdlib/getsubopt.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getsubopt.3,v 1.9 2005/02/25 03:12:44 cloder Exp $ 1.\" $OpenBSD: getsubopt.3,v 1.10 2005/07/26 04:20:23 jaredy Exp $
2.\" 2.\"
3.\" Copyright (c) 1990, 1991, 1993 3.\" Copyright (c) 1990, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -44,7 +44,7 @@
44The 44The
45.Fn getsubopt 45.Fn getsubopt
46function parses a string containing tokens delimited by one or more 46function parses a string containing tokens delimited by one or more
47tab, space or comma 47tab, space, or comma
48.Pq Ql \&, 48.Pq Ql \&,
49characters. 49characters.
50It is intended for use in parsing groups of option arguments provided 50It 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
90.Dv NULL 90.Dv NULL
91if no value portion was present. 91if no value portion was present.
92.Sh EXAMPLES 92.Sh EXAMPLES
93.Bd -literal -compact 93.Bd -literal
94char *tokens[] = { 94char *tokens[] = {
95 #define ONE 0 95 #define ONE 0
96 "one", 96 "one",
diff --git a/src/lib/libc/stdlib/hcreate.3 b/src/lib/libc/stdlib/hcreate.3
index d1d4e5c185..a1ad251487 100644
--- a/src/lib/libc/stdlib/hcreate.3
+++ b/src/lib/libc/stdlib/hcreate.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: hcreate.3,v 1.1 2004/06/24 04:43:33 millert Exp $ 1.\" $OpenBSD: hcreate.3,v 1.2 2005/07/26 04:20:23 jaredy Exp $
2.\" $NetBSD: hcreate.3,v 1.6 2003/04/16 13:34:46 wiz Exp $ 2.\" $NetBSD: hcreate.3,v 1.6 2003/04/16 13:34:46 wiz Exp $
3.\" 3.\"
4.\" Copyright (c) 1999 The NetBSD Foundation, Inc. 4.\" Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -54,7 +54,7 @@
54.Sh DESCRIPTION 54.Sh DESCRIPTION
55The 55The
56.Fn hcreate , 56.Fn hcreate ,
57.Fn hdestroy 57.Fn hdestroy ,
58and 58and
59.Fn hsearch 59.Fn hsearch
60functions manage hash search tables. 60functions manage hash search tables.
@@ -93,6 +93,7 @@ The
93argument is of type 93argument is of type
94.Dv ENTRY , 94.Dv ENTRY ,
95a structural type which contains the following members: 95a structural type which contains the following members:
96.Pp
96.Bl -tag -compact -offset indent -width voidX*dataXX 97.Bl -tag -compact -offset indent -width voidX*dataXX
97.It Fa char *key 98.It Fa char *key
98comparison key. 99comparison key.
@@ -111,7 +112,7 @@ The
111argument is of type 112argument is of type
112.Dv ACTION , 113.Dv ACTION ,
113an enumeration type which defines the following values: 114an enumeration type which defines the following values:
114.Bl -tag -compact -offset indent -width ENTERXX 115.Bl -tag -offset indent -width ENTERXX
115.It Dv ENTER 116.It Dv ENTER
116Insert 117Insert
117.Fa item 118.Fa item
@@ -145,7 +146,7 @@ returns no value.
145.Pp 146.Pp
146If successful, the 147If successful, the
147.Fn hsearch 148.Fn hsearch
148function returns a pointer to hash table entry matching 149function returns a pointer to a hash table entry matching
149the provided key. 150the provided key.
150If the action is 151If the action is
151.Dv FIND 152.Dv FIND
@@ -178,7 +179,7 @@ Insufficient memory is available.
178.Sh STANDARDS 179.Sh STANDARDS
179The 180The
180.Fn hcreate , 181.Fn hcreate ,
181.Fn hdestroy 182.Fn hdestroy ,
182and 183and
183.Fn hsearch 184.Fn hsearch
184functions conform to 185functions conform to
diff --git a/src/lib/libc/stdlib/insque.3 b/src/lib/libc/stdlib/insque.3
index 33b193ca80..fb4f55112d 100644
--- a/src/lib/libc/stdlib/insque.3
+++ b/src/lib/libc/stdlib/insque.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: insque.3,v 1.5 2005/07/26 04:13:18 jaredy Exp $ 1.\" $OpenBSD: insque.3,v 1.6 2005/07/26 04:20:23 jaredy Exp $
2.\" Copyright (c) 1993 John Brezak 2.\" Copyright (c) 1993 John Brezak
3.\" All rights reserved. 3.\" All rights reserved.
4.\" 4.\"
@@ -52,11 +52,11 @@ and
52manipulate queues built from doubly linked lists. 52manipulate queues built from doubly linked lists.
53The queue can be either circular or linear. 53The queue can be either circular or linear.
54Each element in the queue must be of the following form: 54Each element in the queue must be of the following form:
55.Bd -literal 55.Bd -literal -offset indent
56struct qelem { 56struct qelem {
57 struct qelem *q_forw; 57 struct qelem *q_forw;
58 struct qelem *q_back; 58 struct qelem *q_back;
59 char q_data[]; 59 char q_data[];
60}; 60};
61.Ed 61.Ed
62.Pp 62.Pp
@@ -77,7 +77,7 @@ The
77function removes 77function removes
78.Fa elem 78.Fa elem
79from the queue. 79from the queue.
80.Sh DIAGNOSTICS 80.Pp
81These functions are not atomic unless that machine architecture allows it. 81These functions are not atomic unless that machine architecture allows it.
82.Sh SEE ALSO 82.Sh SEE ALSO
83.Xr queue 3 83.Xr queue 3
@@ -96,7 +96,11 @@ The
96.Fn insque 96.Fn insque
97and 97and
98.Fn remque 98.Fn remque
99functions are derived from the insque and remque instructions on a 99functions are derived from the
100.Li insque
101and
102.Li remque
103instructions on the
100.Tn VAX . 104.Tn VAX .
101They first appeared in 105They first appeared in
102.Bx 4.2 . 106.Bx 4.2 .
diff --git a/src/lib/libc/stdlib/lsearch.3 b/src/lib/libc/stdlib/lsearch.3
index 051b1ef4c1..eda2aeb599 100644
--- a/src/lib/libc/stdlib/lsearch.3
+++ b/src/lib/libc/stdlib/lsearch.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: lsearch.3,v 1.5 2005/07/07 07:50:38 jmc Exp $ 1.\" $OpenBSD: lsearch.3,v 1.6 2005/07/26 04:20:23 jaredy Exp $
2.\" 2.\"
3.\" Copyright (c) 1989, 1991, 1993 3.\" Copyright (c) 1989, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -38,12 +38,14 @@
38.Nd linear searching routines 38.Nd linear searching routines
39.Sh SYNOPSIS 39.Sh SYNOPSIS
40.Ft char * 40.Ft char *
41.Fn lsearch "const void *key" "const void *base" "size_t *nelp" "size_t width" "int (*compar)(void *, void *)" 41.Fn lsearch "const void *key" "const void *base" "size_t *nelp" \
42 "size_t width" "int (*compar)(void *, void *)"
42.Ft char * 43.Ft char *
43.Fn lfind "const void *key" "const void *base" "size_t *nelp" "size_t width" "int (*compar)(void *, void *)" 44.Fn lfind "const void *key" "const void *base" "size_t *nelp" \
45 "size_t width" "int (*compar)(void *, void *)"
44.Sh DESCRIPTION 46.Sh DESCRIPTION
45The functions 47The functions
46.Fn lsearch , 48.Fn lsearch
47and 49and
48.Fn lfind 50.Fn lfind
49provide basic linear searching functionality. 51provide basic linear searching functionality.
@@ -86,7 +88,7 @@ will return a null pointer and
86.Fn lsearch 88.Fn lsearch
87will add it to the array. 89will add it to the array.
88When an element is added to the array by 90When an element is added to the array by
89.Fn lsearch 91.Fn lsearch ,
90the location referenced by the argument 92the location referenced by the argument
91.Fa nelp 93.Fa nelp
92is incremented by one. 94is incremented by one.
diff --git a/src/lib/libc/stdlib/malloc.3 b/src/lib/libc/stdlib/malloc.3
index 8cf547251c..9c4d94db15 100644
--- a/src/lib/libc/stdlib/malloc.3
+++ b/src/lib/libc/stdlib/malloc.3
@@ -30,7 +30,7 @@
30.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31.\" SUCH DAMAGE. 31.\" SUCH DAMAGE.
32.\" 32.\"
33.\" $OpenBSD: malloc.3,v 1.40 2005/06/07 09:04:42 jmc Exp $ 33.\" $OpenBSD: malloc.3,v 1.41 2005/07/26 04:20:23 jaredy Exp $
34.\" 34.\"
35.Dd August 27, 1996 35.Dd August 27, 1996
36.Dt MALLOC 3 36.Dt MALLOC 3
@@ -293,7 +293,10 @@ if successful; otherwise, a null pointer is returned and
293is set to 293is set to
294.Er ENOMEM . 294.Er ENOMEM .
295.Sh ENVIRONMENT 295.Sh ENVIRONMENT
296.Bl -tag -width Ev
297.It Ev MALLOC_OPTIONS
296See above. 298See above.
299.El
297.Sh FILES 300.Sh FILES
298.Bl -tag -width "/etc/malloc.conf" 301.Bl -tag -width "/etc/malloc.conf"
299.It Pa /etc/malloc.conf 302.It Pa /etc/malloc.conf
@@ -318,7 +321,7 @@ option has been specified, warnings will also
318the process. 321the process.
319.Pp 322.Pp
320Here is a brief description of the error messages and what they mean: 323Here is a brief description of the error messages and what they mean:
321.Bl -tag -width Fl 324.Bl -tag -width Ds
322.It Dq (ES): mumble mumble mumble 325.It Dq (ES): mumble mumble mumble
323.Fn malloc 326.Fn malloc
324has been compiled with 327has been compiled with
@@ -346,7 +349,7 @@ internal freelist has been stomped on.
346.El 349.El
347.Pp 350.Pp
348Here is a brief description of the warning messages and what they mean: 351Here is a brief description of the warning messages and what they mean:
349.Bl -tag -width Fl 352.Bl -tag -width Ds
350.It Dq chunk/page is already free. 353.It Dq chunk/page is already free.
351There was an attempt to free a chunk that had already been freed. 354There was an attempt to free a chunk that had already been freed.
352.It Dq junk pointer, too high to make sense. 355.It Dq junk pointer, too high to make sense.
@@ -367,7 +370,11 @@ This pointer probably came from your data or bss segments.
367Nothing has ever been allocated, yet something is being freed or 370Nothing has ever been allocated, yet something is being freed or
368realloc'ed. 371realloc'ed.
369.It Dq modified (chunk-/page-) pointer. 372.It Dq modified (chunk-/page-) pointer.
370The pointer passed to free or realloc has been modified. 373The pointer passed to
374.Fn free
375or
376.Fn realloc
377has been modified.
371.It Dq pointer to wrong page. 378.It Dq pointer to wrong page.
372The pointer that 379The pointer that
373.Fn malloc 380.Fn malloc
diff --git a/src/lib/libc/stdlib/radixsort.3 b/src/lib/libc/stdlib/radixsort.3
index 028837d4d1..8a4f71641f 100644
--- a/src/lib/libc/stdlib/radixsort.3
+++ b/src/lib/libc/stdlib/radixsort.3
@@ -25,7 +25,7 @@
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE. 26.\" SUCH DAMAGE.
27.\" 27.\"
28.\" $OpenBSD: radixsort.3,v 1.9 2003/06/02 20:18:38 millert Exp $ 28.\" $OpenBSD: radixsort.3,v 1.10 2005/07/26 04:20:23 jaredy Exp $
29.\" 29.\"
30.Dd January 27, 1994 30.Dd January 27, 1994
31.Dt RADIXSORT 3 31.Dt RADIXSORT 3
@@ -71,8 +71,8 @@ More than one byte may have the same sort weight.
71The 71The
72.Fa table 72.Fa table
73argument is useful for applications which wish to sort different characters 73argument is useful for applications which wish to sort different characters
74equally, for example, providing a table with the same weights 74equally; for example, providing a table with the same weights
75for A-Z as for a-z will result in a case-insensitive sort. 75for A\-Z as for a\-z will result in a case-insensitive sort.
76If 76If
77.Fa table 77.Fa table
78is 78is