cvs commit: src/lib/libc/net getproto.c getprotoent.c
getprotoname.c netdb_private.h
Hajimu UMEMOTO
ume at FreeBSD.ORG
Wed Apr 20 01:37:54 PDT 2005
Hi,
>>>>> On Tue, 19 Apr 2005 17:20:19 -0400
>>>>> Garrett Wollman <wollman at csail.mit.edu> said:
wollman> If they are generally useful they should be globally visible, with the
wollman> standard FreeBSD namespace protections. (In this case, this probably
wollman> means that the __ versions stay as they are, and non-__ versions can
wollman> be defined using aliases in a separate compilation unit.)
I'm not sure they are really useful. I think they are preffered to
use for thread applications. However, our get{serv,proto}*() is now
thread-safe. So, we don't need to use get{serv,proto}*_r() to have
just thread-safeness.
Indeed, I started this work to call getservby*_r() from getaddrinfo()
and getnameinfo(). But, after all, I didn't modify getaddrinfo() and
getnameinfo() to call getservby*_r() directly.
Further, getserv*_r() takes struct servent_data for its argument. So,
once we decide to expose them, we will need to pay attention to an ABI
compatibility in the future. So, we should be careful, IMHO.
Sincerely,
--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume at mahoroba.org ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/
More information about the cvs-src
mailing list