49void sysfail(
const char *what,
int errnoval) {
121 if (!tnp->type)
usageerr(
"unknown RR type %s",
arg);
126 const char *
const **argv_p,
132 if (
arg[0] ==
'-' ||
arg[0] ==
'+') {
133 if (
arg[0] ==
'-' &&
arg[1] ==
'-') {
150 usageerr(
"option --%s requires two more arguments", oip->
lopt);
157 }
else if (
arg[0] ==
'-' &&
arg[1] == 0) {
159 if (!
arg)
usageerr(
"option `-' must be followed by a domain");
188 char *newline, *
space;
191 while (!anydone ||
used) {
230 fd_set readfds, writefds, exceptfds;
237 if (!
ov_pipe && !
ads)
usageerr(
"no domains given, and -f/--pipe not used; try --help");
259 r=
select(maxfd, &readfds,&writefds,&exceptfds, tv);
int strcmp(const char *String1, const char *String2)
ACPI_SIZE strlen(const char *String)
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)
char * strcpy(char *DstString, const char *SrcString)
char * strchr(const char *String, int ch)
void usageerr(const char *fmt,...)
void * xmalloc(size_t sz)
static void process_optarg(const char *arg, const char *const **argv_p, const char *value)
void sysfail(const char *what, int errnoval)
static void read_stdin(void)
char * xstrsave(const char *str)
void opt_do(const struct optioninfo *oip, int invert, const char *arg, const char *arg2)
const struct optioninfo * opt_findl(const char *opt)
const struct optioninfo * opt_finds(const char **optp)
struct outstanding_list outstanding
void ensure_adns_init(void)
void query_done(struct query_node *qun, adns_answer *answer)
void query_do(const char *domain)
ADNS_API void adns_finish(adns_state ads)
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)
ADNS_API int adns_check(adns_state ads, adns_query *query_io, adns_answer **answer_r, void **context_r)
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)
#define ADNS_CAPTURE_ERRNO
INT WSAAPI select(IN INT s, IN OUT LPFD_SET readfds, IN OUT LPFD_SET writefds, IN OUT LPFD_SET exceptfds, IN CONST struct timeval *timeout)
GLuint GLuint GLsizei GLenum type
GLdouble GLdouble GLdouble r
GLuint GLuint GLuint GLuint GLuint GLuint GLuint arg2
GLenum GLuint GLenum GLsizei const GLchar * buf
_Check_return_opt_ _CRTIMP int __cdecl fputs(_In_z_ const char *_Str, _Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
_Check_return_opt_ _CRTIMP int __cdecl vfprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
_Check_return_opt_ _CRTIMP int __cdecl putc(_In_ int _Ch, _Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
#define memmove(s1, s2, n)
static const WCHAR desc[]
const char * strerror(int err)
enum optioninfo::oi_type type
#define FD_ISSET(fd, set)