diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-07-19 07:55:27 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-07-19 07:56:21 +0200 |
commit | 9515126f905d9322fc6d2b1a3d95539a0a499f48 (patch) | |
tree | c481d0a9d5fabf17dcdc17f3c25cf3e7063187d3 /resolv/resolv-internal.h | |
parent | 2fbe5860d33ca2318b35ea6d31beefa381b4ac8a (diff) | |
download | glibc-9515126f905d9322fc6d2b1a3d95539a0a499f48.tar.gz glibc-9515126f905d9322fc6d2b1a3d95539a0a499f48.tar.xz glibc-9515126f905d9322fc6d2b1a3d95539a0a499f48.zip |
resolv: Move __res_get_nsaddr to its own file and into libc
Eliminate the use of the EXT macro from it because it does not add clarity. The function was added to res_send.c in 2015, and the copyright year reflects that. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'resolv/resolv-internal.h')
-rw-r--r-- | resolv/resolv-internal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/resolv/resolv-internal.h b/resolv/resolv-internal.h index e1e8aa3ef3..c18b1d0472 100644 --- a/resolv/resolv-internal.h +++ b/resolv/resolv-internal.h @@ -103,4 +103,10 @@ void __res_thread_freeres (void) attribute_hidden; success, -1 on failure. */ int __res_enable_icmp (int family, int fd) attribute_hidden; + +/* Returns the name server address for the indicated index. */ +struct sockaddr *__res_get_nsaddr (res_state statp, unsigned int n); +libc_hidden_proto (__res_get_nsaddr) + + #endif /* _RESOLV_INTERNAL_H */ |