xref: /onnv-gate/usr/src/lib/libresolv2/common/llib-lresolv (revision 0:68f95e015346)
1*0Sstevel@tonic-gate/* LINTLIBRARY */
2*0Sstevel@tonic-gate/* PROTOLIB1 */
3*0Sstevel@tonic-gate
4*0Sstevel@tonic-gate/*
5*0Sstevel@tonic-gate * Copyright (c) 1997-1999 by Sun Microsystems, Inc.
6*0Sstevel@tonic-gate * All rights reserved.
7*0Sstevel@tonic-gate */
8*0Sstevel@tonic-gate
9*0Sstevel@tonic-gate#pragma ident	"%Z%%M%	%I%	%E% SMI"
10*0Sstevel@tonic-gate
11*0Sstevel@tonic-gate#include <stdio.h>
12*0Sstevel@tonic-gate#include <sys/types.h>
13*0Sstevel@tonic-gate#include <netinet/in.h>
14*0Sstevel@tonic-gate#include <netdb.h>
15*0Sstevel@tonic-gate#include <arpa/nameser.h>
16*0Sstevel@tonic-gate#include <resolv.h>
17*0Sstevel@tonic-gate
18*0Sstevel@tonic-gate/*
19*0Sstevel@tonic-gate * usr/src/lib/libresolv2 routines
20*0Sstevel@tonic-gate */
21*0Sstevel@tonic-gate
22*0Sstevel@tonic-gateint		dn_skipname(const uchar_t *, const uchar_t *);
23*0Sstevel@tonic-gatevoid		fp_query(const u_char *, FILE *);
24*0Sstevel@tonic-gateconst uchar_t *	p_cdname(const uchar_t *, const uchar_t *, FILE *);
25*0Sstevel@tonic-gateconst char *	p_class(int);
26*0Sstevel@tonic-gatevoid		p_query(const u_char *);
27*0Sstevel@tonic-gateconst char *	p_time(unsigned int);
28*0Sstevel@tonic-gateconst char *	p_type(int);
29*0Sstevel@tonic-gatevoid		putlong(unsigned int, uchar_t *);
30*0Sstevel@tonic-gateuint32_t	_getlong(const u_char *);
31*0Sstevel@tonic-gateuint16_t	_getshort(const u_char *);
32*0Sstevel@tonic-gateconst char *	hstrerror(int);
33*0Sstevel@tonic-gateint		res_init(void);
34*0Sstevel@tonic-gateint		res_mkquery(int, const char *, int, int, const u_char *,
35*0Sstevel@tonic-gate				int, const u_char *, u_char *, int);
36*0Sstevel@tonic-gateint		res_query(const char *, int, int, u_char *, int);
37*0Sstevel@tonic-gateint		res_querydomain(const char *, const char *, int, int,
38*0Sstevel@tonic-gate				u_char *, int);
39*0Sstevel@tonic-gateint		res_search(const char *, int, int, u_char *, int);
40*0Sstevel@tonic-gateint		res_send(const u_char *, int, u_char *, int);
41*0Sstevel@tonic-gateint		res_update(ns_updrec *);
42*0Sstevel@tonic-gateint		res_ninit(res_state);
43*0Sstevel@tonic-gatevoid		fp_resstat(const res_state, FILE *);
44*0Sstevel@tonic-gateconst char *	res_hostalias(const res_state, const char *, char *, size_t);
45*0Sstevel@tonic-gateint		res_nquery(res_state, const char *, int, int, u_char *, int);
46*0Sstevel@tonic-gateint		res_nsearch(res_state, const char *, int, int, u_char *, int);
47*0Sstevel@tonic-gateint		res_nquerydomain(res_state, const char *, const char *,
48*0Sstevel@tonic-gate				int, int, u_char *, int);
49*0Sstevel@tonic-gateint		res_nmkquery(res_state, int, const char *, int, int,
50*0Sstevel@tonic-gate				const u_char *, int, const u_char *,
51*0Sstevel@tonic-gate				u_char *, int);
52*0Sstevel@tonic-gateint		res_nsend(res_state, const u_char *, int, u_char *, int);
53*0Sstevel@tonic-gateint		res_nmkupdate(res_state, ns_updrec *, u_char *, int);
54*0Sstevel@tonic-gatevoid		res_nclose(res_state);
55*0Sstevel@tonic-gateint		res_nsendsigned(res_state, const u_char *, int, ns_tsig_key *,
56*0Sstevel@tonic-gate				u_char *, int);
57*0Sstevel@tonic-gateint		dn_comp(const char *, u_char *, int, u_char **, u_char **);
58*0Sstevel@tonic-gateint		dn_expand(const u_char *, const u_char *, const u_char *,
59*0Sstevel@tonic-gate				char *, int);
60