summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-09-11 08:48:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-09-11 08:48:34 +0000
commit59829d3eb07ee463841096ad34df31309e0bd206 (patch)
treea6d83bab36897b2664405b5a7fa53507d76f311d
parentefec2fc0088d518a6613482161a6b67d09058f85 (diff)
hide three netdb related variables; ok guenther
-rw-r--r--lib/libc/Symbols.list3
-rw-r--r--lib/libc/hidden/netdb.h29
2 files changed, 29 insertions, 3 deletions
diff --git a/lib/libc/Symbols.list b/lib/libc/Symbols.list
index d5d0c8ac40d..c658020c3ee 100644
--- a/lib/libc/Symbols.list
+++ b/lib/libc/Symbols.list
@@ -1050,13 +1050,10 @@ _getlong
_getnetbyaddr
_getnetbyname
_getshort
-_net_stayopen
-_protoent_data
_res
_res_ext
_res_opcodes
_res_resultcodes
-_servent_data
dn_expand
endhostent
endnetent
diff --git a/lib/libc/hidden/netdb.h b/lib/libc/hidden/netdb.h
new file mode 100644
index 00000000000..0f53c409ac4
--- /dev/null
+++ b/lib/libc/hidden/netdb.h
@@ -0,0 +1,29 @@
+/* $OpenBSD: netdb.h,v 1.1 2015/09/11 08:48:33 deraadt Exp $ */
+/*
+ * Copyright (c) 2015 Theo de Raadt <deraadt@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef _LIBC_NETDB_H
+#define _LIBC_NETDB_H
+
+#include_next <netdb.h>
+
+__BEGIN_HIDDEN_DECLS
+extern int _net_stayopen;
+extern struct protoent_data _protoent_data;
+extern struct servent_data _servent_data;
+__END_HIDDEN_DECLS
+
+#endif /* !_LIBC_NETDB_H */