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
This commit is contained in:
Simon L. B. Nielsen 2006-12-28 17:10:23 +00:00
parent 81ccbd956d
commit 42d5d7751a

View File

@ -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