get*by*_r() are deprecated on most platforms and there use is highly non-portable, lots of different API's. Why are we adding compatability for deprecated functions? Mark -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: Mark_Andrews@isc.org
Mark Andrews <Mark_Andrews@isc.org> wrote:> get*by*_r() are deprecated on most platforms and there use > is highly non-portable, lots of different API's. > > Why are we adding compatability for deprecated functions?I was wondering the same thing, especially because it causes a lot of packages that where compiled on later FreeBSD 6.x version not to work on earlier FreeBSD 6.x versions. Fabian -- http://www.fabiankeil.de/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060926/3eaa4783/signature.pgp
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