diff options
author | jaredy <> | 2005-07-26 04:20:23 +0000 |
---|---|---|
committer | jaredy <> | 2005-07-26 04:20:23 +0000 |
commit | 2af170451ab1c3caae54f5889dbbb37e288ebc62 (patch) | |
tree | 7a334ba0ee85227a8932abce033722fd48d45573 | |
parent | 182eb10d8cb1661b4873a254245ae02caafeb8fe (diff) | |
download | openbsd-2af170451ab1c3caae54f5889dbbb37e288ebc62.tar.gz openbsd-2af170451ab1c3caae54f5889dbbb37e288ebc62.tar.bz2 openbsd-2af170451ab1c3caae54f5889dbbb37e288ebc62.zip |
- typos, punctuation, layout, macro tweaks
- break long lines
ok jmc
-rw-r--r-- | src/lib/libc/stdlib/atoll.3 | 4 | ||||
-rw-r--r-- | src/lib/libc/stdlib/getenv.3 | 6 | ||||
-rw-r--r-- | src/lib/libc/stdlib/getopt.3 | 4 | ||||
-rw-r--r-- | src/lib/libc/stdlib/getsubopt.3 | 6 | ||||
-rw-r--r-- | src/lib/libc/stdlib/hcreate.3 | 11 | ||||
-rw-r--r-- | src/lib/libc/stdlib/insque.3 | 18 | ||||
-rw-r--r-- | src/lib/libc/stdlib/lsearch.3 | 12 | ||||
-rw-r--r-- | src/lib/libc/stdlib/malloc.3 | 15 | ||||
-rw-r--r-- | src/lib/libc/stdlib/radixsort.3 | 6 |
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 | |||
49 | function converts the initial portion of the string pointed to by | 49 | function converts the initial portion of the string pointed to by |
50 | .Fa nptr | 50 | .Fa nptr |
51 | to | 51 | to |
52 | .Li long integer | 52 | .Li long long integer |
53 | representation. | 53 | representation. |
54 | .Pp | 54 | .Pp |
55 | It is equivalent to: | 55 | It 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 |
63 | The | 63 | The |
64 | .Fn getenv | 64 | .Fn getenv |
65 | function obtains the current value of the environment variable, | 65 | function obtains the current value of the environment variable |
66 | .Fa name . | 66 | .Fa name . |
67 | If the variable | 67 | If the variable |
68 | .Fa name | 68 | .Fa name |
@@ -111,7 +111,7 @@ If | |||
111 | .Fn getenv | 111 | .Fn getenv |
112 | is successful, the string returned should be considered read-only. | 112 | is 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 |
116 | The function | 116 | The 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 | |||
207 | function encounters a character not found in the string | 207 | function encounters a character not found in the string |
208 | .Fa optstring | 208 | .Fa optstring |
209 | or detects | 209 | or detects |
210 | a missing option argument it writes an error message to | 210 | a missing option argument, it writes an error message to |
211 | .Em stderr | 211 | .Em stderr |
212 | and returns | 212 | and 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 @@ | |||
44 | The | 44 | The |
45 | .Fn getsubopt | 45 | .Fn getsubopt |
46 | function parses a string containing tokens delimited by one or more | 46 | function parses a string containing tokens delimited by one or more |
47 | tab, space or comma | 47 | tab, space, or comma |
48 | .Pq Ql \&, | 48 | .Pq Ql \&, |
49 | characters. | 49 | characters. |
50 | It is intended for use in parsing groups of option arguments provided | 50 | 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 | |||
90 | .Dv NULL | 90 | .Dv NULL |
91 | if no value portion was present. | 91 | if no value portion was present. |
92 | .Sh EXAMPLES | 92 | .Sh EXAMPLES |
93 | .Bd -literal -compact | 93 | .Bd -literal |
94 | char *tokens[] = { | 94 | char *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 |
55 | The | 55 | The |
56 | .Fn hcreate , | 56 | .Fn hcreate , |
57 | .Fn hdestroy | 57 | .Fn hdestroy , |
58 | and | 58 | and |
59 | .Fn hsearch | 59 | .Fn hsearch |
60 | functions manage hash search tables. | 60 | functions manage hash search tables. |
@@ -93,6 +93,7 @@ The | |||
93 | argument is of type | 93 | argument is of type |
94 | .Dv ENTRY , | 94 | .Dv ENTRY , |
95 | a structural type which contains the following members: | 95 | a 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 |
98 | comparison key. | 99 | comparison key. |
@@ -111,7 +112,7 @@ The | |||
111 | argument is of type | 112 | argument is of type |
112 | .Dv ACTION , | 113 | .Dv ACTION , |
113 | an enumeration type which defines the following values: | 114 | an 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 |
116 | Insert | 117 | Insert |
117 | .Fa item | 118 | .Fa item |
@@ -145,7 +146,7 @@ returns no value. | |||
145 | .Pp | 146 | .Pp |
146 | If successful, the | 147 | If successful, the |
147 | .Fn hsearch | 148 | .Fn hsearch |
148 | function returns a pointer to hash table entry matching | 149 | function returns a pointer to a hash table entry matching |
149 | the provided key. | 150 | the provided key. |
150 | If the action is | 151 | If the action is |
151 | .Dv FIND | 152 | .Dv FIND |
@@ -178,7 +179,7 @@ Insufficient memory is available. | |||
178 | .Sh STANDARDS | 179 | .Sh STANDARDS |
179 | The | 180 | The |
180 | .Fn hcreate , | 181 | .Fn hcreate , |
181 | .Fn hdestroy | 182 | .Fn hdestroy , |
182 | and | 183 | and |
183 | .Fn hsearch | 184 | .Fn hsearch |
184 | functions conform to | 185 | functions 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 | |||
52 | manipulate queues built from doubly linked lists. | 52 | manipulate queues built from doubly linked lists. |
53 | The queue can be either circular or linear. | 53 | The queue can be either circular or linear. |
54 | Each element in the queue must be of the following form: | 54 | Each element in the queue must be of the following form: |
55 | .Bd -literal | 55 | .Bd -literal -offset indent |
56 | struct qelem { | 56 | struct 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 | |||
77 | function removes | 77 | function removes |
78 | .Fa elem | 78 | .Fa elem |
79 | from the queue. | 79 | from the queue. |
80 | .Sh DIAGNOSTICS | 80 | .Pp |
81 | These functions are not atomic unless that machine architecture allows it. | 81 | These 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 |
97 | and | 97 | and |
98 | .Fn remque | 98 | .Fn remque |
99 | functions are derived from the insque and remque instructions on a | 99 | functions are derived from the |
100 | .Li insque | ||
101 | and | ||
102 | .Li remque | ||
103 | instructions on the | ||
100 | .Tn VAX . | 104 | .Tn VAX . |
101 | They first appeared in | 105 | They 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 |
45 | The functions | 47 | The functions |
46 | .Fn lsearch , | 48 | .Fn lsearch |
47 | and | 49 | and |
48 | .Fn lfind | 50 | .Fn lfind |
49 | provide basic linear searching functionality. | 51 | provide basic linear searching functionality. |
@@ -86,7 +88,7 @@ will return a null pointer and | |||
86 | .Fn lsearch | 88 | .Fn lsearch |
87 | will add it to the array. | 89 | will add it to the array. |
88 | When an element is added to the array by | 90 | When an element is added to the array by |
89 | .Fn lsearch | 91 | .Fn lsearch , |
90 | the location referenced by the argument | 92 | the location referenced by the argument |
91 | .Fa nelp | 93 | .Fa nelp |
92 | is incremented by one. | 94 | is 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 | |||
293 | is set to | 293 | is set to |
294 | .Er ENOMEM . | 294 | .Er ENOMEM . |
295 | .Sh ENVIRONMENT | 295 | .Sh ENVIRONMENT |
296 | .Bl -tag -width Ev | ||
297 | .It Ev MALLOC_OPTIONS | ||
296 | See above. | 298 | See 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 | |||
318 | the process. | 321 | the process. |
319 | .Pp | 322 | .Pp |
320 | Here is a brief description of the error messages and what they mean: | 323 | Here 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 |
324 | has been compiled with | 327 | has been compiled with |
@@ -346,7 +349,7 @@ internal freelist has been stomped on. | |||
346 | .El | 349 | .El |
347 | .Pp | 350 | .Pp |
348 | Here is a brief description of the warning messages and what they mean: | 351 | Here 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. |
351 | There was an attempt to free a chunk that had already been freed. | 354 | There 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. | |||
367 | Nothing has ever been allocated, yet something is being freed or | 370 | Nothing has ever been allocated, yet something is being freed or |
368 | realloc'ed. | 371 | realloc'ed. |
369 | .It Dq modified (chunk-/page-) pointer. | 372 | .It Dq modified (chunk-/page-) pointer. |
370 | The pointer passed to free or realloc has been modified. | 373 | The pointer passed to |
374 | .Fn free | ||
375 | or | ||
376 | .Fn realloc | ||
377 | has been modified. | ||
371 | .It Dq pointer to wrong page. | 378 | .It Dq pointer to wrong page. |
372 | The pointer that | 379 | The 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. | |||
71 | The | 71 | The |
72 | .Fa table | 72 | .Fa table |
73 | argument is useful for applications which wish to sort different characters | 73 | argument is useful for applications which wish to sort different characters |
74 | equally, for example, providing a table with the same weights | 74 | equally; for example, providing a table with the same weights |
75 | for A-Z as for a-z will result in a case-insensitive sort. | 75 | for A\-Z as for a\-z will result in a case-insensitive sort. |
76 | If | 76 | If |
77 | .Fa table | 77 | .Fa table |
78 | is | 78 | is |