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