From: Nicholas Hunt <nhunt-GmWTxIRN22iJaUV4rX00uodd74u8MsAO@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [patch] send.2, recv.2: Fixed type of msg_controllen in struct msghdr
Date: Wed, 18 Aug 2010 18:13:46 -0700 [thread overview]
Message-ID: <20100818181346.7dee6951@Semtex> (raw)
[-- Attachment #1: Type: text/plain, Size: 1549 bytes --]
Hello,
This patch fixes the type of msg_controllen in the struct msghdr
definition given in send.2 and recv.2 to match the definition in glibc
and the kernel. Applies cleanly to the current head of git (sha hash:
55d56b71...).
-Nick
diff --git a/man2/recv.2 b/man2/recv.2
index 9431b5c..d5eaf33 100644
--- a/man2/recv.2
+++ b/man2/recv.2
@@ -304,7 +304,7 @@ struct msghdr {
struct iovec *msg_iov; /* scatter/gather array */
size_t msg_iovlen; /* # elements in msg_iov */
void *msg_control; /* ancillary data, see below */
- socklen_t msg_controllen; /* ancillary data buffer len */
+ size_t msg_controllen; /* ancillary data buffer len */
int msg_flags; /* flags on received message */
};
.fi
diff --git a/man2/send.2 b/man2/send.2
index c99b77a..c9e76b0 100644
--- a/man2/send.2
+++ b/man2/send.2
@@ -250,7 +250,7 @@ struct msghdr {
struct iovec *msg_iov; /* scatter/gather array */
size_t msg_iovlen; /* # elements in msg_iov */
void *msg_control; /* ancillary data, see below */
- socklen_t msg_controllen; /* ancillary data buffer len */
+ size_t msg_controllen; /* ancillary data buffer len */
int msg_flags; /* flags on received message */
};
.fi
--
Computer Science and Engineering, University of Washington
E-mail : nhunt-GmWTxIRN22iJaUV4rX00uodd74u8MsAO@public.gmane.org
PGP Key : http://students.washington.edu/nhunt/cs.asc
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next reply other threads:[~2010-08-19 1:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-19 1:13 Nicholas Hunt [this message]
2010-08-29 6:30 ` [patch] send.2, recv.2: Fixed type of msg_controllen in struct msghdr Michael Kerrisk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100818181346.7dee6951@Semtex \
--to=nhunt-gmwtxirn22ijauv4rx00uodd74u8msao@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.