aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-07-19 21:46:36 +0000
committerUlrich Drepper <drepper@redhat.com>1999-07-19 21:46:36 +0000
commitc132cb59f3721166dd05773c4856cbc4b6e4c8dc (patch)
treee48c55394a5875db5bbde5c55bd282b1566b8484
parent72638d1f5367fd449ec6b88082df315f83bbc95a (diff)
downloadglibc-c132cb59f3721166dd05773c4856cbc4b6e4c8dc.zip
glibc-c132cb59f3721166dd05773c4856cbc4b6e4c8dc.tar.gz
glibc-c132cb59f3721166dd05773c4856cbc4b6e4c8dc.tar.bz2
Add prototypes for getipnodebyaddr, getipnodebyname, and freehostent.
-rw-r--r--resolv/netdb.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/resolv/netdb.h b/resolv/netdb.h
index 3afb051..fe04471 100644
--- a/resolv/netdb.h
+++ b/resolv/netdb.h
@@ -124,6 +124,23 @@ extern struct hostent *gethostbyname __P ((__const char *__name));
for IPv6. */
extern struct hostent *gethostbyname2 __P ((__const char *__name, int __af));
+#ifdef __USE_UNIX98
+/* Return entry from host data base which address match ADDR with
+ length LEN and type TYPE in newly allocated buffer. */
+extern struct hostent *getipnodebyaddr __P ((__const char *__addr,
+ size_t __len, int __type,
+ int *__error_num));
+
+/* Return entry from host data base for host with NAME and newly allocated
+ buffer. */
+extern struct hostent *getipnodebyname __P ((__const char *__name, int __type,
+ int __flags, int *__error_num));
+
+/* Free structure returned by previous `getipnodebyaddr' or `getipnodebyname'
+ call. */
+extern void freehostent __P ((struct hostent *__ptr));
+#endif
+
#ifdef __USE_MISC
/* Reentrant versions of the functions above. The additional
arguments specify a buffer of BUFLEN starting at BUF. The last