Date: Wed, 27 Sep 2006 16:44:16 -0500 (CDT) From: "Sean C. Farley" <sean-freebsd@farley.org> To: Mark Andrews <Mark_Andrews@isc.org> Cc: stable@freebsd.org Subject: Re: Is there any good reason for get*by*_r()? Message-ID: <20060927163639.F58991@thor.farley.org> In-Reply-To: <200609260216.k8Q2Gtxk045006@drugs.dv.isc.org> References: <200609260216.k8Q2Gtxk045006@drugs.dv.isc.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 26 Sep 2006, Mark Andrews wrote: > get*by*_r() are deprecated on most platforms and there use > is highly non-portable, lots of different API's. My understanding was that FreeBSD has copied the Linux version of the API. > Why are we adding compatability for deprecated functions? Some projects use them and do not consider get*by*() functions to be thread-safe (FreeBSD's are). They would naturally impose extra locking on the get*by*() calls for safety. devel/nspr which Firefox uses for its network calls. I also saw that games/sauerbraten uses them. Of course, these projects should replace these calls with getaddrinfo(). Sean -- sean-freebsd@farley.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060927163639.F58991>