4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster/* LINTLIBRARY */
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster/* PROTOLIB1 */
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster/*
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster * Copyright (c) 1997-1999 by Sun Microsystems, Inc.
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster * All rights reserved.
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster */
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster
b93185b577f7150fec37f9999b95b246d73bf63cjeff.schenk#pragma ident "%Z%%M% %I% %E% SMI"
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster#include <stdio.h>
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster#include <sys/types.h>
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster#include <netinet/in.h>
b93185b577f7150fec37f9999b95b246d73bf63cjeff.schenk#include <netdb.h>
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster#include <arpa/nameser.h>
b93185b577f7150fec37f9999b95b246d73bf63cjeff.schenk#include <resolv.h>
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster/*
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster * usr/src/lib/libresolv2 routines
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster */
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster
b93185b577f7150fec37f9999b95b246d73bf63cjeff.schenkint dn_skipname(const uchar_t *, const uchar_t *);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fostervoid fp_query(const u_char *, FILE *);
b93185b577f7150fec37f9999b95b246d73bf63cjeff.schenkconst uchar_t * p_cdname(const uchar_t *, const uchar_t *, FILE *);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosterconst char * p_class(int);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fostervoid p_query(const u_char *);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosterconst char * p_time(unsigned int);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosterconst char * p_type(int);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fostervoid putlong(unsigned int, uchar_t *);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosteruint32_t _getlong(const u_char *);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosteruint16_t _getshort(const u_char *);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosterconst char * hstrerror(int);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosterint res_init(void);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosterint res_mkquery(int, const char *, int, int, const u_char *,
b93185b577f7150fec37f9999b95b246d73bf63cjeff.schenk int, const u_char *, u_char *, int);
b93185b577f7150fec37f9999b95b246d73bf63cjeff.schenkint res_query(const char *, int, int, u_char *, int);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosterint res_querydomain(const char *, const char *, int, int,
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster u_char *, int);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosterint res_search(const char *, int, int, u_char *, int);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosterint res_send(const u_char *, int, u_char *, int);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosterint res_update(ns_updrec *);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosterint res_ninit(res_state);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fostervoid fp_resstat(const res_state, FILE *);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosterconst char * res_hostalias(const res_state, const char *, char *, size_t);
b93185b577f7150fec37f9999b95b246d73bf63cjeff.schenkint res_nquery(res_state, const char *, int, int, u_char *, int);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosterint res_nsearch(res_state, const char *, int, int, u_char *, int);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosterint res_nquerydomain(res_state, const char *, const char *,
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster int, int, u_char *, int);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosterint res_nmkquery(res_state, int, const char *, int, int,
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster const u_char *, int, const u_char *,
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster u_char *, int);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosterint res_nsend(res_state, const u_char *, int, u_char *, int);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosterint res_nmkupdate(res_state, ns_updrec *, u_char *, int);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fostervoid res_nclose(res_state);
b93185b577f7150fec37f9999b95b246d73bf63cjeff.schenkint res_nsendsigned(res_state, const u_char *, int, ns_tsig_key *,
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster u_char *, int);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosterint dn_comp(const char *, u_char *, int, u_char **, u_char **);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Fosterint dn_expand(const u_char *, const u_char *, const u_char *,
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster char *, int);
4fe4e4f798a84a46e567f64ceadd3648eb0582d4Allan Foster