resolv: Move __res_context_hostalias 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)
commitbe5773e1668ab62e980b58c68c3ffd0fd65e31af
tree5f96d76963ac508f60bb24742c20424fdbdfe0c2
parent7131727c6ba451e1c5bf075194c7adc9292906c4
resolv: Move __res_context_hostalias into its own file and into libc

And reformat it to GNU style.  Remove the unecessary setbuf call.
Use __fgets_unlocked for PLT avoidance; no locking is required here.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
resolv/Makefile
resolv/Versions
resolv/res_context_hostalias.c [new file with mode: 0644]
resolv/res_query.c
resolv/resolv-internal.h