summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorsimon <simon@FreeBSD.org>2006-12-28 17:10:23 +0000
committersimon <simon@FreeBSD.org>2006-12-28 17:10:23 +0000
commit86e98cb2fb67de61d0e132a583f86422c0f31015 (patch)
tree19555fef6c0ecd1cbe8155c55bd09cbf1f611908 /lib
parentb4f4c288b87ee8f3270c19ee4f1dff4cd776d4ed (diff)
downloadFreeBSD-src-86e98cb2fb67de61d0e132a583f86422c0f31015.zip
FreeBSD-src-86e98cb2fb67de61d0e132a583f86422c0f31015.tar.gz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/recv.222
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/libc/sys/recv.2 b/lib/libc/sys/recv.2
index 676d49d..2446bc3 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
OpenPOWER on IntegriCloud