summaryrefslogtreecommitdiff
path: root/lib/libc/hidden
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-09-13 21:36:09 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-09-13 21:36:09 +0000
commitc33d34329db6614f930c96255e4ef3c218d93773 (patch)
tree5e58f244ecd2225625519b2b308c895fbe64ca51 /lib/libc/hidden
parent89c90bf5f6dd782d0f6c150e44862fb0c7b70c6b (diff)
Wrap <arpa/inet.h> and <arpa/nameser.h> so that calls go direct and the
symbols without underbar prefix are all weak
Diffstat (limited to 'lib/libc/hidden')
-rw-r--r--lib/libc/hidden/arpa/inet.h36
-rw-r--r--lib/libc/hidden/arpa/nameser.h26
2 files changed, 62 insertions, 0 deletions
diff --git a/lib/libc/hidden/arpa/inet.h b/lib/libc/hidden/arpa/inet.h
new file mode 100644
index 00000000000..694425b2e4a
--- /dev/null
+++ b/lib/libc/hidden/arpa/inet.h
@@ -0,0 +1,36 @@
+/* $OpenBSD: inet.h,v 1.1 2015/09/13 21:36:08 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_INET_H_
+#define _LIBC_INET_H_
+
+#include_next <arpa/inet.h>
+
+PROTO_DEPRECATED(inet_addr);
+PROTO_NORMAL(inet_aton);
+PROTO_DEPRECATED(inet_lnaof);
+PROTO_DEPRECATED(inet_makeaddr);
+PROTO_DEPRECATED(inet_net_ntop);
+PROTO_DEPRECATED(inet_net_pton);
+PROTO_DEPRECATED(inet_neta);
+PROTO_DEPRECATED(inet_netof);
+PROTO_NORMAL(inet_network);
+PROTO_DEPRECATED(inet_ntoa);
+PROTO_NORMAL(inet_ntop);
+PROTO_NORMAL(inet_pton);
+
+#endif /* !_LIBC_INET_H_ */
diff --git a/lib/libc/hidden/arpa/nameser.h b/lib/libc/hidden/arpa/nameser.h
new file mode 100644
index 00000000000..a7155a21a7e
--- /dev/null
+++ b/lib/libc/hidden/arpa/nameser.h
@@ -0,0 +1,26 @@
+/* $OpenBSD: nameser.h,v 1.1 2015/09/13 21:36:08 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_NAMESER_H_
+#define _LIBC_NAMESER_H_
+
+#include_next <arpa/nameser.h>
+
+PROTO_NORMAL(_getshort);
+PROTO_NORMAL(_getlong);
+
+#endif /* !_LIBC_NAMESER_H_ */