aboutsummaryrefslogtreecommitdiff
path: root/include/arpa/inet.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/arpa/inet.h')
-rw-r--r--include/arpa/inet.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/arpa/inet.h b/include/arpa/inet.h
index df9472b..3db8f1a 100644
--- a/include/arpa/inet.h
+++ b/include/arpa/inet.h
@@ -1,17 +1,30 @@
+#ifndef _ARPA_INET_H
+/* Note: _ARPA_INET_H is defined by inet/arpa/inet.h below. */
#include <inet/arpa/inet.h>
#ifndef _ISOMAC
+/* Declare functions with security checks.
+ This needs to be included unconditionally as these definition are needed even
+ when fortification is disabled in inet/arpa/inet.h. */
+#include <bits/inet-fortified-decl.h>
+
/* Variant of inet_aton which rejects trailing garbage. */
extern int __inet_aton_exact (const char *__cp, struct in_addr *__inp);
libc_hidden_proto (__inet_aton_exact)
-libc_hidden_proto (inet_ntop)
+extern __typeof (inet_ntop) __inet_ntop;
+libc_hidden_proto (__inet_ntop)
+libc_hidden_proto (__inet_ntop_chk)
+
libc_hidden_proto (inet_pton)
extern __typeof (inet_pton) __inet_pton;
libc_hidden_proto (__inet_pton)
+libc_hidden_proto (__inet_pton_chk)
+
extern __typeof (inet_makeaddr) __inet_makeaddr;
libc_hidden_proto (__inet_makeaddr)
libc_hidden_proto (inet_netof)
extern __typeof (inet_network) __inet_network;
libc_hidden_proto (__inet_network)
#endif
+#endif