Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include
File: resolv.h
/*
[0] Fix | Delete
* Copyright (c) 1983, 1987, 1989
[1] Fix | Delete
* The Regents of the University of California. All rights reserved.
[2] Fix | Delete
*
[3] Fix | Delete
* Redistribution and use in source and binary forms, with or without
[4] Fix | Delete
* modification, are permitted provided that the following conditions
[5] Fix | Delete
* are met:
[6] Fix | Delete
* 1. Redistributions of source code must retain the above copyright
[7] Fix | Delete
* notice, this list of conditions and the following disclaimer.
[8] Fix | Delete
* 2. Redistributions in binary form must reproduce the above copyright
[9] Fix | Delete
* notice, this list of conditions and the following disclaimer in the
[10] Fix | Delete
* documentation and/or other materials provided with the distribution.
[11] Fix | Delete
* 4. Neither the name of the University nor the names of its contributors
[12] Fix | Delete
* may be used to endorse or promote products derived from this software
[13] Fix | Delete
* without specific prior written permission.
[14] Fix | Delete
*
[15] Fix | Delete
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
[16] Fix | Delete
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
[17] Fix | Delete
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
[18] Fix | Delete
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
[19] Fix | Delete
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
[20] Fix | Delete
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
[21] Fix | Delete
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
[22] Fix | Delete
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
[23] Fix | Delete
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
[24] Fix | Delete
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
[25] Fix | Delete
* SUCH DAMAGE.
[26] Fix | Delete
*/
[27] Fix | Delete
[28] Fix | Delete
/*
[29] Fix | Delete
* Portions Copyright (c) 1996-1999 by Internet Software Consortium.
[30] Fix | Delete
*
[31] Fix | Delete
* Permission to use, copy, modify, and distribute this software for any
[32] Fix | Delete
* purpose with or without fee is hereby granted, provided that the above
[33] Fix | Delete
* copyright notice and this permission notice appear in all copies.
[34] Fix | Delete
*
[35] Fix | Delete
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
[36] Fix | Delete
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
[37] Fix | Delete
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
[38] Fix | Delete
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
[39] Fix | Delete
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
[40] Fix | Delete
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
[41] Fix | Delete
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
[42] Fix | Delete
* SOFTWARE.
[43] Fix | Delete
*/
[44] Fix | Delete
[45] Fix | Delete
/*
[46] Fix | Delete
* @(#)resolv.h 8.1 (Berkeley) 6/2/93
[47] Fix | Delete
* $BINDId: resolv.h,v 8.31 2000/03/30 20:16:50 vixie Exp $
[48] Fix | Delete
*/
[49] Fix | Delete
[50] Fix | Delete
#ifndef _RESOLV_H_
[51] Fix | Delete
#define _RESOLV_H_
[52] Fix | Delete
[53] Fix | Delete
#include <sys/cdefs.h>
[54] Fix | Delete
#include <sys/param.h>
[55] Fix | Delete
#include <sys/types.h>
[56] Fix | Delete
#include <stdio.h>
[57] Fix | Delete
#include <netinet/in.h>
[58] Fix | Delete
#include <arpa/nameser.h>
[59] Fix | Delete
#include <bits/types/res_state.h>
[60] Fix | Delete
[61] Fix | Delete
/*
[62] Fix | Delete
* Global defines and variables for resolver stub.
[63] Fix | Delete
*/
[64] Fix | Delete
#define LOCALDOMAINPARTS 2 /* min levels in name that is "local" */
[65] Fix | Delete
[66] Fix | Delete
#define RES_TIMEOUT 5 /* min. seconds between retries */
[67] Fix | Delete
#define RES_MAXNDOTS 15 /* should reflect bit field size */
[68] Fix | Delete
#define RES_MAXRETRANS 30 /* only for resolv.conf/RES_OPTIONS */
[69] Fix | Delete
#define RES_MAXRETRY 5 /* only for resolv.conf/RES_OPTIONS */
[70] Fix | Delete
#define RES_DFLRETRY 2 /* Default #/tries. */
[71] Fix | Delete
#define RES_MAXTIME 65535 /* Infinity, in milliseconds. */
[72] Fix | Delete
[73] Fix | Delete
#define nsaddr nsaddr_list[0] /* for backward compatibility */
[74] Fix | Delete
[75] Fix | Delete
/*
[76] Fix | Delete
* Revision information. This is the release date in YYYYMMDD format.
[77] Fix | Delete
* It can change every day so the right thing to do with it is use it
[78] Fix | Delete
* in preprocessor commands such as "#if (__RES > 19931104)". Do not
[79] Fix | Delete
* compare for equality; rather, use it to determine whether your resolver
[80] Fix | Delete
* is new enough to contain a certain feature.
[81] Fix | Delete
*/
[82] Fix | Delete
[83] Fix | Delete
#define __RES 19991006
[84] Fix | Delete
[85] Fix | Delete
/*
[86] Fix | Delete
* Resolver configuration file.
[87] Fix | Delete
* Normally not present, but may contain the address of the
[88] Fix | Delete
* inital name server(s) to query and the domain search list.
[89] Fix | Delete
*/
[90] Fix | Delete
[91] Fix | Delete
#ifndef _PATH_RESCONF
[92] Fix | Delete
#define _PATH_RESCONF "/etc/resolv.conf"
[93] Fix | Delete
#endif
[94] Fix | Delete
[95] Fix | Delete
struct res_sym {
[96] Fix | Delete
int number; /* Identifying number, like T_MX */
[97] Fix | Delete
char * name; /* Its symbolic name, like "MX" */
[98] Fix | Delete
char * humanname; /* Its fun name, like "mail exchanger" */
[99] Fix | Delete
};
[100] Fix | Delete
[101] Fix | Delete
/*
[102] Fix | Delete
* Resolver options (keep these in synch with res_debug.c, please)
[103] Fix | Delete
*/
[104] Fix | Delete
#define RES_INIT 0x00000001 /* address initialized */
[105] Fix | Delete
#define RES_DEBUG 0x00000002 /* print debug messages */
[106] Fix | Delete
#define RES_AAONLY \
[107] Fix | Delete
__glibc_macro_warning ("RES_AAONLY is deprecated") 0x00000004
[108] Fix | Delete
#define RES_USEVC 0x00000008 /* use virtual circuit */
[109] Fix | Delete
#define RES_PRIMARY \
[110] Fix | Delete
__glibc_macro_warning ("RES_PRIMARY is deprecated") 0x00000010
[111] Fix | Delete
#define RES_IGNTC 0x00000020 /* ignore trucation errors */
[112] Fix | Delete
#define RES_RECURSE 0x00000040 /* recursion desired */
[113] Fix | Delete
#define RES_DEFNAMES 0x00000080 /* use default domain name */
[114] Fix | Delete
#define RES_STAYOPEN 0x00000100 /* Keep TCP socket open */
[115] Fix | Delete
#define RES_DNSRCH 0x00000200 /* search up local domain tree */
[116] Fix | Delete
#define RES_INSECURE1 0x00000400 /* type 1 security disabled */
[117] Fix | Delete
#define RES_INSECURE2 0x00000800 /* type 2 security disabled */
[118] Fix | Delete
#define RES_NOALIASES 0x00001000 /* shuts off HOSTALIASES feature */
[119] Fix | Delete
#define RES_USE_INET6 \
[120] Fix | Delete
__glibc_macro_warning ("RES_USE_INET6 is deprecated") 0x00002000
[121] Fix | Delete
#define RES_ROTATE 0x00004000 /* rotate ns list after each query */
[122] Fix | Delete
#define RES_NOCHECKNAME \
[123] Fix | Delete
__glibc_macro_warning ("RES_NOCHECKNAME is deprecated") 0x00008000
[124] Fix | Delete
#define RES_KEEPTSIG \
[125] Fix | Delete
__glibc_macro_warning ("RES_KEEPTSIG is deprecated") 0x00010000
[126] Fix | Delete
#define RES_BLAST \
[127] Fix | Delete
__glibc_macro_warning ("RES_BLAST is deprecated") 0x00020000
[128] Fix | Delete
#define RES_USE_EDNS0 0x00100000 /* Use EDNS0. */
[129] Fix | Delete
#define RES_SNGLKUP 0x00200000 /* one outstanding request at a time */
[130] Fix | Delete
#define RES_SNGLKUPREOP 0x00400000 /* -"-, but open new socket for each
[131] Fix | Delete
request */
[132] Fix | Delete
#define RES_USE_DNSSEC 0x00800000 /* use DNSSEC using OK bit in OPT */
[133] Fix | Delete
#define RES_NOTLDQUERY 0x01000000 /* Do not look up unqualified name
[134] Fix | Delete
as a TLD. */
[135] Fix | Delete
#define RES_NORELOAD 0x02000000 /* No automatic configuration reload. */
[136] Fix | Delete
#define RES_NOAAAA 0x08000000 /* Suppress AAAA queries. */
[137] Fix | Delete
[138] Fix | Delete
#define RES_DEFAULT (RES_RECURSE|RES_DEFNAMES|RES_DNSRCH)
[139] Fix | Delete
[140] Fix | Delete
/*
[141] Fix | Delete
* Resolver "pfcode" values. Used by dig.
[142] Fix | Delete
*/
[143] Fix | Delete
#define RES_PRF_STATS 0x00000001
[144] Fix | Delete
#define RES_PRF_UPDATE 0x00000002
[145] Fix | Delete
#define RES_PRF_CLASS 0x00000004
[146] Fix | Delete
#define RES_PRF_CMD 0x00000008
[147] Fix | Delete
#define RES_PRF_QUES 0x00000010
[148] Fix | Delete
#define RES_PRF_ANS 0x00000020
[149] Fix | Delete
#define RES_PRF_AUTH 0x00000040
[150] Fix | Delete
#define RES_PRF_ADD 0x00000080
[151] Fix | Delete
#define RES_PRF_HEAD1 0x00000100
[152] Fix | Delete
#define RES_PRF_HEAD2 0x00000200
[153] Fix | Delete
#define RES_PRF_TTLID 0x00000400
[154] Fix | Delete
#define RES_PRF_HEADX 0x00000800
[155] Fix | Delete
#define RES_PRF_QUERY 0x00001000
[156] Fix | Delete
#define RES_PRF_REPLY 0x00002000
[157] Fix | Delete
#define RES_PRF_INIT 0x00004000
[158] Fix | Delete
/* 0x00008000 */
[159] Fix | Delete
[160] Fix | Delete
/* Things involving an internal (static) resolver context. */
[161] Fix | Delete
__BEGIN_DECLS
[162] Fix | Delete
extern struct __res_state *__res_state(void) __attribute__ ((__const__));
[163] Fix | Delete
__END_DECLS
[164] Fix | Delete
#define _res (*__res_state())
[165] Fix | Delete
[166] Fix | Delete
#define fp_nquery __fp_nquery
[167] Fix | Delete
#define fp_query __fp_query
[168] Fix | Delete
#define hostalias __hostalias
[169] Fix | Delete
#define p_query __p_query
[170] Fix | Delete
#define res_close __res_close
[171] Fix | Delete
#define res_init __res_init
[172] Fix | Delete
#define res_isourserver __res_isourserver
[173] Fix | Delete
#define res_mkquery __res_mkquery
[174] Fix | Delete
#define res_query __res_query
[175] Fix | Delete
#define res_querydomain __res_querydomain
[176] Fix | Delete
#define res_search __res_search
[177] Fix | Delete
#define res_send __res_send
[178] Fix | Delete
[179] Fix | Delete
__BEGIN_DECLS
[180] Fix | Delete
void fp_nquery (const unsigned char *, int, FILE *) __THROW;
[181] Fix | Delete
void fp_query (const unsigned char *, FILE *) __THROW;
[182] Fix | Delete
const char * hostalias (const char *) __THROW;
[183] Fix | Delete
void p_query (const unsigned char *) __THROW;
[184] Fix | Delete
void res_close (void) __THROW;
[185] Fix | Delete
int res_init (void) __THROW;
[186] Fix | Delete
int res_isourserver (const struct sockaddr_in *) __THROW;
[187] Fix | Delete
int res_mkquery (int, const char *, int, int,
[188] Fix | Delete
const unsigned char *, int, const unsigned char *,
[189] Fix | Delete
unsigned char *, int) __THROW;
[190] Fix | Delete
int res_query (const char *, int, int, unsigned char *, int)
[191] Fix | Delete
__THROW;
[192] Fix | Delete
int res_querydomain (const char *, const char *, int, int,
[193] Fix | Delete
unsigned char *, int) __THROW;
[194] Fix | Delete
int res_search (const char *, int, int, unsigned char *, int)
[195] Fix | Delete
__THROW;
[196] Fix | Delete
int res_send (const unsigned char *, int, unsigned char *, int)
[197] Fix | Delete
__THROW;
[198] Fix | Delete
__END_DECLS
[199] Fix | Delete
[200] Fix | Delete
#define b64_ntop __b64_ntop
[201] Fix | Delete
#define b64_pton __b64_pton
[202] Fix | Delete
#define dn_comp __dn_comp
[203] Fix | Delete
#define dn_count_labels __dn_count_labels
[204] Fix | Delete
#define dn_expand __dn_expand
[205] Fix | Delete
#define dn_skipname __dn_skipname
[206] Fix | Delete
#define fp_resstat __fp_resstat
[207] Fix | Delete
#define loc_aton __loc_aton
[208] Fix | Delete
#define loc_ntoa __loc_ntoa
[209] Fix | Delete
#define p_cdname __p_cdname
[210] Fix | Delete
#define p_cdnname __p_cdnname
[211] Fix | Delete
#define p_class __p_class
[212] Fix | Delete
#define p_fqname __p_fqname
[213] Fix | Delete
#define p_fqnname __p_fqnname
[214] Fix | Delete
#define p_option __p_option
[215] Fix | Delete
#define p_time __p_time
[216] Fix | Delete
#define p_type __p_type
[217] Fix | Delete
#define p_rcode __p_rcode
[218] Fix | Delete
#define putlong __putlong
[219] Fix | Delete
#define putshort __putshort
[220] Fix | Delete
#define res_dnok __res_dnok
[221] Fix | Delete
#define res_hnok __res_hnok
[222] Fix | Delete
#define res_hostalias __res_hostalias
[223] Fix | Delete
#define res_mailok __res_mailok
[224] Fix | Delete
#define res_nameinquery __res_nameinquery
[225] Fix | Delete
#define res_nclose __res_nclose
[226] Fix | Delete
#define res_ninit __res_ninit
[227] Fix | Delete
#define res_nmkquery __res_nmkquery
[228] Fix | Delete
#define res_nquery __res_nquery
[229] Fix | Delete
#define res_nquerydomain __res_nquerydomain
[230] Fix | Delete
#define res_nsearch __res_nsearch
[231] Fix | Delete
#define res_nsend __res_nsend
[232] Fix | Delete
#define res_ownok __res_ownok
[233] Fix | Delete
#define res_queriesmatch __res_queriesmatch
[234] Fix | Delete
#define res_randomid __res_randomid
[235] Fix | Delete
#define sym_ntop __sym_ntop
[236] Fix | Delete
#define sym_ntos __sym_ntos
[237] Fix | Delete
#define sym_ston __sym_ston
[238] Fix | Delete
__BEGIN_DECLS
[239] Fix | Delete
int res_hnok (const char *) __THROW;
[240] Fix | Delete
int res_ownok (const char *) __THROW;
[241] Fix | Delete
int res_mailok (const char *) __THROW;
[242] Fix | Delete
int res_dnok (const char *) __THROW;
[243] Fix | Delete
int sym_ston (const struct res_sym *, const char *, int *) __THROW;
[244] Fix | Delete
const char * sym_ntos (const struct res_sym *, int, int *) __THROW;
[245] Fix | Delete
const char * sym_ntop (const struct res_sym *, int, int *) __THROW;
[246] Fix | Delete
int b64_ntop (const unsigned char *, size_t, char *, size_t)
[247] Fix | Delete
__THROW;
[248] Fix | Delete
int b64_pton (char const *, unsigned char *, size_t) __THROW;
[249] Fix | Delete
int loc_aton (const char *__ascii, unsigned char *__binary) __THROW;
[250] Fix | Delete
const char * loc_ntoa (const unsigned char *__binary, char *__ascii) __THROW;
[251] Fix | Delete
int dn_skipname (const unsigned char *, const unsigned char *)
[252] Fix | Delete
__THROW;
[253] Fix | Delete
void putlong (uint32_t, unsigned char *) __THROW;
[254] Fix | Delete
void putshort (uint16_t, unsigned char *) __THROW;
[255] Fix | Delete
const char * p_class (int) __THROW;
[256] Fix | Delete
const char * p_time (uint32_t) __THROW;
[257] Fix | Delete
const char * p_type (int) __THROW;
[258] Fix | Delete
const char * p_rcode (int) __THROW;
[259] Fix | Delete
const unsigned char * p_cdnname (const unsigned char *,
[260] Fix | Delete
const unsigned char *, int, FILE *) __THROW;
[261] Fix | Delete
const unsigned char * p_cdname (const unsigned char *, const unsigned char *,
[262] Fix | Delete
FILE *) __THROW;
[263] Fix | Delete
const unsigned char * p_fqnname (const unsigned char *__cp,
[264] Fix | Delete
const unsigned char *__msg,
[265] Fix | Delete
int, char *, int) __THROW;
[266] Fix | Delete
const unsigned char * p_fqname (const unsigned char *,
[267] Fix | Delete
const unsigned char *, FILE *) __THROW;
[268] Fix | Delete
const char * p_option (unsigned long __option) __THROW;
[269] Fix | Delete
int dn_count_labels (const char *) __THROW;
[270] Fix | Delete
int dn_comp (const char *, unsigned char *, int, unsigned char **,
[271] Fix | Delete
unsigned char **) __THROW;
[272] Fix | Delete
int dn_expand (const unsigned char *, const unsigned char *,
[273] Fix | Delete
const unsigned char *, char *, int) __THROW;
[274] Fix | Delete
unsigned int res_randomid (void) __THROW;
[275] Fix | Delete
int res_nameinquery (const char *, int, int,
[276] Fix | Delete
const unsigned char *,
[277] Fix | Delete
const unsigned char *) __THROW;
[278] Fix | Delete
int res_queriesmatch (const unsigned char *,
[279] Fix | Delete
const unsigned char *,
[280] Fix | Delete
const unsigned char *,
[281] Fix | Delete
const unsigned char *) __THROW;
[282] Fix | Delete
/* Things involving a resolver context. */
[283] Fix | Delete
int res_ninit (res_state) __THROW;
[284] Fix | Delete
void fp_resstat (const res_state, FILE *) __THROW;
[285] Fix | Delete
const char * res_hostalias (const res_state, const char *, char *, size_t)
[286] Fix | Delete
__THROW;
[287] Fix | Delete
int res_nquery (res_state, const char *, int, int,
[288] Fix | Delete
unsigned char *, int) __THROW;
[289] Fix | Delete
int res_nsearch (res_state, const char *, int, int,
[290] Fix | Delete
unsigned char *, int) __THROW;
[291] Fix | Delete
int res_nquerydomain (res_state, const char *, const char *, int,
[292] Fix | Delete
int, unsigned char *, int) __THROW;
[293] Fix | Delete
int res_nmkquery (res_state, int, const char *, int, int,
[294] Fix | Delete
const unsigned char *, int,
[295] Fix | Delete
const unsigned char *, unsigned char *, int)
[296] Fix | Delete
__THROW;
[297] Fix | Delete
int res_nsend (res_state, const unsigned char *, int,
[298] Fix | Delete
unsigned char *, int) __THROW;
[299] Fix | Delete
void res_nclose (res_state) __THROW;
[300] Fix | Delete
[301] Fix | Delete
__END_DECLS
[302] Fix | Delete
[303] Fix | Delete
#endif /* !_RESOLV_H_ */
[304] Fix | Delete
[305] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function