about summary refs log tree commit diff
path: root/resolv/resolv-internal.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-04-13 10:52:27 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-04-13 10:52:42 +0200
commita7ff1da8239a5f0e1927db9d5310f53cfea97fc2 (patch)
tree2b3fbfc1903f7c27fe04707103e05b21f18f7304 /resolv/resolv-internal.h
parent249dcdb71b79e4c488a46c9027e0014c0bc27044 (diff)
downloadglibc-a7ff1da8239a5f0e1927db9d5310f53cfea97fc2.tar.gz
glibc-a7ff1da8239a5f0e1927db9d5310f53cfea97fc2.tar.xz
glibc-a7ff1da8239a5f0e1927db9d5310f53cfea97fc2.zip
resolv: Remove internal and unused definitions from <resolv.h>
The RES_F_* constants are only used with the private _res._flags
member.  RES_EXHAUSTIVE is unused.  The removed function
declarations refer to functions not actually exported by glibc,
so they are unusable by applications.
Diffstat (limited to 'resolv/resolv-internal.h')
-rw-r--r--resolv/resolv-internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/resolv/resolv-internal.h b/resolv/resolv-internal.h
index 99fc17c609..d35df1c3d5 100644
--- a/resolv/resolv-internal.h
+++ b/resolv/resolv-internal.h
@@ -22,6 +22,12 @@
 #include <resolv.h>
 #include <stdbool.h>
 
+/* Resolver flags.  Used for _flags in struct __res_state.  */
+#define RES_F_VC        0x00000001 /* Socket is TCP.  */
+#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