diff options
author | cloder <> | 2005-02-25 03:12:44 +0000 |
---|---|---|
committer | cloder <> | 2005-02-25 03:12:44 +0000 |
commit | 67e61f91527f9a7cd6b9a16b0cd90dd56607d505 (patch) | |
tree | d9de936ffc7fa9289c7b7f61b1db414900ba94fa | |
parent | 52fef3b7d084fa9e2d0ac9187917b0ede8d9d58d (diff) | |
download | openbsd-67e61f91527f9a7cd6b9a16b0cd90dd56607d505.tar.gz openbsd-67e61f91527f9a7cd6b9a16b0cd90dd56607d505.tar.bz2 openbsd-67e61f91527f9a7cd6b9a16b0cd90dd56607d505.zip |
Be correct in our man pages when talking about NUL termination (that is,
termination with '\0') vs. null termination.
Input from krw@, jaredy@, jmc@. OK deraadt@
-rw-r--r-- | src/lib/libc/crypt/crypt.3 | 8 | ||||
-rw-r--r-- | src/lib/libc/net/getrrsetbyname.3 | 4 | ||||
-rw-r--r-- | src/lib/libc/net/if_indextoname.3 | 6 | ||||
-rw-r--r-- | src/lib/libc/net/link_addr.3 | 4 | ||||
-rw-r--r-- | src/lib/libc/stdlib/a64l.3 | 4 | ||||
-rw-r--r-- | src/lib/libc/stdlib/getsubopt.3 | 4 | ||||
-rw-r--r-- | src/lib/libc/string/bstring.3 | 4 | ||||
-rw-r--r-- | src/lib/libc/string/strcasecmp.3 | 4 | ||||
-rw-r--r-- | src/lib/libc/string/strcat.3 | 6 | ||||
-rw-r--r-- | src/lib/libc/string/strcmp.3 | 4 | ||||
-rw-r--r-- | src/lib/libc/string/strcoll.3 | 4 | ||||
-rw-r--r-- | src/lib/libc/string/strcpy.3 | 10 | ||||
-rw-r--r-- | src/lib/libc/string/strcspn.3 | 4 | ||||
-rw-r--r-- | src/lib/libc/string/strdup.3 | 4 | ||||
-rw-r--r-- | src/lib/libc/string/string.3 | 6 | ||||
-rw-r--r-- | src/lib/libc/string/strmode.3 | 4 | ||||
-rw-r--r-- | src/lib/libc/string/strpbrk.3 | 4 | ||||
-rw-r--r-- | src/lib/libc/string/strspn.3 | 4 | ||||
-rw-r--r-- | src/lib/libc/string/strstr.3 | 6 | ||||
-rw-r--r-- | src/lib/libc/string/strtok.3 | 4 |
20 files changed, 49 insertions, 49 deletions
diff --git a/src/lib/libc/crypt/crypt.3 b/src/lib/libc/crypt/crypt.3 index 9908750f07..2bc03fdd41 100644 --- a/src/lib/libc/crypt/crypt.3 +++ b/src/lib/libc/crypt/crypt.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: crypt.3,v 1.22 2004/04/06 11:00:32 djm Exp $ | 1 | .\" $OpenBSD: crypt.3,v 1.23 2005/02/25 03:12:43 cloder Exp $ |
2 | .\" | 2 | .\" |
3 | .\" FreeSec: libcrypt | 3 | .\" FreeSec: libcrypt |
4 | .\" | 4 | .\" |
@@ -72,7 +72,7 @@ stronger hashing algorithms. | |||
72 | The first argument to | 72 | The first argument to |
73 | .Fn crypt | 73 | .Fn crypt |
74 | is a | 74 | is a |
75 | .Dv null Ns -terminated | 75 | .Dv NUL Ns -terminated |
76 | string, typically a user's typed password. | 76 | string, typically a user's typed password. |
77 | The second is in one of three forms: | 77 | The second is in one of three forms: |
78 | if it begins with an underscore | 78 | if it begins with an underscore |
@@ -198,8 +198,8 @@ The DES key is used to encrypt a 64-bit constant using | |||
198 | iterations of | 198 | iterations of |
199 | .Tn DES . | 199 | .Tn DES . |
200 | The value returned is a | 200 | The value returned is a |
201 | .Dv null Ns -terminated | 201 | .Dv NUL Ns -terminated |
202 | string, 20 or 13 bytes (plus null) in length, consisting of the | 202 | string, 20 or 13 bytes (plus NUL) in length, consisting of the |
203 | .Ar setting | 203 | .Ar setting |
204 | followed by the encoded 64-bit encryption. | 204 | followed by the encoded 64-bit encryption. |
205 | .Pp | 205 | .Pp |
diff --git a/src/lib/libc/net/getrrsetbyname.3 b/src/lib/libc/net/getrrsetbyname.3 index 65a4635724..621ff31b81 100644 --- a/src/lib/libc/net/getrrsetbyname.3 +++ b/src/lib/libc/net/getrrsetbyname.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: getrrsetbyname.3,v 1.12 2004/07/10 05:34:21 jakob Exp $ | 1 | .\" $OpenBSD: getrrsetbyname.3,v 1.13 2005/02/25 03:12:43 cloder Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (C) 2000, 2001 Internet Software Consortium. | 3 | .\" Copyright (C) 2000, 2001 Internet Software Consortium. |
4 | .\" | 4 | .\" |
@@ -36,7 +36,7 @@ gets a set of resource records associated with a | |||
36 | and | 36 | and |
37 | .Fa rdtype . | 37 | .Fa rdtype . |
38 | .Fa hostname | 38 | .Fa hostname |
39 | is a pointer a to null-terminated string. | 39 | is a pointer to a NUL-terminated string. |
40 | The | 40 | The |
41 | .Fa flags | 41 | .Fa flags |
42 | field is currently unused and must be zero. | 42 | field is currently unused and must be zero. |
diff --git a/src/lib/libc/net/if_indextoname.3 b/src/lib/libc/net/if_indextoname.3 index 30293dcdf2..e7bfde4900 100644 --- a/src/lib/libc/net/if_indextoname.3 +++ b/src/lib/libc/net/if_indextoname.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: if_indextoname.3,v 1.7 2003/08/08 09:26:02 jmc Exp $ | 1 | .\" $OpenBSD: if_indextoname.3,v 1.8 2005/02/25 03:12:43 cloder Exp $ |
2 | .\" Copyright (c) 1983, 1991, 1993 | 2 | .\" Copyright (c) 1983, 1991, 1993 |
3 | .\" The Regents of the University of California. All rights reserved. | 3 | .\" The Regents of the University of California. All rights reserved. |
4 | .\" | 4 | .\" |
@@ -72,7 +72,7 @@ returned. | |||
72 | .Pf ( Dv IF_NAMESIZE | 72 | .Pf ( Dv IF_NAMESIZE |
73 | is also defined in | 73 | is also defined in |
74 | .Aq Pa net/if.h | 74 | .Aq Pa net/if.h |
75 | and its value includes a terminating null byte at the end of the | 75 | and its value includes a terminating NUL byte at the end of the |
76 | interface name.) | 76 | interface name.) |
77 | This pointer is also the return value of the function. | 77 | This pointer is also the return value of the function. |
78 | If there is no interface corresponding to the specified index, | 78 | If there is no interface corresponding to the specified index, |
@@ -90,7 +90,7 @@ and is as follows: | |||
90 | .Bd -literal -offset | 90 | .Bd -literal -offset |
91 | struct if_nameindex { | 91 | struct if_nameindex { |
92 | unsigned int if_index; /* 1, 2, ... */ | 92 | unsigned int if_index; /* 1, 2, ... */ |
93 | char *if_name; /* null terminated name: "le0", ... */ | 93 | char *if_name; /* NUL-terminated name: "le0", ... */ |
94 | }; | 94 | }; |
95 | .Ed | 95 | .Ed |
96 | .Pp | 96 | .Pp |
diff --git a/src/lib/libc/net/link_addr.3 b/src/lib/libc/net/link_addr.3 index b34afafc7e..0f8787e191 100644 --- a/src/lib/libc/net/link_addr.3 +++ b/src/lib/libc/net/link_addr.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: link_addr.3,v 1.9 2004/07/15 23:40:39 jmc Exp $ | 1 | .\" $OpenBSD: link_addr.3,v 1.10 2005/02/25 03:12:43 cloder Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 1993 | 3 | .\" Copyright (c) 1993 |
4 | .\" The Regents of the University of California. All rights reserved. | 4 | .\" The Regents of the University of California. All rights reserved. |
@@ -90,7 +90,7 @@ represents an Ethernet address | |||
90 | to be transmitted on the first Lance Ethernet interface. | 90 | to be transmitted on the first Lance Ethernet interface. |
91 | .Sh RETURN VALUES | 91 | .Sh RETURN VALUES |
92 | .Fn link_ntoa | 92 | .Fn link_ntoa |
93 | always returns a null-terminated string. | 93 | always returns a NUL-terminated string. |
94 | .Fn link_addr | 94 | .Fn link_addr |
95 | has no return value. | 95 | has no return value. |
96 | (See | 96 | (See |
diff --git a/src/lib/libc/stdlib/a64l.3 b/src/lib/libc/stdlib/a64l.3 index de70d0af71..f2957a7ad4 100644 --- a/src/lib/libc/stdlib/a64l.3 +++ b/src/lib/libc/stdlib/a64l.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: a64l.3,v 1.8 2003/06/17 21:56:24 millert Exp $ | 1 | .\" $OpenBSD: a64l.3,v 1.9 2005/02/25 03:12:44 cloder Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com> | 3 | .\" Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com> |
4 | .\" | 4 | .\" |
@@ -60,7 +60,7 @@ for 38-63. | |||
60 | .Pp | 60 | .Pp |
61 | The | 61 | The |
62 | .Fn a64l | 62 | .Fn a64l |
63 | function takes a pointer to a null-terminated radix-64 representation | 63 | function takes a pointer to a NUL-terminated radix-64 representation |
64 | and returns a corresponding 32-bit value. | 64 | and returns a corresponding 32-bit value. |
65 | If the string pointed to by | 65 | If the string pointed to by |
66 | .Fa s | 66 | .Fa s |
diff --git a/src/lib/libc/stdlib/getsubopt.3 b/src/lib/libc/stdlib/getsubopt.3 index 8513cfb66a..6cb4975ced 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.8 2004/01/23 23:08:46 jmc Exp $ | 1 | .\" $OpenBSD: getsubopt.3,v 1.9 2005/02/25 03:12:44 cloder 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. |
@@ -78,7 +78,7 @@ On return from | |||
78 | .Fn getsubopt , | 78 | .Fn getsubopt , |
79 | .Fa optionp | 79 | .Fa optionp |
80 | will be set to point to the start of the next token in the string, | 80 | will be set to point to the start of the next token in the string, |
81 | or the null at the end of the string if no more tokens are present. | 81 | or the NUL at the end of the string if no more tokens are present. |
82 | The external variable | 82 | The external variable |
83 | .Fa suboptarg | 83 | .Fa suboptarg |
84 | will be set to point to the start of the current token, or | 84 | will be set to point to the start of the current token, or |
diff --git a/src/lib/libc/string/bstring.3 b/src/lib/libc/string/bstring.3 index d33a3c1e79..bcb5ac98fc 100644 --- a/src/lib/libc/string/bstring.3 +++ b/src/lib/libc/string/bstring.3 | |||
@@ -27,7 +27,7 @@ | |||
27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
28 | .\" SUCH DAMAGE. | 28 | .\" SUCH DAMAGE. |
29 | .\" | 29 | .\" |
30 | .\" $OpenBSD: bstring.3,v 1.6 2004/02/10 14:35:35 jmc Exp $ | 30 | .\" $OpenBSD: bstring.3,v 1.7 2005/02/25 03:12:44 cloder Exp $ |
31 | .\" | 31 | .\" |
32 | .Dd April 19, 1991 | 32 | .Dd April 19, 1991 |
33 | .Dt BSTRING 3 | 33 | .Dt BSTRING 3 |
@@ -57,7 +57,7 @@ | |||
57 | .Fn memset "void *b" "int c" "size_t len" | 57 | .Fn memset "void *b" "int c" "size_t len" |
58 | .Sh DESCRIPTION | 58 | .Sh DESCRIPTION |
59 | These functions operate on variable length strings of bytes. | 59 | These functions operate on variable length strings of bytes. |
60 | They do not check for terminating null bytes as the routines | 60 | They do not check for terminating NUL bytes as the routines |
61 | listed in | 61 | listed in |
62 | .Xr string 3 | 62 | .Xr string 3 |
63 | do. | 63 | do. |
diff --git a/src/lib/libc/string/strcasecmp.3 b/src/lib/libc/string/strcasecmp.3 index e1f5d416d1..c4253e5afd 100644 --- a/src/lib/libc/string/strcasecmp.3 +++ b/src/lib/libc/string/strcasecmp.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: strcasecmp.3,v 1.8 2003/06/02 20:18:38 millert Exp $ | 1 | .\" $OpenBSD: strcasecmp.3,v 1.9 2005/02/25 03:12:44 cloder 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. |
@@ -49,7 +49,7 @@ The | |||
49 | .Fn strcasecmp | 49 | .Fn strcasecmp |
50 | and | 50 | and |
51 | .Fn strncasecmp | 51 | .Fn strncasecmp |
52 | functions compare the null-terminated strings | 52 | functions compare the NUL-terminated strings |
53 | .Fa s1 | 53 | .Fa s1 |
54 | and | 54 | and |
55 | .Fa s2 | 55 | .Fa s2 |
diff --git a/src/lib/libc/string/strcat.3 b/src/lib/libc/string/strcat.3 index 5b878c3e8c..89d368c3fb 100644 --- a/src/lib/libc/string/strcat.3 +++ b/src/lib/libc/string/strcat.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: strcat.3,v 1.9 2003/06/02 20:18:38 millert Exp $ | 32 | .\" $OpenBSD: strcat.3,v 1.10 2005/02/25 03:12:44 cloder Exp $ |
33 | .\" | 33 | .\" |
34 | .Dd July 8, 1997 | 34 | .Dd July 8, 1997 |
35 | .Dt STRCAT 3 | 35 | .Dt STRCAT 3 |
@@ -49,9 +49,9 @@ The | |||
49 | .Fn strcat | 49 | .Fn strcat |
50 | and | 50 | and |
51 | .Fn strncat | 51 | .Fn strncat |
52 | functions append a copy of the null-terminated string | 52 | functions append a copy of the NUL-terminated string |
53 | .Fa append | 53 | .Fa append |
54 | to the end of the null-terminated string | 54 | to the end of the NUL-terminated string |
55 | .Fa s , | 55 | .Fa s , |
56 | then add a terminating | 56 | then add a terminating |
57 | .Ql \e0 . | 57 | .Ql \e0 . |
diff --git a/src/lib/libc/string/strcmp.3 b/src/lib/libc/string/strcmp.3 index d025b9cf7c..953181e8de 100644 --- a/src/lib/libc/string/strcmp.3 +++ b/src/lib/libc/string/strcmp.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: strcmp.3,v 1.7 2003/06/02 20:18:38 millert Exp $ | 32 | .\" $OpenBSD: strcmp.3,v 1.8 2005/02/25 03:12:44 cloder Exp $ |
33 | .\" | 33 | .\" |
34 | .Dd June 29, 1991 | 34 | .Dd June 29, 1991 |
35 | .Dt STRCMP 3 | 35 | .Dt STRCMP 3 |
@@ -49,7 +49,7 @@ The | |||
49 | .Fn strcmp | 49 | .Fn strcmp |
50 | and | 50 | and |
51 | .Fn strncmp | 51 | .Fn strncmp |
52 | functions lexicographically compare the null-terminated strings | 52 | functions lexicographically compare the NUL-terminated strings |
53 | .Fa s1 | 53 | .Fa s1 |
54 | and | 54 | and |
55 | .Fa s2 . | 55 | .Fa s2 . |
diff --git a/src/lib/libc/string/strcoll.3 b/src/lib/libc/string/strcoll.3 index fe0ff35510..d1a4e60dc6 100644 --- a/src/lib/libc/string/strcoll.3 +++ b/src/lib/libc/string/strcoll.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: strcoll.3,v 1.5 2003/06/02 20:18:38 millert Exp $ | 32 | .\" $OpenBSD: strcoll.3,v 1.6 2005/02/25 03:12:44 cloder Exp $ |
33 | .\" | 33 | .\" |
34 | .Dd June 29, 1991 | 34 | .Dd June 29, 1991 |
35 | .Dt STRCOLL 3 | 35 | .Dt STRCOLL 3 |
@@ -44,7 +44,7 @@ | |||
44 | .Sh DESCRIPTION | 44 | .Sh DESCRIPTION |
45 | The | 45 | The |
46 | .Fn strcoll | 46 | .Fn strcoll |
47 | function lexicographically compares the null-terminated strings | 47 | function lexicographically compares the NUL-terminated strings |
48 | .Fa s1 | 48 | .Fa s1 |
49 | and | 49 | and |
50 | .Fa s2 | 50 | .Fa s2 |
diff --git a/src/lib/libc/string/strcpy.3 b/src/lib/libc/string/strcpy.3 index 8304508df6..504f42f2ba 100644 --- a/src/lib/libc/string/strcpy.3 +++ b/src/lib/libc/string/strcpy.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: strcpy.3,v 1.12 2003/06/02 20:18:38 millert Exp $ | 32 | .\" $OpenBSD: strcpy.3,v 1.13 2005/02/25 03:12:44 cloder Exp $ |
33 | .\" | 33 | .\" |
34 | .Dd June 29, 1991 | 34 | .Dd June 29, 1991 |
35 | .Dt STRCPY 3 | 35 | .Dt STRCPY 3 |
@@ -98,12 +98,12 @@ to | |||
98 | .Dq abcdef | 98 | .Dq abcdef |
99 | and does | 99 | and does |
100 | .Em not | 100 | .Em not |
101 | null terminate | 101 | NUL terminate |
102 | .Va chararray | 102 | .Va chararray |
103 | because the source string is >= the length parameter. | 103 | because the source string is >= the length parameter. |
104 | .Fn strncpy | 104 | .Fn strncpy |
105 | .Em only | 105 | .Em only |
106 | null terminates the destination string when the length of the source | 106 | NUL terminates the destination string when the length of the source |
107 | string is less than the length parameter. | 107 | string is less than the length parameter. |
108 | .Bd -literal -offset indent | 108 | .Bd -literal -offset indent |
109 | (void)strncpy(chararray, "abcdefgh", 6); | 109 | (void)strncpy(chararray, "abcdefgh", 6); |
@@ -113,12 +113,12 @@ The following copies as many characters from | |||
113 | .Va input | 113 | .Va input |
114 | to | 114 | to |
115 | .Va buf | 115 | .Va buf |
116 | as will fit and null terminates the result. | 116 | as will fit and NUL terminates the result. |
117 | Because | 117 | Because |
118 | .Fn strncpy | 118 | .Fn strncpy |
119 | does | 119 | does |
120 | .Em not | 120 | .Em not |
121 | guarantee to null terminate the string itself, we must do this by hand. | 121 | guarantee to NUL terminate the string itself, we must do this by hand. |
122 | .Bd -literal -offset indent | 122 | .Bd -literal -offset indent |
123 | char buf[BUFSIZ]; | 123 | char buf[BUFSIZ]; |
124 | 124 | ||
diff --git a/src/lib/libc/string/strcspn.3 b/src/lib/libc/string/strcspn.3 index 6dfe1b276e..c28d99a901 100644 --- a/src/lib/libc/string/strcspn.3 +++ b/src/lib/libc/string/strcspn.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: strcspn.3,v 1.6 2003/06/02 20:18:38 millert Exp $ | 32 | .\" $OpenBSD: strcspn.3,v 1.7 2005/02/25 03:12:44 cloder Exp $ |
33 | .\" | 33 | .\" |
34 | .Dd June 29, 1991 | 34 | .Dd June 29, 1991 |
35 | .Dt STRCSPN 3 | 35 | .Dt STRCSPN 3 |
@@ -44,7 +44,7 @@ | |||
44 | .Sh DESCRIPTION | 44 | .Sh DESCRIPTION |
45 | The | 45 | The |
46 | .Fn strcspn | 46 | .Fn strcspn |
47 | function spans the initial part of the null-terminated string | 47 | function spans the initial part of the NUL-terminated string |
48 | .Fa s | 48 | .Fa s |
49 | as long as the characters from | 49 | as long as the characters from |
50 | .Fa s | 50 | .Fa s |
diff --git a/src/lib/libc/string/strdup.3 b/src/lib/libc/string/strdup.3 index 59b77f7a16..a434312c42 100644 --- a/src/lib/libc/string/strdup.3 +++ b/src/lib/libc/string/strdup.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: strdup.3,v 1.12 2003/06/02 20:18:38 millert Exp $ | 1 | .\" $OpenBSD: strdup.3,v 1.13 2005/02/25 03:12:44 cloder 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. |
@@ -54,7 +54,7 @@ is returned. | |||
54 | .Sh EXAMPLES | 54 | .Sh EXAMPLES |
55 | The following will point | 55 | The following will point |
56 | .Va p | 56 | .Va p |
57 | to an allocated area of memory containing the null-terminated string | 57 | to an allocated area of memory containing the NUL-terminated string |
58 | .Qq foobar : | 58 | .Qq foobar : |
59 | .Bd -literal -offset indent | 59 | .Bd -literal -offset indent |
60 | char *p; | 60 | char *p; |
diff --git a/src/lib/libc/string/string.3 b/src/lib/libc/string/string.3 index 89034ac24c..690cf4dbda 100644 --- a/src/lib/libc/string/string.3 +++ b/src/lib/libc/string/string.3 | |||
@@ -27,7 +27,7 @@ | |||
27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
28 | .\" SUCH DAMAGE. | 28 | .\" SUCH DAMAGE. |
29 | .\" | 29 | .\" |
30 | .\" $OpenBSD: string.3,v 1.10 2004/02/09 20:53:12 jmc Exp $ | 30 | .\" $OpenBSD: string.3,v 1.11 2005/02/25 03:12:44 cloder Exp $ |
31 | .\" | 31 | .\" |
32 | .Dd April 19, 1991 | 32 | .Dd April 19, 1991 |
33 | .Dt STRING 3 | 33 | .Dt STRING 3 |
@@ -84,11 +84,11 @@ | |||
84 | .Sh DESCRIPTION | 84 | .Sh DESCRIPTION |
85 | The string functions | 85 | The string functions |
86 | manipulate strings terminated by a | 86 | manipulate strings terminated by a |
87 | null byte. | 87 | NUL byte. |
88 | .Pp | 88 | .Pp |
89 | See the specific manual pages for more information. | 89 | See the specific manual pages for more information. |
90 | For manipulating variable length generic objects as byte | 90 | For manipulating variable length generic objects as byte |
91 | strings (without the null byte check), see | 91 | strings (without the NUL-byte check), see |
92 | .Xr bstring 3 . | 92 | .Xr bstring 3 . |
93 | .Pp | 93 | .Pp |
94 | Except as noted in their specific manual pages, | 94 | Except as noted in their specific manual pages, |
diff --git a/src/lib/libc/string/strmode.3 b/src/lib/libc/string/strmode.3 index bc45c4ce1f..3a7a4bb3fa 100644 --- a/src/lib/libc/string/strmode.3 +++ b/src/lib/libc/string/strmode.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: strmode.3,v 1.11 2003/09/02 18:24:21 jmc Exp $ | 1 | .\" $OpenBSD: strmode.3,v 1.12 2005/02/25 03:12:44 cloder 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. |
@@ -48,7 +48,7 @@ function converts a file | |||
48 | .Xr stat 2 ) | 48 | .Xr stat 2 ) |
49 | into a symbolic string which is stored in the location referenced by | 49 | into a symbolic string which is stored in the location referenced by |
50 | .Fa bp . | 50 | .Fa bp . |
51 | This stored string is eleven characters in length plus a trailing null byte. | 51 | This stored string is eleven characters in length plus a trailing NUL byte. |
52 | .Pp | 52 | .Pp |
53 | The first character is the inode type, and will be one of the following: | 53 | The first character is the inode type, and will be one of the following: |
54 | .Pp | 54 | .Pp |
diff --git a/src/lib/libc/string/strpbrk.3 b/src/lib/libc/string/strpbrk.3 index 7e54f9de54..e91776a0ca 100644 --- a/src/lib/libc/string/strpbrk.3 +++ b/src/lib/libc/string/strpbrk.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: strpbrk.3,v 1.6 2003/06/02 20:18:38 millert Exp $ | 32 | .\" $OpenBSD: strpbrk.3,v 1.7 2005/02/25 03:12:44 cloder Exp $ |
33 | .\" | 33 | .\" |
34 | .Dd June 29, 1991 | 34 | .Dd June 29, 1991 |
35 | .Dt STRPBRK 3 | 35 | .Dt STRPBRK 3 |
@@ -44,7 +44,7 @@ | |||
44 | .Sh DESCRIPTION | 44 | .Sh DESCRIPTION |
45 | The | 45 | The |
46 | .Fn strpbrk | 46 | .Fn strpbrk |
47 | function locates in the null-terminated string | 47 | function locates in the NUL-terminated string |
48 | .Fa s | 48 | .Fa s |
49 | the first occurrence of any character in the string | 49 | the first occurrence of any character in the string |
50 | .Fa charset | 50 | .Fa charset |
diff --git a/src/lib/libc/string/strspn.3 b/src/lib/libc/string/strspn.3 index 54077b810c..5dc7e9746a 100644 --- a/src/lib/libc/string/strspn.3 +++ b/src/lib/libc/string/strspn.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: strspn.3,v 1.7 2003/06/02 20:18:38 millert Exp $ | 32 | .\" $OpenBSD: strspn.3,v 1.8 2005/02/25 03:12:44 cloder Exp $ |
33 | .\" | 33 | .\" |
34 | .Dd June 29, 1991 | 34 | .Dd June 29, 1991 |
35 | .Dt STRSPN 3 | 35 | .Dt STRSPN 3 |
@@ -44,7 +44,7 @@ | |||
44 | .Sh DESCRIPTION | 44 | .Sh DESCRIPTION |
45 | The | 45 | The |
46 | .Fn strspn | 46 | .Fn strspn |
47 | function spans the initial part of the null-terminated string | 47 | function spans the initial part of the NUL-terminated string |
48 | .Fa s | 48 | .Fa s |
49 | as long as the characters from | 49 | as long as the characters from |
50 | .Fa s | 50 | .Fa s |
diff --git a/src/lib/libc/string/strstr.3 b/src/lib/libc/string/strstr.3 index 47777dd89f..64396e7885 100644 --- a/src/lib/libc/string/strstr.3 +++ b/src/lib/libc/string/strstr.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: strstr.3,v 1.6 2003/06/02 20:18:38 millert Exp $ | 32 | .\" $OpenBSD: strstr.3,v 1.7 2005/02/25 03:12:44 cloder Exp $ |
33 | .\" | 33 | .\" |
34 | .Dd June 29, 1991 | 34 | .Dd June 29, 1991 |
35 | .Dt STRSTR 3 | 35 | .Dt STRSTR 3 |
@@ -44,9 +44,9 @@ | |||
44 | .Sh DESCRIPTION | 44 | .Sh DESCRIPTION |
45 | The | 45 | The |
46 | .Fn strstr | 46 | .Fn strstr |
47 | function locates the first occurrence of the null-terminated string | 47 | function locates the first occurrence of the NUL-terminated string |
48 | .Fa little | 48 | .Fa little |
49 | in the null-terminated string | 49 | in the NUL-terminated string |
50 | .Fa big . | 50 | .Fa big . |
51 | If | 51 | If |
52 | .Fa little | 52 | .Fa little |
diff --git a/src/lib/libc/string/strtok.3 b/src/lib/libc/string/strtok.3 index 29eea4847e..03a93980ab 100644 --- a/src/lib/libc/string/strtok.3 +++ b/src/lib/libc/string/strtok.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: strtok.3,v 1.17 2004/01/20 06:06:48 millert Exp $ | 32 | .\" $OpenBSD: strtok.3,v 1.18 2005/02/25 03:12:44 cloder Exp $ |
33 | .\" | 33 | .\" |
34 | .Dd June 29, 1991 | 34 | .Dd June 29, 1991 |
35 | .Dt STRTOK 3 | 35 | .Dt STRTOK 3 |
@@ -52,7 +52,7 @@ This interface is obsoleted by | |||
52 | .Pp | 52 | .Pp |
53 | The | 53 | The |
54 | .Fn strtok | 54 | .Fn strtok |
55 | function is used to isolate sequential tokens in a null-terminated string, | 55 | function is used to isolate sequential tokens in a NUL-terminated string, |
56 | .Fa str . | 56 | .Fa str . |
57 | These tokens are separated in the string by at least one of the | 57 | These tokens are separated in the string by at least one of the |
58 | characters in | 58 | characters in |