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