Changeset View
Changeset View
Standalone View
Standalone View
include/resolv.h
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
#ifndef _RESOLV_H_ | #ifndef _RESOLV_H_ | ||||
#define _RESOLV_H_ | #define _RESOLV_H_ | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
#include <sys/socket.h> | #include <sys/socket.h> | ||||
#include <b64.h> | |||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <arpa/nameser.h> | #include <arpa/nameser.h> | ||||
/*% | /*% | ||||
* Revision information. This is the release date in YYYYMMDD format. | * Revision information. This is the release date in YYYYMMDD format. | ||||
* It can change every day so the right thing to do with it is use it | * It can change every day so the right thing to do with it is use it | ||||
* in preprocessor commands such as "#if (__RES > 19931104)". Do not | * in preprocessor commands such as "#if (__RES > 19931104)". Do not | ||||
* compare for equality; rather, use it to determine whether your resolver | * compare for equality; rather, use it to determine whether your resolver | ||||
▲ Show 20 Lines • Show All 260 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
extern const struct res_sym __p_key_syms[]; | extern const struct res_sym __p_key_syms[]; | ||||
extern const struct res_sym __p_cert_syms[]; | extern const struct res_sym __p_cert_syms[]; | ||||
extern const struct res_sym __p_class_syms[]; | extern const struct res_sym __p_class_syms[]; | ||||
extern const struct res_sym __p_type_syms[]; | extern const struct res_sym __p_type_syms[]; | ||||
extern const struct res_sym __p_rcode_syms[]; | extern const struct res_sym __p_rcode_syms[]; | ||||
#endif /* SHARED_LIBBIND */ | #endif /* SHARED_LIBBIND */ | ||||
#define b64_ntop __b64_ntop | |||||
#define b64_pton __b64_pton | |||||
#define dn_comp __dn_comp | #define dn_comp __dn_comp | ||||
#define dn_count_labels __dn_count_labels | #define dn_count_labels __dn_count_labels | ||||
#define dn_expand __dn_expand | #define dn_expand __dn_expand | ||||
#define dn_skipname __dn_skipname | #define dn_skipname __dn_skipname | ||||
#define fp_resstat __fp_resstat | #define fp_resstat __fp_resstat | ||||
#define loc_aton __loc_aton | #define loc_aton __loc_aton | ||||
#define loc_ntoa __loc_ntoa | #define loc_ntoa __loc_ntoa | ||||
#define p_cdname __p_cdname | #define p_cdname __p_cdname | ||||
▲ Show 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | |||||
__BEGIN_DECLS | __BEGIN_DECLS | ||||
int res_hnok(const char *); | int res_hnok(const char *); | ||||
int res_ownok(const char *); | int res_ownok(const char *); | ||||
int res_mailok(const char *); | int res_mailok(const char *); | ||||
int res_dnok(const char *); | int res_dnok(const char *); | ||||
int sym_ston(const struct res_sym *, const char *, int *); | int sym_ston(const struct res_sym *, const char *, int *); | ||||
const char * sym_ntos(const struct res_sym *, int, int *); | const char * sym_ntos(const struct res_sym *, int, int *); | ||||
const char * sym_ntop(const struct res_sym *, int, int *); | const char * sym_ntop(const struct res_sym *, int, int *); | ||||
int b64_ntop(u_char const *, size_t, char *, size_t); | |||||
int b64_pton(char const *, u_char *, size_t); | |||||
int loc_aton(const char *, u_char *); | int loc_aton(const char *, u_char *); | ||||
const char * loc_ntoa(const u_char *, char *); | const char * loc_ntoa(const u_char *, char *); | ||||
int dn_skipname(const u_char *, const u_char *); | int dn_skipname(const u_char *, const u_char *); | ||||
void putlong(u_int32_t, u_char *); | void putlong(u_int32_t, u_char *); | ||||
void putshort(u_int16_t, u_char *); | void putshort(u_int16_t, u_char *); | ||||
#ifndef __ultrix__ | #ifndef __ultrix__ | ||||
u_int16_t _getshort(const u_char *); | u_int16_t _getshort(const u_char *); | ||||
u_int32_t _getlong(const u_char *); | u_int32_t _getlong(const u_char *); | ||||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |