| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| To: | cygwin AT cygwin DOT com |
| Subject: | struct msghdr in socket.h is wrong |
| Mail-Copies-To: | never |
| Reply-To: | sds AT gnu DOT org |
| X-Attribution: | Sam |
| X-Disclaimer: | You should not expect anyone to agree with me. |
| From: | Sam Steingold <sds AT gnu DOT org> |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Date: | Wed, 12 Oct 2005 15:17:03 -0400 |
| Message-ID: | <ur7aqwno0.fsf@gnu.org> |
| User-Agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) |
| MIME-Version: | 1.0 |
cyswin/socket.h:
struct msghdr
{
void * msg_name; /* Socket name */
int msg_namelen; /* Length of name */
struct iovec * msg_iov; /* Data blocks */
int msg_iovlen; /* Number of blocks */
void * msg_accrights; /* Per protocol magic (eg BSD file descriptor passing) */
int msg_accrightslen; /* Length of rights list */
};
http://www.opengroup.org/onlinepubs/009695399/basedefs/sys/socket.h.html:
void *msg_name Optional address.
socklen_t msg_namelen Size of address.
struct iovec *msg_iov Scatter/gather array.
int msg_iovlen Members in msg_iov.
void *msg_control Ancillary data; see below.
socklen_t msg_controllen Ancillary data buffer len.
int msg_flags Flags on received message.
problems:
1. msg_flags is missing
2. msg_control is renamed msg_accrights
3. msg_controllen is renamed msg_accrightslen
--
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.camera.org> <http://www.palestinefacts.org/>
<http://www.memri.org/> <http://www.jihadwatch.org/> <http://truepeace.org>
Takeoffs are optional. Landings are mandatory.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |