diff options
author | 2015-09-11 08:48:33 +0000 | |
---|---|---|
committer | 2015-09-11 08:48:33 +0000 | |
commit | b01981f373185d6755f9fe3c205dcefb02ad63a5 (patch) | |
tree | 73e7b779c879e8098bdd33021f35d5d0bf1762bf /lib/libc | |
parent | Add ps/o (diff) | |
download | wireguard-openbsd-b01981f373185d6755f9fe3c205dcefb02ad63a5.tar.xz wireguard-openbsd-b01981f373185d6755f9fe3c205dcefb02ad63a5.zip |
hide three netdb related variables; ok guenther
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/Symbols.list | 3 | ||||
-rw-r--r-- | lib/libc/hidden/netdb.h | 29 |
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 */ |