159 {
161 struct myctx *mc, *mcw;
162 void *mcr;
164 const char *initstring, *rrtn, *fmtn;
165 const char *
const *fdomlist, *
domain;
167 int len,
i, qc, qi,
tc, ti, ch, qflags, initflagsnum;
172 char ownflags[10];
173 char *ep;
175
179 } else {
181 }
183 initstring=
argv[1]+1;
185 } else {
186 initstring= 0;
187 }
188
190 if (*ep == ',') {
191 owninitflags= ep+1;
193 } else if (!*ep) {
194 owninitflags= "";
195 } else {
196 usageerr(
"bad <initflagsnum>[,<owninitflags>]");
197 }
198
204 for (
cp=
argv[1]+1, ti=0; ti<
tc; ti++) {
207 if (ch !=
',')
usageerr(
"unexpected char (not comma) in or between types");
209 }
210 }
214 } else {
217 }
218
220 fdomlist= (
const char *
const*)
argv+1;
221
222 for (qc=0; fdomlist[qc]; qc++);
226
228
229 if (initstring) {
232 ^initflagsnum,
234 } else {
237 0);
238 }
240
241 for (qi=0; qi<qc; qi++) {
244 for (ti=0; ti<
tc; ti++) {
247 mc->
fdom= fdomlist[qi];
248
257 } else {
262 }
263 }
264 }
265
266 for (;;) {
267 for (qi=0; qi<qc; qi++) {
268 for (ti=0; ti<
tc; ti++) {
271 }
272 }
275 ) {
276 mc= mcr;
280 }
281 mcw= 0;
282 for (qi=0; qi<qc; qi++) {
283 for (ti=0; ti<
tc; ti++) {
287 if (!mcw) mcw= mc;
288 }
289 }
290 if (!mcw) break;
291
292 if (
strchr(owninitflags,
's')) {
294 mc= mcw;
295 } else {
296 qu= 0;
297 mc= 0;
298 }
299
300#ifdef HAVE_POLL
301 if (
strchr(owninitflags,
'p')) {
303 } else
304#endif
305 {
307 }
309
311 else mc= mcr;
314
316
318
322 fprintf(
stdout,
"%s%s: %s; nrrs=%d; cname=%s; owner=%s; ttl=%ld\n",
323 ownflags[0] ? " ownflags=" : "", ownflags,
338 }
339 }
341
343 }
344
346}
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)
ADNS_API void adns_forallqueries_begin(adns_state ads)
ADNS_API int adns_init(adns_state *newstate_r, adns_initflags flags, FILE *diagfile)
ADNS_API int adns_wait(adns_state ads, adns_query *query_io, adns_answer **answer_r, void **context_r)
ADNS_API adns_query adns_forallqueries_next(adns_state ads, void **context_r)
ADNS_API const char * adns_errabbrev(adns_status st)
ADNS_API int adns_wait_poll(adns_state ads, adns_query *query_io, adns_answer **answer_r, void **context_r)
ADNS_API int adns_submit(adns_state ads, const char *owner, adns_rrtype type, adns_queryflags flags, void *context, adns_query *query_r)
ADNS_API int adns_init_strcfg(adns_state *newstate_r, adns_initflags flags, FILE *diagfile, const char *configtext)
#define gettimeofday(tv, tz)
static adns_initflags initflags
static const adns_rrtype defaulttypes[]
static int consistsof(const char *string, const char *accept)
static void usageerr(const char *why) NONRETURNING
static adns_rrtype * types_a
static struct myctx * mcs
static void dumptype(adns_status ri, const char *rrtn, const char *fmtn)
static void failure_status(const char *what, adns_status st) NONRETURNING
static void fdom_split(const char *fdom, const char **dom_r, int *qf_r, char *ownflags, int ownflags_l)
static void failure_errno(const char *what, int errnoval) NONRETURNING
GLdouble GLdouble GLdouble r
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_CRTIMP void __cdecl perror(_In_opt_z_ const char *_ErrMsg)
_Check_return_opt_ _CRTIMP int __cdecl putc(_In_ int _Ch, _Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl setvbuf(_Inout_ FILE *_File, _Inout_updates_opt_z_(_Size) char *_Buf, _In_ int _Mode, _In_ size_t _Size)
union adns_answer::@4225 rrs