Module Name:    src
Committed By:   riastradh
Date:           Thu May 19 21:16:45 UTC 2011

Modified Files:
        src/share/man/man4: ip.4 ip6.4 tp.4 unix.4

Log Message:
Fix some typos and incorrect idioms with the cmsg botch^WAPI.

Add a couple cross-references too.

ok wiz


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/share/man/man4/ip.4
cvs rdiff -u -r1.27 -r1.28 src/share/man/man4/ip6.4
cvs rdiff -u -r1.18 -r1.19 src/share/man/man4/tp.4
cvs rdiff -u -r1.21 -r1.22 src/share/man/man4/unix.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man4/ip.4
diff -u src/share/man/man4/ip.4:1.30 src/share/man/man4/ip.4:1.31
--- src/share/man/man4/ip.4:1.30	Mon Jul 20 07:58:54 2009
+++ src/share/man/man4/ip.4	Thu May 19 21:16:45 2011
@@ -1,4 +1,4 @@
-.\"	$NetBSD: ip.4,v 1.30 2009/07/20 07:58:54 wiz Exp $
+.\"	$NetBSD: ip.4,v 1.31 2011/05/19 21:16:45 riastradh Exp $
 .\"
 .\" Copyright (c) 1983, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"     @(#)ip.4	8.2 (Berkeley) 11/30/93
 .\"
-.Dd July 19, 2009
+.Dd May 19, 2011
 .Dt IP 4
 .Os
 .Sh NAME
@@ -142,7 +142,7 @@
 address.
 The cmsghdr fields have the following values:
 .Bd -literal
-cmsg_len = sizeof(struct in_addr)
+cmsg_len = CMSG_LEN(sizeof(struct in_addr))
 cmsg_level = IPPROTO_IP
 cmsg_type = IP_RECVDSTADDR
 .Ed
@@ -162,7 +162,7 @@
 that contains a cmsghdr structure followed by the struct sockaddr_dl.
 The cmsghdr fields have the following values:
 .Bd -literal
-cmsg_len = sizeof(struct sockaddr_dl)
+cmsg_len = CMSG_LEN(sizeof(struct sockaddr_dl))
 cmsg_level = IPPROTO_IP
 cmsg_type = IP_RECVIF
 .Ed
@@ -182,7 +182,7 @@
 value.
 The cmsghdr fields have the following values:
 .Bd -literal
-cmsg_len = sizeof(uint8_t)
+cmsg_len = CMSG_LEN(sizeof(uint8_t))
 cmsg_level = IPPROTO_IP
 cmsg_type = IP_RECVTTL
 .Ed
@@ -437,6 +437,7 @@
 .Xr getsockopt 2 ,
 .Xr recv 2 ,
 .Xr send 2 ,
+.Xr CMSG_DATA 3 ,
 .Xr ipsec_set_policy 3 ,
 .Xr icmp 4 ,
 .Xr inet 4 ,

Index: src/share/man/man4/ip6.4
diff -u src/share/man/man4/ip6.4:1.27 src/share/man/man4/ip6.4:1.28
--- src/share/man/man4/ip6.4:1.27	Mon Aug 20 16:08:55 2007
+++ src/share/man/man4/ip6.4	Thu May 19 21:16:45 2011
@@ -1,4 +1,4 @@
-.\"	$NetBSD: ip6.4,v 1.27 2007/08/20 16:08:55 perry Exp $
+.\"	$NetBSD: ip6.4,v 1.28 2011/05/19 21:16:45 riastradh Exp $
 .\"	$KAME: ip6.4,v 1.23 2005/01/11 05:56:25 itojun Exp $
 .\"	$OpenBSD: ip6.4,v 1.21 2005/01/06 03:50:46 itojun Exp $
 .\"
@@ -28,7 +28,7 @@
 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
-.Dd December 5, 2006
+.Dd May 19, 2011
 .Dt IP6 4
 .Os
 .Sh NAME
@@ -645,6 +645,7 @@
 .Xr send 2 ,
 .Xr setsockopt 2 ,
 .Xr socket 2 ,
+.Xr CMSG_DATA 3 ,
 .\" .Xr inet6_option_space 3 ,
 .\" .Xr inet6_rthdr_space 3 ,
 .Xr if_nametoindex 3 ,

Index: src/share/man/man4/tp.4
diff -u src/share/man/man4/tp.4:1.18 src/share/man/man4/tp.4:1.19
--- src/share/man/man4/tp.4:1.18	Mon Mar 22 18:58:31 2010
+++ src/share/man/man4/tp.4	Thu May 19 21:16:45 2011
@@ -1,4 +1,4 @@
-.\"	$NetBSD: tp.4,v 1.18 2010/03/22 18:58:31 joerg Exp $
+.\"	$NetBSD: tp.4,v 1.19 2011/05/19 21:16:45 riastradh Exp $
 .\"
 .\" Copyright (c) 1990, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -204,7 +204,7 @@
 will contain
 .Dv SOL_TRANSPORT
 for the
-.Va csmg_level
+.Va cmsg_level
 and
 .Dv TPOPT_CONN_DATA
 for
@@ -229,7 +229,7 @@
 must contain
 .Dv SOL_TRANSPORT
 for
-.Va csmg_level
+.Va cmsg_level
 and
 .Dv TPOPT_DISC_DATA
 for

Index: src/share/man/man4/unix.4
diff -u src/share/man/man4/unix.4:1.21 src/share/man/man4/unix.4:1.22
--- src/share/man/man4/unix.4:1.21	Mon Mar 22 18:58:31 2010
+++ src/share/man/man4/unix.4	Thu May 19 21:16:45 2011
@@ -1,4 +1,4 @@
-.\"	$NetBSD: unix.4,v 1.21 2010/03/22 18:58:31 joerg Exp $
+.\"	$NetBSD: unix.4,v 1.22 2011/05/19 21:16:45 riastradh Exp $
 .\"
 .\" Copyright (c) 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"     @(#)unix.4	8.1 (Berkeley) 6/9/93
 .\"
-.Dd October 30, 2006
+.Dd May 19, 2011
 .Dt UNIX 4
 .Os
 .Sh NAME
@@ -229,7 +229,7 @@
 of groups.
 The cmsghdr fields have the following values:
 .Bd -literal
-cmsg_len = sizeof(struct cmsghdr) + SOCKCREDSIZE(ngroups)
+cmsg_len = CMSG_LEN(SOCKCREDSIZE(ngroups))
 cmsg_level = SOL_SOCKET
 cmsg_type = SCM_CREDS
 .Ed
@@ -265,6 +265,7 @@
 .Ed
 .Sh SEE ALSO
 .Xr socket 2 ,
+.Xr CMSG_DATA 3 ,
 .Xr intro 4
 .Rs
 .%T "An Introductory 4.4BSD Interprocess Communication Tutorial"

Reply via email to