summaryrefslogtreecommitdiff
path: root/usr/src/lib/libresolv/res_query.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libresolv/res_query.c')
-rw-r--r--usr/src/lib/libresolv/res_query.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/src/lib/libresolv/res_query.c b/usr/src/lib/libresolv/res_query.c
index 320776bf18..70d9d8be47 100644
--- a/usr/src/lib/libresolv/res_query.c
+++ b/usr/src/lib/libresolv/res_query.c
@@ -20,7 +20,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 1997 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -70,6 +70,7 @@ int h_errno;
* Error number is left in h_errno.
* Caller must parse answer and determine whether it answers the question.
*/
+int
res_query(name, class, type, answer, anslen)
char *name; /* domain name */
int class, type; /* class and type of query */
@@ -146,6 +147,7 @@ res_query(name, class, type, answer, anslen)
* Only useful for queries in the same name hierarchy as the local host
* (not, for example, for host address-to-name lookups in domain in-addr.arpa).
*/
+int
res_search(name, class, type, answer, anslen)
char *name; /* domain name */
int class, type; /* class and type of query */
@@ -222,6 +224,7 @@ res_search(name, class, type, answer, anslen)
* Perform a call on res_query on the concatenation of name and domain,
* removing a trailing dot from name if domain is NULL.
*/
+int
res_querydomain(name, domain, class, type, answer, anslen)
char *name, *domain;
int class, type; /* class and type of query */