Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <8389af8b05091922474cdb39f4@mail.gmail.com>
Date: Tue, 20 Sep 2005 14:47:40 +0900
From: Hiroki Sakagami <sakagami@gmail.com>
Reply-To: sakagami@gmail.com
To: cygwin@cygwin.com
Subject: Re: libc header questions
In-Reply-To: <20050917085546.GR5555@calimero.vinschen.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
References: <8389af8b0509162308b57a819@mail.gmail.com> 	 <20050917085546.GR5555@calimero.vinschen.de>
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j8K5m7K6009412

On 9/17/05, Corinna Vinschen <corinna-cygwin@cygwin.com> wrote:
> On Sep 17 15:08, Hiroki Sakagami wrote:
> > Hi,
> >
> > I have two questions about libc include headers.
> >
> >   1. Is there any reason socklen_t is defined as a macro
> >      instead of typedef in <cygwin/socket.h>?
> 
> Is this a problem for you?  The reasons are plain historical.  I don't
> see that converting it to a typedef would add a lot functionality, though.

I had a (not-opensourced) package whose autoconf detection of
socklen_t failed.  But that's a problem of that package.  I can
live with a macro definition now.

> >   2. In <arpa/inet.h>, inet_ntop() is not consistent with POSIX.
> >
> >        Cygwin: const char *inet_ntop(int, const void *, char *, size_t);
> >        POSIX:  const char *inet_ntop(int, const void *, char *, socklen_t);
> >        http://www.opengroup.org/onlinepubs/009695399/functions/inet_ntop.html
> >
> >      Is this going to be fixed in the future version?
> 
> I've changed this in CVS.  Thanks for the hint.

OK, thanks.

--
Hiroki Sakagami

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


