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>
This commit is contained in:
Michael Kerrisk 2016-03-11 16:58:07 +01:00
parent 4ecc4f795f
commit 1893b64807
2 changed files with 4 additions and 2 deletions

View File

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

View File

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