Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/bind9/lwres
File: netdb.h
/*
[0] Fix | Delete
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
[1] Fix | Delete
*
[2] Fix | Delete
* This Source Code Form is subject to the terms of the Mozilla Public
[3] Fix | Delete
* License, v. 2.0. If a copy of the MPL was not distributed with this
[4] Fix | Delete
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
[5] Fix | Delete
*
[6] Fix | Delete
* See the COPYRIGHT file distributed with this work for additional
[7] Fix | Delete
* information regarding copyright ownership.
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
/*! \file */
[11] Fix | Delete
[12] Fix | Delete
#ifndef LWRES_NETDB_H
[13] Fix | Delete
#define LWRES_NETDB_H 1
[14] Fix | Delete
[15] Fix | Delete
#include <stddef.h> /* Required on FreeBSD (and others?) for size_t. */
[16] Fix | Delete
#include <netdb.h> /* Contractual provision. */
[17] Fix | Delete
[18] Fix | Delete
#include <lwres/lang.h>
[19] Fix | Delete
[20] Fix | Delete
/*
[21] Fix | Delete
* Define if <netdb.h> does not declare struct addrinfo.
[22] Fix | Delete
*/
[23] Fix | Delete
#undef ISC_LWRES_NEEDADDRINFO
[24] Fix | Delete
[25] Fix | Delete
#ifdef ISC_LWRES_NEEDADDRINFO
[26] Fix | Delete
struct addrinfo {
[27] Fix | Delete
int ai_flags; /* AI_PASSIVE, AI_CANONNAME */
[28] Fix | Delete
int ai_family; /* PF_xxx */
[29] Fix | Delete
int ai_socktype; /* SOCK_xxx */
[30] Fix | Delete
int ai_protocol; /* 0 or IPPROTO_xxx for IPv4 and IPv6 */
[31] Fix | Delete
size_t ai_addrlen; /* Length of ai_addr */
[32] Fix | Delete
char *ai_canonname; /* Canonical name for hostname */
[33] Fix | Delete
struct sockaddr *ai_addr; /* Binary address */
[34] Fix | Delete
struct addrinfo *ai_next; /* Next structure in linked list */
[35] Fix | Delete
};
[36] Fix | Delete
#endif
[37] Fix | Delete
[38] Fix | Delete
/*
[39] Fix | Delete
* Undefine all #defines we are interested in as <netdb.h> may or may not have
[40] Fix | Delete
* defined them.
[41] Fix | Delete
*/
[42] Fix | Delete
[43] Fix | Delete
/*
[44] Fix | Delete
* Error return codes from gethostbyname() and gethostbyaddr()
[45] Fix | Delete
* (left in extern int h_errno).
[46] Fix | Delete
*/
[47] Fix | Delete
[48] Fix | Delete
#undef NETDB_INTERNAL
[49] Fix | Delete
#undef NETDB_SUCCESS
[50] Fix | Delete
#undef HOST_NOT_FOUND
[51] Fix | Delete
#undef TRY_AGAIN
[52] Fix | Delete
#undef NO_RECOVERY
[53] Fix | Delete
#undef NO_DATA
[54] Fix | Delete
#undef NO_ADDRESS
[55] Fix | Delete
[56] Fix | Delete
#define NETDB_INTERNAL -1 /* see errno */
[57] Fix | Delete
#define NETDB_SUCCESS 0 /* no problem */
[58] Fix | Delete
#define HOST_NOT_FOUND 1 /* Authoritative Answer Host not found */
[59] Fix | Delete
#define TRY_AGAIN 2 /* Non-Authoritative Host not found, or SERVERFAIL */
[60] Fix | Delete
#define NO_RECOVERY 3 /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */
[61] Fix | Delete
#define NO_DATA 4 /* Valid name, no data record of requested type */
[62] Fix | Delete
#define NO_ADDRESS NO_DATA /* no address, look for MX record */
[63] Fix | Delete
[64] Fix | Delete
/*
[65] Fix | Delete
* Error return codes from getaddrinfo()
[66] Fix | Delete
*/
[67] Fix | Delete
[68] Fix | Delete
#undef EAI_ADDRFAMILY
[69] Fix | Delete
#undef EAI_AGAIN
[70] Fix | Delete
#undef EAI_BADFLAGS
[71] Fix | Delete
#undef EAI_FAIL
[72] Fix | Delete
#undef EAI_FAMILY
[73] Fix | Delete
#undef EAI_MEMORY
[74] Fix | Delete
#undef EAI_NODATA
[75] Fix | Delete
#undef EAI_NONAME
[76] Fix | Delete
#undef EAI_SERVICE
[77] Fix | Delete
#undef EAI_SOCKTYPE
[78] Fix | Delete
#undef EAI_SYSTEM
[79] Fix | Delete
#undef EAI_BADHINTS
[80] Fix | Delete
#undef EAI_PROTOCOL
[81] Fix | Delete
#undef EAI_OVERFLOW
[82] Fix | Delete
#undef EAI_MAX
[83] Fix | Delete
[84] Fix | Delete
#define EAI_ADDRFAMILY 1 /* address family for hostname not supported */
[85] Fix | Delete
#define EAI_AGAIN 2 /* temporary failure in name resolution */
[86] Fix | Delete
#define EAI_BADFLAGS 3 /* invalid value for ai_flags */
[87] Fix | Delete
#define EAI_FAIL 4 /* non-recoverable failure in name resolution */
[88] Fix | Delete
#define EAI_FAMILY 5 /* ai_family not supported */
[89] Fix | Delete
#define EAI_MEMORY 6 /* memory allocation failure */
[90] Fix | Delete
#define EAI_NODATA 7 /* no address associated with hostname */
[91] Fix | Delete
#define EAI_NONAME 8 /* hostname nor servname provided, or not known */
[92] Fix | Delete
#define EAI_SERVICE 9 /* servname not supported for ai_socktype */
[93] Fix | Delete
#define EAI_SOCKTYPE 10 /* ai_socktype not supported */
[94] Fix | Delete
#define EAI_SYSTEM 11 /* system error returned in errno */
[95] Fix | Delete
#define EAI_BADHINTS 12
[96] Fix | Delete
#define EAI_PROTOCOL 13
[97] Fix | Delete
#define EAI_OVERFLOW 14
[98] Fix | Delete
#define EAI_MAX 15
[99] Fix | Delete
[100] Fix | Delete
/*
[101] Fix | Delete
* Flag values for getaddrinfo()
[102] Fix | Delete
*/
[103] Fix | Delete
#undef AI_PASSIVE
[104] Fix | Delete
#undef AI_CANONNAME
[105] Fix | Delete
#undef AI_NUMERICHOST
[106] Fix | Delete
[107] Fix | Delete
#define AI_PASSIVE 0x00000001
[108] Fix | Delete
#define AI_CANONNAME 0x00000002
[109] Fix | Delete
#define AI_NUMERICHOST 0x00000004
[110] Fix | Delete
[111] Fix | Delete
/*
[112] Fix | Delete
* Flag values for getipnodebyname()
[113] Fix | Delete
*/
[114] Fix | Delete
#undef AI_V4MAPPED
[115] Fix | Delete
#undef AI_ALL
[116] Fix | Delete
#undef AI_ADDRCONFIG
[117] Fix | Delete
#undef AI_DEFAULT
[118] Fix | Delete
[119] Fix | Delete
#define AI_V4MAPPED 0x00000008
[120] Fix | Delete
#define AI_ALL 0x00000010
[121] Fix | Delete
#define AI_ADDRCONFIG 0x00000020
[122] Fix | Delete
#define AI_DEFAULT (AI_V4MAPPED|AI_ADDRCONFIG)
[123] Fix | Delete
[124] Fix | Delete
/*
[125] Fix | Delete
* Constants for lwres_getnameinfo()
[126] Fix | Delete
*/
[127] Fix | Delete
#undef NI_MAXHOST
[128] Fix | Delete
#undef NI_MAXSERV
[129] Fix | Delete
[130] Fix | Delete
#define NI_MAXHOST 1025
[131] Fix | Delete
#define NI_MAXSERV 32
[132] Fix | Delete
[133] Fix | Delete
/*
[134] Fix | Delete
* Flag values for lwres_getnameinfo()
[135] Fix | Delete
*/
[136] Fix | Delete
#undef NI_NOFQDN
[137] Fix | Delete
#undef NI_NUMERICHOST
[138] Fix | Delete
#undef NI_NAMEREQD
[139] Fix | Delete
#undef NI_NUMERICSERV
[140] Fix | Delete
#undef NI_DGRAM
[141] Fix | Delete
#undef NI_NUMERICSCOPE
[142] Fix | Delete
[143] Fix | Delete
#define NI_NOFQDN 0x00000001
[144] Fix | Delete
#define NI_NUMERICHOST 0x00000002
[145] Fix | Delete
#define NI_NAMEREQD 0x00000004
[146] Fix | Delete
#define NI_NUMERICSERV 0x00000008
[147] Fix | Delete
#define NI_DGRAM 0x00000010
[148] Fix | Delete
#define NI_NUMERICSCOPE 0x00000020 /*2553bis-00*/
[149] Fix | Delete
[150] Fix | Delete
/*
[151] Fix | Delete
* Define if <netdb.h> does not declare struct rrsetinfo.
[152] Fix | Delete
*/
[153] Fix | Delete
#define ISC_LWRES_NEEDRRSETINFO 1
[154] Fix | Delete
[155] Fix | Delete
#ifdef ISC_LWRES_NEEDRRSETINFO
[156] Fix | Delete
/*
[157] Fix | Delete
* Structures for getrrsetbyname()
[158] Fix | Delete
*/
[159] Fix | Delete
struct rdatainfo {
[160] Fix | Delete
unsigned int rdi_length;
[161] Fix | Delete
unsigned char *rdi_data;
[162] Fix | Delete
};
[163] Fix | Delete
[164] Fix | Delete
struct rrsetinfo {
[165] Fix | Delete
unsigned int rri_flags;
[166] Fix | Delete
int rri_rdclass;
[167] Fix | Delete
int rri_rdtype;
[168] Fix | Delete
unsigned int rri_ttl;
[169] Fix | Delete
unsigned int rri_nrdatas;
[170] Fix | Delete
unsigned int rri_nsigs;
[171] Fix | Delete
char *rri_name;
[172] Fix | Delete
struct rdatainfo *rri_rdatas;
[173] Fix | Delete
struct rdatainfo *rri_sigs;
[174] Fix | Delete
};
[175] Fix | Delete
[176] Fix | Delete
/*
[177] Fix | Delete
* Flags for getrrsetbyname()
[178] Fix | Delete
*/
[179] Fix | Delete
#define RRSET_VALIDATED 0x00000001
[180] Fix | Delete
/* Set was dnssec validated */
[181] Fix | Delete
[182] Fix | Delete
/*
[183] Fix | Delete
* Return codes for getrrsetbyname()
[184] Fix | Delete
*/
[185] Fix | Delete
#define ERRSET_SUCCESS 0
[186] Fix | Delete
#define ERRSET_NOMEMORY 1
[187] Fix | Delete
#define ERRSET_FAIL 2
[188] Fix | Delete
#define ERRSET_INVAL 3
[189] Fix | Delete
#define ERRSET_NONAME 4
[190] Fix | Delete
#define ERRSET_NODATA 5
[191] Fix | Delete
#endif
[192] Fix | Delete
[193] Fix | Delete
/*
[194] Fix | Delete
* Define to map into lwres_ namespace.
[195] Fix | Delete
*/
[196] Fix | Delete
[197] Fix | Delete
#define LWRES_NAMESPACE
[198] Fix | Delete
[199] Fix | Delete
#ifdef LWRES_NAMESPACE
[200] Fix | Delete
[201] Fix | Delete
/*
[202] Fix | Delete
* Use our versions not the ones from the C library.
[203] Fix | Delete
*/
[204] Fix | Delete
[205] Fix | Delete
#ifdef getnameinfo
[206] Fix | Delete
#undef getnameinfo
[207] Fix | Delete
#endif
[208] Fix | Delete
#define getnameinfo lwres_getnameinfo
[209] Fix | Delete
[210] Fix | Delete
#ifdef getaddrinfo
[211] Fix | Delete
#undef getaddrinfo
[212] Fix | Delete
#endif
[213] Fix | Delete
#define getaddrinfo lwres_getaddrinfo
[214] Fix | Delete
[215] Fix | Delete
#ifdef freeaddrinfo
[216] Fix | Delete
#undef freeaddrinfo
[217] Fix | Delete
#endif
[218] Fix | Delete
#define freeaddrinfo lwres_freeaddrinfo
[219] Fix | Delete
[220] Fix | Delete
#ifdef gai_strerror
[221] Fix | Delete
#undef gai_strerror
[222] Fix | Delete
#endif
[223] Fix | Delete
#define gai_strerror lwres_gai_strerror
[224] Fix | Delete
[225] Fix | Delete
#ifdef herror
[226] Fix | Delete
#undef herror
[227] Fix | Delete
#endif
[228] Fix | Delete
#define herror lwres_herror
[229] Fix | Delete
[230] Fix | Delete
#ifdef hstrerror
[231] Fix | Delete
#undef hstrerror
[232] Fix | Delete
#endif
[233] Fix | Delete
#define hstrerror lwres_hstrerror
[234] Fix | Delete
[235] Fix | Delete
#ifdef getipnodebyname
[236] Fix | Delete
#undef getipnodebyname
[237] Fix | Delete
#endif
[238] Fix | Delete
#define getipnodebyname lwres_getipnodebyname
[239] Fix | Delete
[240] Fix | Delete
#ifdef getipnodebyaddr
[241] Fix | Delete
#undef getipnodebyaddr
[242] Fix | Delete
#endif
[243] Fix | Delete
#define getipnodebyaddr lwres_getipnodebyaddr
[244] Fix | Delete
[245] Fix | Delete
#ifdef freehostent
[246] Fix | Delete
#undef freehostent
[247] Fix | Delete
#endif
[248] Fix | Delete
#define freehostent lwres_freehostent
[249] Fix | Delete
[250] Fix | Delete
#ifdef gethostbyname
[251] Fix | Delete
#undef gethostbyname
[252] Fix | Delete
#endif
[253] Fix | Delete
#define gethostbyname lwres_gethostbyname
[254] Fix | Delete
[255] Fix | Delete
#ifdef gethostbyname2
[256] Fix | Delete
#undef gethostbyname2
[257] Fix | Delete
#endif
[258] Fix | Delete
#define gethostbyname2 lwres_gethostbyname2
[259] Fix | Delete
[260] Fix | Delete
#ifdef gethostbyaddr
[261] Fix | Delete
#undef gethostbyaddr
[262] Fix | Delete
#endif
[263] Fix | Delete
#define gethostbyaddr lwres_gethostbyaddr
[264] Fix | Delete
[265] Fix | Delete
#ifdef gethostent
[266] Fix | Delete
#undef gethostent
[267] Fix | Delete
#endif
[268] Fix | Delete
#define gethostent lwres_gethostent
[269] Fix | Delete
[270] Fix | Delete
#ifdef sethostent
[271] Fix | Delete
#undef sethostent
[272] Fix | Delete
#endif
[273] Fix | Delete
#define sethostent lwres_sethostent
[274] Fix | Delete
[275] Fix | Delete
#ifdef endhostent
[276] Fix | Delete
#undef endhostent
[277] Fix | Delete
#endif
[278] Fix | Delete
#define endhostent lwres_endhostent
[279] Fix | Delete
[280] Fix | Delete
/* #define sethostfile lwres_sethostfile */
[281] Fix | Delete
[282] Fix | Delete
#ifdef gethostbyname_r
[283] Fix | Delete
#undef gethostbyname_r
[284] Fix | Delete
#endif
[285] Fix | Delete
#define gethostbyname_r lwres_gethostbyname_r
[286] Fix | Delete
[287] Fix | Delete
#ifdef gethostbyaddr_r
[288] Fix | Delete
#undef gethostbyaddr_r
[289] Fix | Delete
#endif
[290] Fix | Delete
#define gethostbyaddr_r lwres_gethostbyaddr_r
[291] Fix | Delete
[292] Fix | Delete
#ifdef gethostent_r
[293] Fix | Delete
#undef gethostent_r
[294] Fix | Delete
#endif
[295] Fix | Delete
#define gethostent_r lwres_gethostent_r
[296] Fix | Delete
[297] Fix | Delete
#ifdef sethostent_r
[298] Fix | Delete
#undef sethostent_r
[299] Fix | Delete
#endif
[300] Fix | Delete
#define sethostent_r lwres_sethostent_r
[301] Fix | Delete
[302] Fix | Delete
#ifdef endhostent_r
[303] Fix | Delete
#undef endhostent_r
[304] Fix | Delete
#endif
[305] Fix | Delete
#define endhostent_r lwres_endhostent_r
[306] Fix | Delete
[307] Fix | Delete
#ifdef getrrsetbyname
[308] Fix | Delete
#undef getrrsetbyname
[309] Fix | Delete
#endif
[310] Fix | Delete
#define getrrsetbyname lwres_getrrsetbyname
[311] Fix | Delete
[312] Fix | Delete
#ifdef freerrset
[313] Fix | Delete
#undef freerrset
[314] Fix | Delete
#endif
[315] Fix | Delete
#define freerrset lwres_freerrset
[316] Fix | Delete
[317] Fix | Delete
#ifdef notyet
[318] Fix | Delete
#define getservbyname lwres_getservbyname
[319] Fix | Delete
#define getservbyport lwres_getservbyport
[320] Fix | Delete
#define getservent lwres_getservent
[321] Fix | Delete
#define setservent lwres_setservent
[322] Fix | Delete
#define endservent lwres_endservent
[323] Fix | Delete
[324] Fix | Delete
#define getservbyname_r lwres_getservbyname_r
[325] Fix | Delete
#define getservbyport_r lwres_getservbyport_r
[326] Fix | Delete
#define getservent_r lwres_getservent_r
[327] Fix | Delete
#define setservent_r lwres_setservent_r
[328] Fix | Delete
#define endservent_r lwres_endservent_r
[329] Fix | Delete
[330] Fix | Delete
#define getprotobyname lwres_getprotobyname
[331] Fix | Delete
#define getprotobynumber lwres_getprotobynumber
[332] Fix | Delete
#define getprotoent lwres_getprotoent
[333] Fix | Delete
#define setprotoent lwres_setprotoent
[334] Fix | Delete
#define endprotoent lwres_endprotoent
[335] Fix | Delete
[336] Fix | Delete
#define getprotobyname_r lwres_getprotobyname_r
[337] Fix | Delete
#define getprotobynumber_r lwres_getprotobynumber_r
[338] Fix | Delete
#define getprotoent_r lwres_getprotoent_r
[339] Fix | Delete
#define setprotoent_r lwres_setprotoent_r
[340] Fix | Delete
#define endprotoent_r lwres_endprotoent_r
[341] Fix | Delete
[342] Fix | Delete
#ifdef getnetbyname
[343] Fix | Delete
#undef getnetbyname
[344] Fix | Delete
#endif
[345] Fix | Delete
#define getnetbyname lwres_getnetbyname
[346] Fix | Delete
[347] Fix | Delete
#ifdef getnetbyaddr
[348] Fix | Delete
#undef getnetbyaddr
[349] Fix | Delete
#endif
[350] Fix | Delete
#define getnetbyaddr lwres_getnetbyaddr
[351] Fix | Delete
[352] Fix | Delete
#ifdef getnetent
[353] Fix | Delete
#undef getnetent
[354] Fix | Delete
#endif
[355] Fix | Delete
#define getnetent lwres_getnetent
[356] Fix | Delete
[357] Fix | Delete
#ifdef setnetent
[358] Fix | Delete
#undef setnetent
[359] Fix | Delete
#endif
[360] Fix | Delete
#define setnetent lwres_setnetent
[361] Fix | Delete
[362] Fix | Delete
#ifdef endnetent
[363] Fix | Delete
#undef endnetent
[364] Fix | Delete
#endif
[365] Fix | Delete
#define endnetent lwres_endnetent
[366] Fix | Delete
[367] Fix | Delete
[368] Fix | Delete
#ifdef getnetbyname_r
[369] Fix | Delete
#undef getnetbyname_r
[370] Fix | Delete
#endif
[371] Fix | Delete
#define getnetbyname_r lwres_getnetbyname_r
[372] Fix | Delete
[373] Fix | Delete
#ifdef getnetbyaddr_r
[374] Fix | Delete
#undef getnetbyaddr_r
[375] Fix | Delete
#endif
[376] Fix | Delete
#define getnetbyaddr_r lwres_getnetbyaddr_r
[377] Fix | Delete
[378] Fix | Delete
#ifdef getnetent_r
[379] Fix | Delete
#undef getnetent_r
[380] Fix | Delete
#endif
[381] Fix | Delete
#define getnetent_r lwres_getnetent_r
[382] Fix | Delete
[383] Fix | Delete
#ifdef setnetent_r
[384] Fix | Delete
#undef setnetent_r
[385] Fix | Delete
#endif
[386] Fix | Delete
#define setnetent_r lwres_setnetent_r
[387] Fix | Delete
[388] Fix | Delete
#ifdef endnetent_r
[389] Fix | Delete
#undef endnetent_r
[390] Fix | Delete
#endif
[391] Fix | Delete
#define endnetent_r lwres_endnetent_r
[392] Fix | Delete
#endif /* notyet */
[393] Fix | Delete
[394] Fix | Delete
#ifdef h_errno
[395] Fix | Delete
#undef h_errno
[396] Fix | Delete
#endif
[397] Fix | Delete
#define h_errno lwres_h_errno
[398] Fix | Delete
[399] Fix | Delete
#endif /* LWRES_NAMESPACE */
[400] Fix | Delete
[401] Fix | Delete
LWRES_LANG_BEGINDECLS
[402] Fix | Delete
[403] Fix | Delete
extern int lwres_h_errno;
[404] Fix | Delete
[405] Fix | Delete
int lwres_getaddrinfo(const char *, const char *,
[406] Fix | Delete
const struct addrinfo *, struct addrinfo **);
[407] Fix | Delete
int lwres_getnameinfo(const struct sockaddr *, size_t, char *,
[408] Fix | Delete
size_t, char *, size_t, int);
[409] Fix | Delete
void lwres_freeaddrinfo(struct addrinfo *);
[410] Fix | Delete
char *lwres_gai_strerror(int);
[411] Fix | Delete
[412] Fix | Delete
struct hostent *lwres_gethostbyaddr(const char *, int, int);
[413] Fix | Delete
struct hostent *lwres_gethostbyname(const char *);
[414] Fix | Delete
struct hostent *lwres_gethostbyname2(const char *, int);
[415] Fix | Delete
struct hostent *lwres_gethostent(void);
[416] Fix | Delete
struct hostent *lwres_getipnodebyname(const char *, int, int, int *);
[417] Fix | Delete
struct hostent *lwres_getipnodebyaddr(const void *, size_t, int, int *);
[418] Fix | Delete
void lwres_endhostent(void);
[419] Fix | Delete
void lwres_sethostent(int);
[420] Fix | Delete
/* void lwres_sethostfile(const char *); */
[421] Fix | Delete
void lwres_freehostent(struct hostent *);
[422] Fix | Delete
[423] Fix | Delete
int lwres_getrrsetbyname(const char *, unsigned int, unsigned int,
[424] Fix | Delete
unsigned int, struct rrsetinfo **);
[425] Fix | Delete
void lwres_freerrset(struct rrsetinfo *);
[426] Fix | Delete
[427] Fix | Delete
#ifdef notyet
[428] Fix | Delete
struct netent *lwres_getnetbyaddr(unsigned long, int);
[429] Fix | Delete
struct netent *lwres_getnetbyname(const char *);
[430] Fix | Delete
struct netent *lwres_getnetent(void);
[431] Fix | Delete
void lwres_endnetent(void);
[432] Fix | Delete
void lwres_setnetent(int);
[433] Fix | Delete
[434] Fix | Delete
struct protoent *lwres_getprotobyname(const char *);
[435] Fix | Delete
struct protoent *lwres_getprotobynumber(int);
[436] Fix | Delete
struct protoent *lwres_getprotoent(void);
[437] Fix | Delete
void lwres_endprotoent(void);
[438] Fix | Delete
void lwres_setprotoent(int);
[439] Fix | Delete
[440] Fix | Delete
struct servent *lwres_getservbyname(const char *, const char *);
[441] Fix | Delete
struct servent *lwres_getservbyport(int, const char *);
[442] Fix | Delete
struct servent *lwres_getservent(void);
[443] Fix | Delete
void lwres_endservent(void);
[444] Fix | Delete
void lwres_setservent(int);
[445] Fix | Delete
#endif /* notyet */
[446] Fix | Delete
[447] Fix | Delete
void lwres_herror(const char *);
[448] Fix | Delete
const char *lwres_hstrerror(int);
[449] Fix | Delete
[450] Fix | Delete
[451] Fix | Delete
struct hostent *lwres_gethostbyaddr_r(const char *, int, int, struct hostent *,
[452] Fix | Delete
char *, int, int *);
[453] Fix | Delete
struct hostent *lwres_gethostbyname_r(const char *, struct hostent *,
[454] Fix | Delete
char *, int, int *);
[455] Fix | Delete
struct hostent *lwres_gethostent_r(struct hostent *, char *, int, int *);
[456] Fix | Delete
void lwres_sethostent_r(int);
[457] Fix | Delete
void lwres_endhostent_r(void);
[458] Fix | Delete
[459] Fix | Delete
#ifdef notyet
[460] Fix | Delete
struct netent *lwres_getnetbyname_r(const char *, struct netent *,
[461] Fix | Delete
char *, int);
[462] Fix | Delete
struct netent *lwres_getnetbyaddr_r(long, int, struct netent *,
[463] Fix | Delete
char *, int);
[464] Fix | Delete
struct netent *lwres_getnetent_r(struct netent *, char *, int);
[465] Fix | Delete
void lwres_setnetent_r(int);
[466] Fix | Delete
void lwres_endnetent_r(void);
[467] Fix | Delete
[468] Fix | Delete
struct protoent *lwres_getprotobyname_r(const char *,
[469] Fix | Delete
struct protoent *, char *, int);
[470] Fix | Delete
struct protoent *lwres_getprotobynumber_r(int,
[471] Fix | Delete
struct protoent *, char *, int);
[472] Fix | Delete
struct protoent *lwres_getprotoent_r(struct protoent *, char *, int);
[473] Fix | Delete
void lwres_setprotoent_r(int);
[474] Fix | Delete
void lwres_endprotoent_r(void);
[475] Fix | Delete
[476] Fix | Delete
struct servent *lwres_getservbyname_r(const char *name, const char *,
[477] Fix | Delete
struct servent *, char *, int);
[478] Fix | Delete
struct servent *lwres_getservbyport_r(int port, const char *,
[479] Fix | Delete
struct servent *, char *, int);
[480] Fix | Delete
struct servent *lwres_getservent_r(struct servent *, char *, int);
[481] Fix | Delete
void lwres_setservent_r(int);
[482] Fix | Delete
void lwres_endservent_r(void);
[483] Fix | Delete
#endif /* notyet */
[484] Fix | Delete
[485] Fix | Delete
LWRES_LANG_ENDDECLS
[486] Fix | Delete
[487] Fix | Delete
#ifdef notyet
[488] Fix | Delete
/* This is nec'y to make this include file properly replace the sun version. */
[489] Fix | Delete
#ifdef sun
[490] Fix | Delete
#ifdef __GNU_LIBRARY__
[491] Fix | Delete
#include <rpc/netdb.h> /* Required. */
[492] Fix | Delete
#else /* !__GNU_LIBRARY__ */
[493] Fix | Delete
struct rpcent {
[494] Fix | Delete
char *r_name; /* name of server for this rpc program */
[495] Fix | Delete
char **r_aliases; /* alias list */
[496] Fix | Delete
int r_number; /* rpc program number */
[497] Fix | Delete
};
[498] Fix | Delete
struct rpcent *lwres_getrpcbyname();
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function