diff options
author | Nikola Forró <nforro@redhat.com> | 2016-03-11 11:02:37 +0100 |
---|---|---|
committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-03-11 16:51:07 +0100 |
commit | aea45daeee742f66b764f5d3ecb7317172ce2894 (patch) | |
tree | 1fe767632f3cbeb40d21b4e19cc2c2af01fc6c7d | |
parent | 1182ddb36a98d086c3a8c046dfccaa424402b6f6 (diff) | |
download | man-pages-aea45daeee742f66b764f5d3ecb7317172ce2894.tar.gz |
recv.2, cmsg.3: Fix type of cmsg_len member of cmsghdr structure
The type shown for cmsg_len member of cmsghdr structure is socklen_t,
but the actual type used by glibc and the kernel is size_t.
The information was obtained from glibc source code:
http://bit.ly/21m1RMp
Signed-off-by: Nikola Forró <nforro@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r-- | man2/recv.2 | 6 | ||||
-rw-r--r-- | man3/cmsg.3 | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/man2/recv.2 b/man2/recv.2 index 33265b8e06..0491880da6 100644 --- a/man2/recv.2 +++ b/man2/recv.2 @@ -393,9 +393,9 @@ The messages are of the form: .nf struct cmsghdr { - socklen_t cmsg_len; /* data byte count, including hdr */ - int cmsg_level; /* originating protocol */ - int cmsg_type; /* protocol-specific type */ + size_t cmsg_len; /* data byte count, including hdr */ + int cmsg_level; /* originating protocol */ + int cmsg_type; /* protocol-specific type */ /* followed by unsigned char cmsg_data[]; */ }; diff --git a/man3/cmsg.3 b/man3/cmsg.3 index f1c4459dd4..f97333fb80 100644 --- a/man3/cmsg.3 +++ b/man3/cmsg.3 @@ -28,9 +28,9 @@ CMSG_ALIGN, CMSG_SPACE, CMSG_NXTHDR, CMSG_FIRSTHDR \- access ancillary data .sp .nf struct cmsghdr { - socklen_t cmsg_len; /* data byte count, including header */ - int cmsg_level; /* originating protocol */ - int cmsg_type; /* protocol-specific type */ + size_t cmsg_len; /* data byte count, including header */ + int cmsg_level; /* originating protocol */ + int cmsg_type; /* protocol-specific type */ /* followed by unsigned char cmsg_data[]; */ }; .fi |