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
Date: Tue, 11 Oct 2005 11:00:16 -0500
From: Brian Ford <Brian.Ford@flightsafety.com>
Reply-To: cygwin@cygwin.com
To: cygwin@cygwin.com
Subject: Re: gethostbyname_r
In-Reply-To: <Pine.LNX.4.62.0510111037280.8152@ns.pyerotechnics.com>
Message-ID: <Pine.CYG.4.58.0510111051180.1904@PC1163-8460-XP.flightsafety.com>
References: <Pine.LNX.4.62.0510111013570.8152@ns.pyerotechnics.com>   <20051011143306.GI12938@calimero.vinschen.de> <Pine.LNX.4.62.0510111037280.8152@ns.pyerotechnics.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-IsSubscribed: yes

On Tue, 11 Oct 2005, Jason Pyeron wrote:
> On Tue, 11 Oct 2005, Corinna Vinschen wrote:
> > On Oct 11 10:15, Jason Pyeron wrote:
> >> I am tring to port an application, but I cant seem to find the glibc2
> >> gethostbyname_r function.
> >
> > It doesn't exist on Cygwin.
>
> so is this the only way to go? has any one verified the code?
>
> http://www.cygwin.com/ml/cygwin/2004-04/msg00532.html
>
> how come it never made it in?
>
> http://www.cygwin.com/ml/cygwin/2004-04/msg00540.html
>
> or since it is just calling the windows api, can I
>
> #define gethostbyname_r gethostbyname

There is almost no need for gethostbyname_r on Cygwin since its sole
purpose is to create a thread safe interface.  In most all cases, Cygwin's
gethostbyname is thread safe.

http://www.cygwin.com/ml/cygwin/2004-05/msg00202.html

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...

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

