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 Date: Tue, 11 Oct 2005 17:12:32 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: gethostbyname_r Message-ID: <20051011211232.GA27947@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com References: <20051011143306 DOT GI12938 AT calimero DOT vinschen DOT de> <434BE411 DOT 4060702 AT air2web DOT com> <20051011164433 DOT GB15402 AT trixie DOT casa DOT cgf DOT cx> <434C2688 DOT 9070001 AT familiehaase DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <434C2688.9070001@familiehaase.de> User-Agent: Mutt/1.5.8i On Tue, Oct 11, 2005 at 10:54:32PM +0200, Gerrit P. Haase wrote: >Christopher Faylor wrote: >>On Tue, Oct 11, 2005 at 12:10:57PM -0400, 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. >> >>AFAIK, cygwin's gethostbyname is thread safe in all cases. > >So it would be possible to add an alias gethostbyname_r == gethostbyname >to the list of exported functions? Take a look at the man page for gethostbyname and gethostbyname_r. cgf -- 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/