]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - resolv/resolv-internal.h
hurd: Fix build
[thirdparty/glibc.git] / resolv / resolv-internal.h
index 9246497196adab7d2b26dda0d062b12b0b2095ed..3aca6804f4a8ecf7e93d268fcd1174df722a5926 100644 (file)
@@ -1,5 +1,5 @@
 /* libresolv interfaces for internal use across glibc.
-   Copyright (C) 2016-2017 Free Software Foundation, Inc.
+   Copyright (C) 2016-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 #define RES_F_CONN      0x00000002 /* Socket is connected.  */
 #define RES_F_EDNS0ERR  0x00000004 /* EDNS0 caused errors.  */
 
-
-/* Internal version of RES_USE_INET6 which does not trigger a
-   deprecation warning.  */
-#define DEPRECATED_RES_USE_INET6 0x00002000
-
+/* Legacy function.  This needs to be removed once all NSS modules
+   have been adjusted.  */
 static inline bool
 res_use_inet6 (void)
 {
-  return _res.options & DEPRECATED_RES_USE_INET6;
+  return false;
 }
 
 enum
@@ -97,7 +94,13 @@ int __res_nopt (struct resolv_context *, int n0,
 int __inet_pton_length (int af, const char *src, size_t srclen, void *);
 libc_hidden_proto (__inet_pton_length)
 
-/* Used to propagate the effect of res_init calls across threads.  */
-extern unsigned long long int __res_initstamp attribute_hidden;
+/* Called as part of the thread shutdown sequence.  */
+void __res_thread_freeres (void) attribute_hidden;
+
+/* The Linux kernel does not enable all ICMP messages on a UDP socket
+   by default.  A call this function enables full error reporting for
+   the socket FD.  FAMILY must be AF_INET or AF_INET6.  Returns 0 on
+   success, -1 on failure.  */
+int __res_enable_icmp (int family, int fd) attribute_hidden;
 
 #endif  /* _RESOLV_INTERNAL_H */