Deleted Added
sdiff udiff text old ( 13771 ) new ( 17902 )
full compact
1/*-
2 * Copyright (c) 1983, 1987, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 39 unchanged lines hidden (view full) ---

48 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
49 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
50 * SOFTWARE.
51 * -
52 * --Copyright--
53 *
54 * @(#)resolv.h 8.1 (Berkeley) 6/2/93
55 * From Id: resolv.h,v 4.9.1.2 1993/05/17 09:59:01 vixie Exp
56 * $Id: resolv.h,v 1.5 1996/01/07 05:01:50 peter Exp $
57 */
58
59#ifndef _RESOLV_H_
60#define _RESOLV_H_
61
62#include <sys/param.h>
63#include <sys/types.h>
64#include <sys/cdefs.h>
65#include <stdio.h>
66
67/*
68 * revision information. this is the release date in YYYYMMDD format.
69 * it can change every day so the right thing to do with it is use it
70 * in preprocessor commands such as "#if (__RES > 19931104)". do not
71 * compare for equality; rather, use it to determine whether your resolver
72 * is new enough to contain a certain feature.
73 */
74
75#define __RES 19951031
76
77/*
78 * Resolver configuration file.
79 * Normally not present, but may contain the address of the
80 * inital name server(s) to query and the domain search list.
81 */
82
83#ifndef _PATH_RESCONF

--- 45 unchanged lines hidden (view full) ---

129#define RES_IGNTC 0x00000020 /* ignore truncation errors */
130#define RES_RECURSE 0x00000040 /* recursion desired */
131#define RES_DEFNAMES 0x00000080 /* use default domain name */
132#define RES_STAYOPEN 0x00000100 /* Keep TCP socket open */
133#define RES_DNSRCH 0x00000200 /* search up local domain tree */
134#define RES_INSECURE1 0x00000400 /* type 1 security disabled */
135#define RES_INSECURE2 0x00000800 /* type 2 security disabled */
136#define RES_NOALIASES 0x00001000 /* shuts off HOSTALIASES feature */
137
138#define RES_DEFAULT (RES_RECURSE | RES_DEFNAMES | RES_DNSRCH)
139
140/*
141 * Resolver "pfcode" values. Used by dig.
142 */
143#define RES_PRF_STATS 0x00000001
144/* 0x00000002 */

--- 28 unchanged lines hidden (view full) ---

173 int querylen,
174 u_char *ans,
175 int anssiz,
176 int *resplen));
177
178extern struct __res_state _res;
179
180/* Private routines shared between libc/net, named, nslookup and others. */
181#define dn_skipname __dn_skipname
182#define fp_query __fp_query
183#define fp_nquery __fp_nquery
184#define hostalias __hostalias
185#define putlong __putlong
186#define putshort __putshort
187#define p_class __p_class
188#define p_time __p_time

--- 4 unchanged lines hidden (view full) ---

193#define p_rr __p_rr
194#define p_option __p_option
195#define res_randomid __res_randomid
196#define res_isourserver __res_isourserver
197#define res_nameinquery __res_nameinquery
198#define res_queriesmatch __res_queriesmatch
199
200__BEGIN_DECLS
201int __dn_skipname __P((const u_char *, const u_char *));
202void __fp_resstat __P((struct __res_state *, FILE *));
203void __fp_query __P((const u_char *, FILE *));
204void __fp_nquery __P((const u_char *, int, FILE *));
205char *__hostalias __P((const char *));
206void __putlong __P((u_int32_t, u_char *));
207void __putshort __P((u_int16_t, u_char *));
208char *__p_time __P((u_int32_t));

--- 28 unchanged lines hidden ---