diff options
author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2006-03-21 16:11:11 +0000 |
---|---|---|
committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2006-03-21 16:11:11 +0000 |
commit | 5342d17f09a8eec0477b117bc74a90921ac2f03e (patch) | |
tree | e821dd9b60869dd20f6817bbe100b41cd574f673 /include/netdb.h | |
parent | cbfec51a4b15a278763360c8b51536c3ecaa9d14 (diff) | |
download | src-5342d17f09a8eec0477b117bc74a90921ac2f03e.tar.gz src-5342d17f09a8eec0477b117bc74a90921ac2f03e.zip |
Update the resolver in libc to BIND9's one.
Since, res_sendsigned(3) and the friends use MD5 functions, it is
hard to include them without having MD5 functions in libc. So,
res_sendsigned(3) is not merged into libc.
Since, res_update(3) in BIND9 is not binary compatible with our
res_update(3), res_update(3) is leaved as is, except some
necessary modifications.
The res_update(3) and the friends are not essential part of the
resolver. They are not defined in resolv.h but defined in
res_update.h separately in BIND9. Further, they are not called from
our tree. So, I hide them from our resolv.h, but leave them only
for binary backward compatibility (perhaps, no one calls them).
Since, struct __res_state_ext is not exposed in BIND9, I hide it
from our resolv.h. And, global variable _res_ext is removed. It
breaks binary backward compatibility. But, since it is not used from
outside of our libc, I think it is safe.
Reviewed by: arch@ (no objection)
Notes
Notes:
svn path=/head/; revision=156960
Diffstat (limited to 'include/netdb.h')
-rw-r--r-- | include/netdb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/netdb.h b/include/netdb.h index 2e7caae369af..9d1b005ee1f7 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -87,7 +87,7 @@ typedef __uint32_t uint32_t; #define _PATH_PROTOCOLS "/etc/protocols" #define _PATH_SERVICES "/etc/services" -#define h_errno (*__h_error()) +#define h_errno (*__h_errno()) /* * Structures returned by network data base library. All addresses are @@ -257,7 +257,7 @@ void setservent(int); */ /* DO NOT USE THESE, THEY ARE SUBJECT TO CHANGE AND ARE NOT PORTABLE!!! */ -int * __h_error(void); +int * __h_errno(void); __END_DECLS #endif /* !_NETDB_H_ */ |