From 42d5d7751a91472cd262f239cd373b7ae4d97078 Mon Sep 17 00:00:00 2001 From: "Simon L. B. Nielsen" Date: Thu, 28 Dec 2006 17:10:23 +0000 Subject: [PATCH] Catch up struct cmsghdr and struct msghdr in the manual page with the actual structures in socket.h (which were updated 7 years ago). MFC after: 1 week --- lib/libc/sys/recv.2 | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/libc/sys/recv.2 b/lib/libc/sys/recv.2 index 676d49d734e1..2446bc3bd292 100644 --- a/lib/libc/sys/recv.2 +++ b/lib/libc/sys/recv.2 @@ -173,13 +173,13 @@ This structure has the following form, as defined in .Pp .Bd -literal struct msghdr { - caddr_t msg_name; /* optional address */ - u_int msg_namelen; /* size of address */ - struct iovec *msg_iov; /* scatter/gather array */ - u_int msg_iovlen; /* # elements in msg_iov */ - caddr_t msg_control; /* ancillary data, see below */ - u_int msg_controllen; /* ancillary data buffer len */ - int msg_flags; /* flags on received message */ + void *msg_name; /* optional address */ + socklen_t msg_namelen; /* size of address */ + struct iovec *msg_iov; /* scatter/gather array */ + int msg_iovlen; /* # elements in msg_iov */ + void *msg_control; /* ancillary data, see below */ + socklen_t msg_controllen;/* ancillary data buffer len */ + int msg_flags; /* flags on received message */ }; .Ed .Pp @@ -207,11 +207,11 @@ or other miscellaneous ancillary data. The messages are of the form: .Bd -literal struct cmsghdr { - u_int cmsg_len; /* data byte count, including hdr */ - int cmsg_level; /* originating protocol */ - int cmsg_type; /* protocol-specific type */ + socklen_t cmsg_len; /* data byte count, including hdr */ + int cmsg_level; /* originating protocol */ + int cmsg_type; /* protocol-specific type */ /* followed by - u_char cmsg_data[]; */ + u_char cmsg_data[]; */ }; .Ed .Pp