From 2fbe5860d33ca2318b35ea6d31beefa381b4ac8a Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 19 Jul 2021 07:55:27 +0200 Subject: resolv: Rename res_comp.c to res-name-checking.c and move into libc This reflects what the remaining functions in the file do. The __res_dnok, __res_hnok, __res_mailok, __res_ownok were moved with the script, using --no-new-version, and turned into compat symbols. __libc_res_dnok@@GLIBC_PRIVATE and __libc_res_hnok@@GLIBC_PRIVATE are added for internal use, to avoid accidentally binding to compatibility symbols. The new public symbols res_dnok, res_hnok, res_mailok, res_ownok were added using make update-all-abi. Reviewed-by: Carlos O'Donell Tested-by: Carlos O'Donell --- include/resolv.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/resolv.h b/include/resolv.h index 378b36d612..0c8db600d6 100644 --- a/include/resolv.h +++ b/include/resolv.h @@ -44,8 +44,6 @@ libresolv_hidden_proto (_sethtent) libresolv_hidden_proto (_gethtent) libresolv_hidden_proto (_gethtbyaddr) libresolv_hidden_proto (_gethtbyname2) -libresolv_hidden_proto (__res_hnok) -libresolv_hidden_proto (__res_dnok) libresolv_hidden_proto (__putlong) libresolv_hidden_proto (__putshort) libresolv_hidden_proto (__p_cdnname) @@ -67,6 +65,10 @@ extern __typeof (dn_expand) __libc_dn_expand; libc_hidden_proto (__libc_dn_expand) extern __typeof (dn_skipname) __libc_dn_skipname; libc_hidden_proto (__libc_dn_skipname) +extern __typeof (res_dnok) __libc_res_dnok; +libc_hidden_proto (__libc_res_dnok) +extern __typeof (res_hnok) __libc_res_hnok; +libc_hidden_proto (__libc_res_hnok) # endif /* _RESOLV_H_ && !_ISOMAC */ #endif -- cgit v1.2.3