Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-IronPort-AV: i="3.97,218,1125892800"; d="scan'208"; a="132710011:sNHT22464000" To: cygwin AT cygwin DOT com Subject: Re: 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 In-Reply-To: <20051012204234.GA9218@calimero.vinschen.de> (Corinna Vinschen's message of "Wed, 12 Oct 2005 22:42:34 +0200") References: <20051012204234 DOT GA9218 AT calimero DOT vinschen DOT de> Mail-Followup-To: cygwin AT cygwin DOT com Date: Sat, 15 Oct 2005 22:23:20 -0400 Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain > * Corinna Vinschen [2005-10-12 22:42:34 +0200]: > > On Oct 12 15:17, Sam Steingold wrote: >> 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 */ >> }; > > This is the so called "older" implementation of struct msghdr as > defined up to 4.2BSD. Since it's quite useless so far and since I am not sure I quite understand what you mean by useless. is cygwin implementation somehow deficient? > applications using this structure should accomodate the old > implementation anyway, I don't see a good reason to change this right > now. the only reason applications have to accommodate the old implementation is that some unixes still stick with it. if you switch to the posix msghdr, I, for one, would not have to accomodate the old implementation. -- Sam Steingold (http://www.podval.org/~sds) running w2k Two wrongs don't make a right, but three rights make a left. -- 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/