ReactOS 0.4.16-dev-597-gdbf7844
|
#include <stdio.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
Go to the source code of this file.
Classes | |
struct | adns_rr_addr |
struct | adns_rr_hostaddr |
struct | adns_rr_strpair |
struct | adns_rr_inthostaddr |
struct | adns_rr_intstr |
struct | adns_rr_intstrpair |
struct | adns_rr_soa |
struct | adns_answer |
Macros | |
#define | ADNS_API |
#define | ADNS_SOCKET int |
#define | adns_socket_close(sck) close(sck) |
#define | adns_socket_read(sck, data, len) read(sck, data, len) |
#define | adns_socket_write(sck, data, len) write(sck, data, len) |
#define | ADNS_CAPTURE_ERRNO {} |
#define | ADNS_CLEAR_ERRNO {} |
#define | ADNS_POLLFDS_RECOMMENDED 2 |
Typedefs | |
typedef struct adns__state * | adns_state |
typedef struct adns__query * | adns_query |
typedef struct adns__query* adns_query |
typedef struct adns__state* adns_state |
Enumerator | |
---|---|
adns_if_noenv | |
adns_if_noerrprint | |
adns_if_noserverwarn | |
adns_if_debug | |
adns_if_logpid | |
adns_if_noautosys | |
adns_if_eintr | |
adns_if_nosigpipe | |
adns_if_checkc_entex | |
adns_if_checkc_freq |
Definition at line 87 of file adns.h.
Definition at line 113 of file adns.h.
Definition at line 215 of file adns.h.
ADNS_API void adns_addserver | ( | adns_state | state, |
struct in_addr | server | ||
) |
ADNS_API void adns_afterpoll | ( | adns_state | ads, |
const struct pollfd * | fds, | ||
int | nfds, | ||
const struct timeval * | now | ||
) |
ADNS_API void adns_afterselect | ( | adns_state | ads, |
int | maxfd, | ||
const fd_set * | readfds, | ||
const fd_set * | writefds, | ||
const fd_set * | exceptfds, | ||
const struct timeval * | now | ||
) |
Definition at line 595 of file event.c.
Referenced by adns_wait(), and main().
ADNS_API int adns_beforepoll | ( | adns_state | ads, |
struct pollfd * | fds, | ||
int * | nfds_io, | ||
int * | timeout_io, | ||
const struct timeval * | now | ||
) |
ADNS_API void adns_beforeselect | ( | adns_state | ads, |
int * | maxfd, | ||
fd_set * | readfds, | ||
fd_set * | writefds, | ||
fd_set * | exceptfds, | ||
struct timeval ** | tv_mod, | ||
struct timeval * | tv_buf, | ||
const struct timeval * | now | ||
) |
Definition at line 562 of file event.c.
Referenced by adns_wait(), and main().
ADNS_API void adns_cancel | ( | adns_query | query | ) |
Definition at line 430 of file query.c.
Referenced by adns_finish(), adns_synchronous(), cancel_children(), and of_cancel_id().
Definition at line 715 of file setup.c.
Referenced by Query_Main().
ADNS_API int adns_check | ( | adns_state | ads, |
adns_query * | query_io, | ||
adns_answer ** | answer_r, | ||
void ** | context_r | ||
) |
Definition at line 731 of file event.c.
Referenced by checkadnsqueries(), main(), and proclog().
ADNS_API void adns_checkconsistency | ( | adns_state | ads, |
adns_query | qu | ||
) |
ADNS_API const char * adns_errabbrev | ( | adns_status | st | ) |
Definition at line 275 of file general.c.
Referenced by csp_hostaddr(), main(), and print_status().
ADNS_API const char * adns_errtypeabbrev | ( | adns_status | st | ) |
Definition at line 311 of file general.c.
Referenced by csp_hostaddr(), and print_status().
ADNS_API void adns_finish | ( | adns_state | ads | ) |
Definition at line 650 of file setup.c.
Referenced by DnsReleaseContextHandle(), main(), proclog(), Query_Main(), and quitnow().
ADNS_API void adns_firsttimeout | ( | adns_state | ads, |
struct timeval ** | tv_mod, | ||
struct timeval * | tv_buf, | ||
struct timeval | now | ||
) |
ADNS_API void adns_forallqueries_begin | ( | adns_state | ads | ) |
ADNS_API adns_query adns_forallqueries_next | ( | adns_state | ads, |
void ** | context_r | ||
) |
Definition at line 680 of file setup.c.
Referenced by main().
ADNS_API void adns_globalsystemfailure | ( | adns_state | ads | ) |
Definition at line 619 of file event.c.
Referenced by adns__must_gettimeofday(), adns_wait(), and fd_event().
ADNS_API int adns_init | ( | adns_state * | newstate_r, |
adns_initflags | flags, | ||
FILE * | diagfile | ||
) |
Definition at line 568 of file setup.c.
Referenced by DnsAcquireContextHandle_W(), ensure_adns_init(), main(), proclog(), Query_Main(), and startup().
ADNS_API int adns_init_strcfg | ( | adns_state * | newstate_r, |
adns_initflags | flags, | ||
FILE * | diagfile, | ||
const char * | configtext | ||
) |
Definition at line 629 of file setup.c.
Referenced by ensure_adns_init(), main(), proclog(), and startup().
ADNS_API int adns_numservers | ( | adns_state | state | ) |
Definition at line 718 of file setup.c.
Referenced by Query_Main().
ADNS_API int adns_processany | ( | adns_state | ads | ) |
Definition at line 639 of file event.c.
Referenced by adns__autosys().
ADNS_API int adns_processexceptional | ( | adns_state | ads, |
ADNS_SOCKET | fd, | ||
const struct timeval * | now | ||
) |
Definition at line 504 of file event.c.
Referenced by adns__fdevents().
ADNS_API int adns_processreadable | ( | adns_state | ads, |
ADNS_SOCKET | fd, | ||
const struct timeval * | now | ||
) |
Definition at line 338 of file event.c.
Referenced by adns__fdevents().
Definition at line 299 of file event.c.
Referenced by adns_afterselect(), and adns_processany().
ADNS_API int adns_processwriteable | ( | adns_state | ads, |
ADNS_SOCKET | fd, | ||
const struct timeval * | now | ||
) |
Definition at line 443 of file event.c.
Referenced by adns__fdevents().
ADNS_API adns_status adns_rr_info | ( | adns_rrtype | type, |
const char ** | rrtname_r, | ||
const char ** | fmtname_r, | ||
int * | len_r, | ||
const void * | datap, | ||
char ** | data_r | ||
) |
Definition at line 186 of file general.c.
Referenced by main(), print_dnsfail(), and query_done().
ADNS_API const char * adns_strerror | ( | adns_status | st | ) |
Definition at line 268 of file general.c.
Referenced by adns__diag_domain(), csp_hostaddr(), dumptype(), failure_status(), main(), print_dnsfail(), and print_status().
ADNS_API int adns_submit | ( | adns_state | ads, |
const char * | owner, | ||
adns_rrtype | type, | ||
adns_queryflags | flags, | ||
void * | context, | ||
adns_query * | query_r | ||
) |
Definition at line 204 of file query.c.
Referenced by adns_submit_reverse_any(), adns_synchronous(), main(), query_do(), and readline().
ADNS_API int adns_submit_reverse | ( | adns_state | ads, |
const struct sockaddr * | addr, | ||
adns_rrtype | type, | ||
adns_queryflags | flags, | ||
void * | context, | ||
adns_query * | query_r | ||
) |
Definition at line 304 of file query.c.
Referenced by of_ptr(), and procaddr().
ADNS_API int adns_submit_reverse_any | ( | adns_state | ads, |
const struct sockaddr * | addr, | ||
const char * | rzone, | ||
adns_rrtype | type, | ||
adns_queryflags | flags, | ||
void * | context, | ||
adns_query * | query_r | ||
) |
Definition at line 271 of file query.c.
Referenced by adns_submit_reverse(), and of_reverse().
ADNS_API int adns_synchronous | ( | adns_state | ads, |
const char * | owner, | ||
adns_rrtype | type, | ||
adns_queryflags | flags, | ||
adns_answer ** | answer_r | ||
) |
Definition at line 314 of file query.c.
Referenced by Query_Main().
ADNS_API int adns_wait | ( | adns_state | ads, |
adns_query * | query_io, | ||
adns_answer ** | answer_r, | ||
void ** | context_r | ||
) |
Definition at line 696 of file event.c.
Referenced by adns_synchronous(), main(), and proclog().
ADNS_API int adns_wait_poll | ( | adns_state | ads, |
adns_query * | query_io, | ||
adns_answer ** | answer_r, | ||
void ** | context_r | ||
) |