diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2015-10-05 02:57:17 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2015-10-05 02:57:17 +0000 |
commit | fb448c8683053671dc7a90ca35c39a88b616d508 (patch) | |
tree | 492c4c43ec6c5e73af8e53ae717e9996533e68bb /lib/libc/hidden | |
parent | 2a26a16179c6f1f78ed5298704d0ea56585df541 (diff) |
Wrap <resolv.h> so that internal calls go direct
ok millert@
Diffstat (limited to 'lib/libc/hidden')
-rw-r--r-- | lib/libc/hidden/resolv.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/lib/libc/hidden/resolv.h b/lib/libc/hidden/resolv.h new file mode 100644 index 00000000000..f01475299c1 --- /dev/null +++ b/lib/libc/hidden/resolv.h @@ -0,0 +1,46 @@ +/* $OpenBSD: resolv.h,v 1.1 2015/10/05 02:57:16 guenther Exp $ */ +/* + * Copyright (c) 2015 Philip Guenther <guenther@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_RESOLV_H_ +#define _LIBC_RESOLV_H_ + +#include_next <resolv.h> + +PROTO_STD_DEPRECATED(__b64_ntop); +PROTO_STD_DEPRECATED(__b64_pton); +PROTO_STD_DEPRECATED(__dn_comp); +PROTO_STD_DEPRECATED(__dn_skipname); +PROTO_NORMAL(__p_class); +PROTO_NORMAL(__p_type); +PROTO_STD_DEPRECATED(__putlong); +PROTO_STD_DEPRECATED(__putshort); +PROTO_STD_DEPRECATED(__res_dnok); +PROTO_NORMAL(__res_hnok); +PROTO_STD_DEPRECATED(__res_mailok); +PROTO_STD_DEPRECATED(__res_ownok); +PROTO_NORMAL(__res_randomid); +PROTO_STD_DEPRECATED(__res_send); +PROTO_NORMAL(__sym_ntos); + +PROTO_NORMAL(dn_expand); +PROTO_NORMAL(res_init); +PROTO_DEPRECATED(res_mkquery); +PROTO_NORMAL(res_query); +PROTO_DEPRECATED(res_querydomain); +PROTO_DEPRECATED(res_search); + +#endif /* !_LIBC_RESOLV_H_ */ |