summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcloder <>2005-02-25 03:12:44 +0000
committercloder <>2005-02-25 03:12:44 +0000
commit67e61f91527f9a7cd6b9a16b0cd90dd56607d505 (patch)
treed9de936ffc7fa9289c7b7f61b1db414900ba94fa
parent52fef3b7d084fa9e2d0ac9187917b0ede8d9d58d (diff)
downloadopenbsd-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.38
-rw-r--r--src/lib/libc/net/getrrsetbyname.34
-rw-r--r--src/lib/libc/net/if_indextoname.36
-rw-r--r--src/lib/libc/net/link_addr.34
-rw-r--r--src/lib/libc/stdlib/a64l.34
-rw-r--r--src/lib/libc/stdlib/getsubopt.34
-rw-r--r--src/lib/libc/string/bstring.34
-rw-r--r--src/lib/libc/string/strcasecmp.34
-rw-r--r--src/lib/libc/string/strcat.36
-rw-r--r--src/lib/libc/string/strcmp.34
-rw-r--r--src/lib/libc/string/strcoll.34
-rw-r--r--src/lib/libc/string/strcpy.310
-rw-r--r--src/lib/libc/string/strcspn.34
-rw-r--r--src/lib/libc/string/strdup.34
-rw-r--r--src/lib/libc/string/string.36
-rw-r--r--src/lib/libc/string/strmode.34
-rw-r--r--src/lib/libc/string/strpbrk.34
-rw-r--r--src/lib/libc/string/strspn.34
-rw-r--r--src/lib/libc/string/strstr.36
-rw-r--r--src/lib/libc/string/strtok.34
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.
72The first argument to 72The first argument to
73.Fn crypt 73.Fn crypt
74is a 74is a
75.Dv null Ns -terminated 75.Dv NUL Ns -terminated
76string, typically a user's typed password. 76string, typically a user's typed password.
77The second is in one of three forms: 77The second is in one of three forms:
78if it begins with an underscore 78if it begins with an underscore
@@ -198,8 +198,8 @@ The DES key is used to encrypt a 64-bit constant using
198iterations of 198iterations of
199.Tn DES . 199.Tn DES .
200The value returned is a 200The value returned is a
201.Dv null Ns -terminated 201.Dv NUL Ns -terminated
202string, 20 or 13 bytes (plus null) in length, consisting of the 202string, 20 or 13 bytes (plus NUL) in length, consisting of the
203.Ar setting 203.Ar setting
204followed by the encoded 64-bit encryption. 204followed 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
36and 36and
37.Fa rdtype . 37.Fa rdtype .
38.Fa hostname 38.Fa hostname
39is a pointer a to null-terminated string. 39is a pointer to a NUL-terminated string.
40The 40The
41.Fa flags 41.Fa flags
42field is currently unused and must be zero. 42field 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
73is also defined in 73is also defined in
74.Aq Pa net/if.h 74.Aq Pa net/if.h
75and its value includes a terminating null byte at the end of the 75and its value includes a terminating NUL byte at the end of the
76interface name.) 76interface name.)
77This pointer is also the return value of the function. 77This pointer is also the return value of the function.
78If there is no interface corresponding to the specified index, 78If 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
91struct if_nameindex { 91struct 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
90to be transmitted on the first Lance Ethernet interface. 90to be transmitted on the first Lance Ethernet interface.
91.Sh RETURN VALUES 91.Sh RETURN VALUES
92.Fn link_ntoa 92.Fn link_ntoa
93always returns a null-terminated string. 93always returns a NUL-terminated string.
94.Fn link_addr 94.Fn link_addr
95has no return value. 95has 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
61The 61The
62.Fn a64l 62.Fn a64l
63function takes a pointer to a null-terminated radix-64 representation 63function takes a pointer to a NUL-terminated radix-64 representation
64and returns a corresponding 32-bit value. 64and returns a corresponding 32-bit value.
65If the string pointed to by 65If 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
80will be set to point to the start of the next token in the string, 80will be set to point to the start of the next token in the string,
81or the null at the end of the string if no more tokens are present. 81or the NUL at the end of the string if no more tokens are present.
82The external variable 82The external variable
83.Fa suboptarg 83.Fa suboptarg
84will be set to point to the start of the current token, or 84will 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
59These functions operate on variable length strings of bytes. 59These functions operate on variable length strings of bytes.
60They do not check for terminating null bytes as the routines 60They do not check for terminating NUL bytes as the routines
61listed in 61listed in
62.Xr string 3 62.Xr string 3
63do. 63do.
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
50and 50and
51.Fn strncasecmp 51.Fn strncasecmp
52functions compare the null-terminated strings 52functions compare the NUL-terminated strings
53.Fa s1 53.Fa s1
54and 54and
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
50and 50and
51.Fn strncat 51.Fn strncat
52functions append a copy of the null-terminated string 52functions append a copy of the NUL-terminated string
53.Fa append 53.Fa append
54to the end of the null-terminated string 54to the end of the NUL-terminated string
55.Fa s , 55.Fa s ,
56then add a terminating 56then 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
50and 50and
51.Fn strncmp 51.Fn strncmp
52functions lexicographically compare the null-terminated strings 52functions lexicographically compare the NUL-terminated strings
53.Fa s1 53.Fa s1
54and 54and
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
45The 45The
46.Fn strcoll 46.Fn strcoll
47function lexicographically compares the null-terminated strings 47function lexicographically compares the NUL-terminated strings
48.Fa s1 48.Fa s1
49and 49and
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
99and does 99and does
100.Em not 100.Em not
101null terminate 101NUL terminate
102.Va chararray 102.Va chararray
103because the source string is >= the length parameter. 103because the source string is >= the length parameter.
104.Fn strncpy 104.Fn strncpy
105.Em only 105.Em only
106null terminates the destination string when the length of the source 106NUL terminates the destination string when the length of the source
107string is less than the length parameter. 107string 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
114to 114to
115.Va buf 115.Va buf
116as will fit and null terminates the result. 116as will fit and NUL terminates the result.
117Because 117Because
118.Fn strncpy 118.Fn strncpy
119does 119does
120.Em not 120.Em not
121guarantee to null terminate the string itself, we must do this by hand. 121guarantee to NUL terminate the string itself, we must do this by hand.
122.Bd -literal -offset indent 122.Bd -literal -offset indent
123char buf[BUFSIZ]; 123char 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
45The 45The
46.Fn strcspn 46.Fn strcspn
47function spans the initial part of the null-terminated string 47function spans the initial part of the NUL-terminated string
48.Fa s 48.Fa s
49as long as the characters from 49as 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
55The following will point 55The following will point
56.Va p 56.Va p
57to an allocated area of memory containing the null-terminated string 57to 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
60char *p; 60char *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
85The string functions 85The string functions
86manipulate strings terminated by a 86manipulate strings terminated by a
87null byte. 87NUL byte.
88.Pp 88.Pp
89See the specific manual pages for more information. 89See the specific manual pages for more information.
90For manipulating variable length generic objects as byte 90For manipulating variable length generic objects as byte
91strings (without the null byte check), see 91strings (without the NUL-byte check), see
92.Xr bstring 3 . 92.Xr bstring 3 .
93.Pp 93.Pp
94Except as noted in their specific manual pages, 94Except 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 )
49into a symbolic string which is stored in the location referenced by 49into a symbolic string which is stored in the location referenced by
50.Fa bp . 50.Fa bp .
51This stored string is eleven characters in length plus a trailing null byte. 51This stored string is eleven characters in length plus a trailing NUL byte.
52.Pp 52.Pp
53The first character is the inode type, and will be one of the following: 53The 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
45The 45The
46.Fn strpbrk 46.Fn strpbrk
47function locates in the null-terminated string 47function locates in the NUL-terminated string
48.Fa s 48.Fa s
49the first occurrence of any character in the string 49the 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
45The 45The
46.Fn strspn 46.Fn strspn
47function spans the initial part of the null-terminated string 47function spans the initial part of the NUL-terminated string
48.Fa s 48.Fa s
49as long as the characters from 49as 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
45The 45The
46.Fn strstr 46.Fn strstr
47function locates the first occurrence of the null-terminated string 47function locates the first occurrence of the NUL-terminated string
48.Fa little 48.Fa little
49in the null-terminated string 49in the NUL-terminated string
50.Fa big . 50.Fa big .
51If 51If
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
53The 53The
54.Fn strtok 54.Fn strtok
55function is used to isolate sequential tokens in a null-terminated string, 55function is used to isolate sequential tokens in a NUL-terminated string,
56.Fa str . 56.Fa str .
57These tokens are separated in the string by at least one of the 57These tokens are separated in the string by at least one of the
58characters in 58characters in