Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/man/man4 Fix some typos and incorrect idioms with the ...



details:   https://anonhg.NetBSD.org/src/rev/680f53ef2e50
branches:  trunk
changeset: 765114:680f53ef2e50
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu May 19 21:16:45 2011 +0000

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

Add a couple cross-references too.

ok wiz

diffstat:

 share/man/man4/ip.4   |  11 ++++++-----
 share/man/man4/ip6.4  |   5 +++--
 share/man/man4/tp.4   |   6 +++---
 share/man/man4/unix.4 |   7 ++++---
 4 files changed, 16 insertions(+), 13 deletions(-)

diffs (141 lines):

diff -r 5837c83f4e06 -r 680f53ef2e50 share/man/man4/ip.4
--- a/share/man/man4/ip.4       Thu May 19 21:06:01 2011 +0000
+++ b/share/man/man4/ip.4       Thu May 19 21:16:45 2011 +0000
@@ -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 ,
diff -r 5837c83f4e06 -r 680f53ef2e50 share/man/man4/ip6.4
--- a/share/man/man4/ip6.4      Thu May 19 21:06:01 2011 +0000
+++ b/share/man/man4/ip6.4      Thu May 19 21:16:45 2011 +0000
@@ -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 ,
diff -r 5837c83f4e06 -r 680f53ef2e50 share/man/man4/tp.4
--- a/share/man/man4/tp.4       Thu May 19 21:06:01 2011 +0000
+++ b/share/man/man4/tp.4       Thu May 19 21:16:45 2011 +0000
@@ -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
diff -r 5837c83f4e06 -r 680f53ef2e50 share/man/man4/unix.4
--- a/share/man/man4/unix.4     Thu May 19 21:06:01 2011 +0000
+++ b/share/man/man4/unix.4     Thu May 19 21:16:45 2011 +0000
@@ -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"



Home | Main Index | Thread Index | Old Index