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);
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
char *CDECL strerror(int err)
int CDECL putc(int c, FILE *file)
int CDECL fclose(FILE *file)
int WINAPIV fprintf(FILE *file, const char *format,...)
int CDECL vfprintf(FILE *file, const char *format, va_list valist)
int CDECL fputs(const char *s, FILE *file)
_ACRTIMP char *__cdecl strchr(const char *, int)
_ACRTIMP size_t __cdecl strlen(const char *)
_ACRTIMP int __cdecl strcmp(const char *, const char *)
_ACRTIMP int __cdecl strncmp(const char *, const char *, size_t)
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
#define memmove(s1, s2, n)
D3D11_SHADER_VARIABLE_DESC desc
enum optioninfo::oi_type type
#define FD_ISSET(fd, set)