aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-03-11 16:58:07 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-03-11 16:58:07 +0100
commit1893b64807cd9a2e3bd656d8575622f10cf47e66 (patch)
treecac07d769e2a02d6fc914a9f7ff1c67e81c2f80e
parent4ecc4f795fb0a65a51b754d9fe778465c14665d2 (diff)
downloadman-pages-1893b64807cd9a2e3bd656d8575622f10cf47e66.tar.gz
recv.2, cmsg.3: Note that cmsg_len is typed as socklen_t in POSIX.1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/recv.23
-rw-r--r--man3/cmsg.33
2 files changed, 4 insertions, 2 deletions
diff --git a/man2/recv.2 b/man2/recv.2
index 1d83a02736..af5e744e0e 100644
--- a/man2/recv.2
+++ b/man2/recv.2
@@ -393,7 +393,8 @@ The messages are of the form:
.nf
struct cmsghdr {
- size_t cmsg_len; /* Data byte count, including header */
+ size_t cmsg_len; /* Data byte count, including header
+ (type is socklen_t in POSIX) */
int cmsg_level; /* Originating protocol */
int cmsg_type; /* Protocol-specific type */
/* followed by
diff --git a/man3/cmsg.3 b/man3/cmsg.3
index 732b68a1b4..4553ed2851 100644
--- a/man3/cmsg.3
+++ b/man3/cmsg.3
@@ -28,7 +28,8 @@ CMSG_ALIGN, CMSG_SPACE, CMSG_NXTHDR, CMSG_FIRSTHDR \- access ancillary data
.sp
.nf
struct cmsghdr {
- size_t cmsg_len; /* Data byte count, including header */
+ size_t cmsg_len; /* Data byte count, including header
+ (type is socklen_t in POSIX) */
int cmsg_level; /* Originating protocol */
int cmsg_type; /* Protocol-specific type */
/* followed by