resolv: Move ns_makecanon into its own file, and into libc
authorFlorian Weimer <fweimer@redhat.com>
Mon, 19 Jul 2021 05:55:27 +0000 (07:55 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 19 Jul 2021 05:56:21 +0000 (07:56 +0200)
commit08d4a98070c4c4f69c6d04f483d105121effba08
tree8385e0e0976dbef1d62a28cb7dca51bbf47e3331
parent17d0407a5cac70652f3544e59505c1712b36fd1a
resolv: Move ns_makecanon into its own file, and into libc

But only as an internal symbol, __libc_ns_makecanon.  The libresolv
ABI is preserved.  This is because the function is deprecated, and
it does not make sense to add new symbol versions for deprecated
functions.

Also reformat the implementation to GNU style.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
include/arpa/nameser.h
resolv/Makefile
resolv/Versions
resolv/ns_makecanon.c [new file with mode: 0644]
resolv/ns_samedomain.c
resolv/resolv-deprecated.c [new file with mode: 0644]