res_state
int res_nmkupdate(res_state, ns_updrec *, u_char *, int);
int res_nupdate(res_state, ns_updrec *, ns_tsig_key *);
u_int res_nrandomid(res_state);
int res_ninit(res_state);
int res_nisourserver(const res_state, const struct sockaddr_in *);
void fp_resstat(const res_state, FILE *);
void res_pquery(const res_state, const u_char *, int, FILE *);
const char * res_hostalias(const res_state, const char *, char *, size_t);
int res_nquery(res_state, const char *, int, int, u_char *, int);
int res_nsearch(res_state, const char *, int, int, u_char *, int);
int res_nquerydomain(res_state, const char *, const char *,
int res_nmkquery(res_state, int, const char *, int, int,
int res_nsend(res_state, const u_char *, int, u_char *, int);
int res_nsendsigned(res_state, const u_char *, int,
int res_findzonecut(res_state, const char *, ns_class, int,
int res_findzonecut2(res_state, const char *, ns_class, int,
void res_nclose(res_state);
int res_nopt(res_state, int, u_char *, int, int);
int res_nopt_rdata(res_state, int, u_char *, int, u_char *,
int __res_vinit(res_state, int);
const char * res_get_nibblesuffix(res_state);
const char * res_get_nibblesuffix2(res_state);
void res_ndestroy(res_state);
void res_setservers(res_state, const union res_sockaddr_union *,
int res_getservers(res_state, union res_sockaddr_union *, int);
res_state statp;
const struct addrinfo *pai, res_state res)
addr4sort(struct addrinfo *sentinel, res_state res)
res_state res;
res_queryN(const char *name, struct res_target *target, res_state res)
res_searchN(const char *name, struct res_target *target, res_state res)
const struct addrinfo *, res_state);
static int addr4sort(struct addrinfo *, res_state);
struct res_target *target, res_state res)
static int res_queryN(const char *, struct res_target *, res_state);
static int res_searchN(const char *, struct res_target *, res_state);
struct res_target *, res_state);
dbg_printf(char *msg, int num, res_state res)
struct hostent *he, struct hostent_data *hed, res_state statp)
res_state statp;
res_state statp;
res_state statp;
addrsort(char **ap, int num, res_state res)
res_state statp;
res_state statp;
static void addrsort(char **, int, res_state);
static void dbg_printf(char *, int, res_state) __printflike(1, 0);
res_state statp;
res_state statp;
res_state statp;
res_state statp)
res_state statp;
res_state statp;
res_state statp;
res_state statp;
size_t buflen, res_state statp)
res_state statp;
size_t, struct hostent **, int *, res_state);
res_state statp;
size_t buflen, struct hostent **result, int *h_errnop, res_state statp)
res_state statp;
struct netent_data *ned, res_state statp)
res_state statp;
res_state statp;
res_state statp;
res_state statp;
res_state statp;
res_state statp;
res_state statp;
res_state statp;
res_state statp;
static struct hostent *_hpsort(struct hostent *, res_state);
res_state statp;
res_state statp;
_hpsort(struct hostent *hp, res_state statp)
void __h_errno_set(res_state res, int err);
__h_errno_set(res_state res, int err)
res_state statp = &_res;
res_state statp = &_res;
res_state statp = &_res;
res_state statp = &_res;
res_state statp = &_res;
res_state statp = &_res;
res_state statp = &_res;
res_state statp = &_res;
res_state statp = &_res;
res_state statp = &_res;
res_state statp;
int res_ourserver_p(const res_state, const struct sockaddr_in *);
extern int __res_vinit(res_state, int);
res_state statp = &_res;
fp_resstat(const res_state statp, FILE *file) {
do_section(const res_state statp,
res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) {
res_findzonecut(res_state statp, const char *dname, ns_class class, int opts,
res_findzonecut2(res_state statp, const char *dname, ns_class class, int opts,
satisfy(res_state statp, const char *mname, rrset_ns *nsrrsp,
add_addrs(res_state statp, rr_ns *nsrr,
get_soa(res_state statp, const char *dname, ns_class class, int opts,
get_ns(res_state statp, const char *zname, ns_class class, int opts,
get_glue(res_state statp, ns_class class, int opts, rrset_ns *nsrrsp) {
save_ns(res_state statp, ns_msg *msg, ns_sect sect,
save_a(res_state statp, ns_msg *msg, ns_sect sect,
do_query(res_state statp, const char *dname, ns_class class, ns_type qtype,
static int satisfy(res_state, const char *, rrset_ns *,
static int add_addrs(res_state, rr_ns *,
static int get_soa(res_state, const char *, ns_class, int,
static int get_ns(res_state, const char *, ns_class, int, rrset_ns *);
static int get_glue(res_state, ns_class, int, rrset_ns *);
static int save_ns(res_state, ns_msg *, ns_sect,
static int save_a(res_state, ns_msg *, ns_sect,
static int do_query(res_state, const char *, ns_class, ns_type,
static void res_setoptions(res_state, const char *, const char *);
res_ninit(res_state statp) {
extern int __res_vinit(res_state, int);
__res_vinit(res_state statp, int preinit) {
res_setoptions(res_state statp, const char *options, const char *source)
freebsd15_res_rndinit(res_state statp)
res_nrandomid(res_state statp) {
res_nclose(res_state statp) {
res_ndestroy(res_state statp) {
res_get_nibblesuffix(res_state statp) {
res_get_nibblesuffix2(res_state statp) {
res_setservers(res_state statp, const union res_sockaddr_union *set, int cnt) {
res_getservers(res_state statp, union res_sockaddr_union *set, int cnt) {
res_nopt(res_state statp,
res_nopt_rdata(res_state statp,
res_nmkquery(res_state statp,
res_nmkupdate(res_state statp, ns_updrec *rrecp_in, u_char *buf, int buflen) {
res_ourserver_p(const res_state statp, const struct sockaddr *sa);
res_nquery(res_state statp,
res_nsearch(res_state statp,
res_nquerydomain(res_state statp,
res_hostalias(const res_state statp, const char *name, char *dst, size_t siz) {
Aerror(const res_state statp, FILE *file, const char *string, int error,
Perror(const res_state statp, FILE *file, const char *string, int error) {
static struct sockaddr * get_nsaddr(res_state, size_t);
static int send_vc(res_state, const u_char *, int,
static int send_dg(res_state,
static void Aerror(const res_state, FILE *, const char *, int,
static void Perror(const res_state, FILE *, const char *, int);
void res_pquery(const res_state, const u_char *, int, FILE *);
res_ourserver_p(const res_state statp, const struct sockaddr *sa) {
res_nsend(res_state statp,
get_nsaddr(res_state statp, size_t n)
send_vc(res_state statp,
send_dg(res_state statp,
res_state statp;
res_state statp = ptr;
static res_state
res_check_reload(res_state statp)
res_state
res_nupdate(res_state statp, ns_updrec *rrecp_in, ns_tsig_key *key) {
res_state statp;