This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gethostbyname_r


On Oct 11 12:10, Richard Campbell wrote:
> Brian Ford wrote:
> >
> >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
> 
> 1) Resolving a numeric host is more common than whatever (all - "most 
> all") is, IMO.
> 2) The difference between most all and all is usually horrible to track 
> down.

gethostbyname_r is a non-standard interface anyway.  It only exists in
glibc.  The portable way to do this is to create a wrapper function in
the application which handles access from multiple threads.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat, Inc.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]