summaryrefslogtreecommitdiff
path: root/usr/src/lib/libresolv2/include/inet_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libresolv2/include/inet_private.h')
-rw-r--r--usr/src/lib/libresolv2/include/inet_private.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/usr/src/lib/libresolv2/include/inet_private.h b/usr/src/lib/libresolv2/include/inet_private.h
new file mode 100644
index 0000000000..c9c03ab478
--- /dev/null
+++ b/usr/src/lib/libresolv2/include/inet_private.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 1999 by Sun Microsystems, Inc.
+ * All rights reserved.
+ */
+
+#ifndef _INET_PRIVATE_H
+#define _INET_PRIVATE_H
+
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+/*
+ * Functions defined by the ISC for BIND 8.2, but which do not appear
+ * in RFC 2553 (hence, aren't suitable for inclusion in <inet.h>).
+ */
+
+#ifdef __STDC__
+#ifndef __P
+#define __P(x) x
+#endif
+#else
+#ifndef __P
+#define __P(x) ()
+#endif
+#endif /* __STDC__ */
+
+char * inet_net_ntop __P((int, const void *, int, char *, size_t));
+int inet_net_pton __P((int, const char *, void *, size_t));
+u_int inet_nsap_addr __P((const char *, u_char *, int));
+char * inet_nsap_ntoa __P((int, const u_char *, char *));
+
+#endif /* _INET_PRIVATE_H */