summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-02-15 21:22:26 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-02-15 21:22:26 +0000
commite0da410f5dc107ee2055dd5ea54f577480c9208c (patch)
tree128827524650d91104a672b892c5428b1bed4084 /lib/libc
parent1bb8ac7c51454e52f47df1ea7d8de7073fdbe189 (diff)
socklen_t is used in struct msghdr and struct cmsghdr
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/recv.225
1 files changed, 12 insertions, 13 deletions
diff --git a/lib/libc/sys/recv.2 b/lib/libc/sys/recv.2
index 3f3e071e797..e1a2bb86e72 100644
--- a/lib/libc/sys/recv.2
+++ b/lib/libc/sys/recv.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: recv.2,v 1.12 1999/02/15 19:04:21 millert Exp $
+.\" $OpenBSD: recv.2,v 1.13 1999/02/15 21:22:25 millert Exp $
.\" $NetBSD: recv.2,v 1.6 1995/02/27 12:36:08 cgd Exp $
.\"
.\" Copyright (c) 1983, 1990, 1991, 1993
@@ -149,13 +149,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 */
+ caddr_t msg_name; /* optional address */
+ socklen_t 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 */
+ socklen_t msg_controllen; /* ancillary data buffer len */
+ int msg_flags; /* flags on received message */
};
.Ed
.Pp
@@ -179,11 +179,10 @@ 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 */
-/* followed by
- u_char cmsg_data[]; */
+ 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[]; */
};
.Ed
.Pp