summaryrefslogtreecommitdiff
path: root/src/lib/libc/net
diff options
context:
space:
mode:
authorcloder <>2005-02-25 03:12:44 +0000
committercloder <>2005-02-25 03:12:44 +0000
commit67e61f91527f9a7cd6b9a16b0cd90dd56607d505 (patch)
treed9de936ffc7fa9289c7b7f61b1db414900ba94fa /src/lib/libc/net
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@
Diffstat (limited to 'src/lib/libc/net')
-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
3 files changed, 7 insertions, 7 deletions
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