Home
last modified time | relevance | path

Searched refs:ads (Results 1 – 25 of 31) sorted by relevance

12

/reactos/sdk/lib/3rdparty/adns/src/
H A Dsetup.c64 ss= ads->servers+ads->nservers; in addserver()
70 if (ads->nsearchlist) free(*ads->searchlist); in freesearchlist()
75 if (!ads->configerrno) ads->configerrno= en; in saveerr()
480 ads= malloc(sizeof(*ads)); if (!ads) return errno; in init_begin()
491 ads->udpsocket= ads->tcpsocket= -1; in init_begin()
495 ads->nservers= ads->nsortlist= ads->nsearchlist= ads->tcpserver= 0; in init_begin()
674 ads->udpw.head ? ads->udpw.head : in adns_forallqueries_begin()
675 ads->tcpw.head ? ads->tcpw.head : in adns_forallqueries_begin()
692 ads->tcpw.head ? ads->tcpw.head : in adns_forallqueries_next()
693 ads->childw.head ? ads->childw.head : in adns_forallqueries_next()
[all …]
H A Devent.c56 ads->tcprecv.used= ads->tcprecv_skip= ads->tcpsend.used= 0; in tcp_close()
75 ads->tcpserver= (serv+1)%ads->nservers; in adns__tcp_broken()
81 adns__debug(ads,ads->tcpserver,0,"TCP connected"); in tcp_connected()
130 addr.sin_addr= ads->servers[ads->tcpserver].addr; in adns__tcp_tryconnect()
356 ads->tcprecv.buf[ads->tcprecv_skip+1]); in adns_processreadable()
369 ads->tcprecv.used -= ads->tcprecv_skip; in adns_processreadable()
370 memmove(ads->tcprecv.buf,ads->tcprecv.buf+ads->tcprecv_skip, (size_t) ads->tcprecv.used); in adns_processreadable()
377 ads->tcprecv.buf+ads->tcprecv.used, in adns_processreadable()
378 ads->tcprecv.avail-ads->tcprecv.used); in adns_processreadable()
479 r= adns_socket_write(ads->tcpsocket,ads->tcpsend.buf,ads->tcpsend.used); in adns_processwriteable()
[all …]
H A Dcheck.c108 assert(!(ads->sortlist[i].base.s_addr & ~ads->sortlist[i].mask.s_addr)); in checkc_global()
110 assert(ads->tcpserver >= 0 && ads->tcpserver < ads->nservers); in checkc_global()
115 checkc_notcpbuf(ads); in checkc_global()
120 checkc_notcpbuf(ads); in checkc_global()
124 assert(ads->tcprecv_skip <= ads->tcprecv.used); in checkc_global()
130 assert(ads->searchlist || !ads->nsearchlist); in checkc_global()
141 checkc_query(ads,qu); in checkc_queue_udpw()
153 checkc_query(ads,qu); in checkc_queue_tcpw()
181 checkc_query(ads,qu); in checkc_queue_output()
201 checkc_global(ads); in adns__consistency()
[all …]
H A Dpoll.c41 adns__consistency(ads,0,cc_entex); in adns_beforepoll()
71 found= adns__pollfds(ads,fds); in adns_beforepoll()
74 found= adns__pollfds(ads,fds_tmp); in adns_beforepoll()
81 adns__consistency(ads,0,cc_entex); in adns_beforepoll()
89 adns__consistency(ads,0,cc_entex); in adns_afterpoll()
95 adns__consistency(ads,0,cc_entex); in adns_afterpoll()
98 int adns_wait_poll(adns_state ads, in adns_wait_poll() argument
105 adns__consistency(ads,0,cc_entex); in adns_wait_poll()
118 adns_globalsystemfailure(ads); in adns_wait_poll()
122 adns_afterpoll(ads,fds,nfds,0); in adns_wait_poll()
[all …]
H A Dtransmit.c172 adns_state ads; in adns__querysend_tcp() local
181 ads= qu->ads; in adns__querysend_tcp()
182 if (!adns__vbuf_ensure(&ads->tcpsend,ads->tcpsend.used+qu->query_dglen+2)) return; in adns__querysend_tcp()
187 ads->tcptimeout.tv_sec= ads->tcptimeout.tv_usec= 0; in adns__querysend_tcp()
189 if (ads->tcpsend.used) { in adns__querysend_tcp()
196 adns__sigpipe_protect(qu->ads); in adns__querysend_tcp()
227 LIST_LINK_TAIL(qu->ads->tcpw,qu); in query_usetcp()
229 adns__tcp_tryconnect(qu->ads,now); in query_usetcp()
235 adns_state ads; in adns__query_send() local
251 ads= qu->ads; in adns__query_send()
[all …]
H A Dreply.c89 for (qu= viatcp ? ads->tcpw.head : ads->udpw.head; qu; qu= nqu) { in adns__procdgram()
107 if (viatcp) LIST_UNLINK(ads->tcpw,qu); in adns__procdgram()
108 else LIST_UNLINK(ads->udpw,qu); in adns__procdgram()
133 adns__debug(ads,serv,qu,"server refused our query"); in adns__procdgram()
148 } else if (ads->iflags & adns_if_debug) { in adns__procdgram()
181 if (ads->iflags & adns_if_debug) { in adns__procdgram()
204 st= adns__parse_domain(ads,serv,qu, &qu->vb, in adns__procdgram()
251 adns__diag(ads,serv,qu, in adns__procdgram()
265 adns__search_next(ads,qu,now); in adns__procdgram()
309 pai.ads= qu->ads; in adns__procdgram()
[all …]
H A Dgeneral.c50 if (!ads->diagfile || in adns__vdiag()
51 (!(ads->iflags & adns_if_debug) && (!prevent || (ads->iflags & prevent)))) in adns__vdiag()
54 if (ads->iflags & adns_if_logpid) { in adns__vdiag()
57 fprintf(ads->diagfile,"adns%s: ",pfx); in adns__vdiag()
60 vfprintf(ads->diagfile,fmt,al); in adns__vdiag()
67 fprintf(ads->diagfile,"%sQNAME=%s, QTYPE=%s", in adns__vdiag()
69 adns__diag_domain(qu->ads,-1,0, &vb, in adns__vdiag()
79 fprintf(ads->diagfile,"%sNS=%s",bef,inet_ntoa(ads->servers[serv].addr)); in adns__vdiag()
83 fputs(aft,ads->diagfile); in adns__vdiag()
90 adns__vdiag(ads," debug",0,serv,qu,fmt,al); in adns__debug()
[all …]
H A Dadns.h480 ADNS_API int adns_synchronous(adns_state ads,
491 ADNS_API int adns_submit(adns_state ads,
500 ADNS_API int adns_check(adns_state ads,
505 ADNS_API int adns_wait(adns_state ads,
511 ADNS_API int adns_wait_poll(adns_state ads,
530 ADNS_API int adns_submit_reverse(adns_state ads,
540 ADNS_API int adns_submit_reverse_any(adns_state ads,
553 ADNS_API void adns_finish(adns_state ads);
559 ADNS_API void adns_forallqueries_begin(adns_state ads);
608 ADNS_API int adns_processany(adns_state ads);
[all …]
H A Dquery.c49 qu->ads= ads; in query_alloc()
204 int adns_submit(adns_state ads, in adns_submit() argument
248 adns__search_next(ads,qu,now); in adns_submit()
255 adns__autosys(ads,now); in adns_submit()
431 adns_state ads; in adns_cancel() local
433 ads= qu->ads; in adns_cancel()
438 LIST_UNLINK(ads->udpw,qu); in adns_cancel()
441 LIST_UNLINK(ads->tcpw,qu); in adns_cancel()
444 LIST_UNLINK(ads->childw,qu); in adns_cancel()
447 LIST_UNLINK(ads->output,qu); in adns_cancel()
[all …]
H A Dinternal.h116 adns_state ads; member
182 adns_state ads; member
334 void adns__debug(adns_state ads, int serv, adns_query qu,
336 void adns__warn(adns_state ads, int serv, adns_query qu,
338 void adns__diag(adns_state ads, int serv, adns_query qu,
382 adns_status adns__mkquery(adns_state ads, vbuf *vb, int *id_r,
533 adns_state ads; member
664 void adns__autosys(adns_state ads, struct timeval now);
674 void adns__fdevents(adns_state ads,
679 int adns__internal_check(adns_state ads,
[all …]
H A Dtypes.c253 for (i=0, slp=ads->sortlist; in search_sortlist()
262 if (!ads->nsortlist) return 0; in dip_inaddr()
264 ai= search_sortlist(ads,a); in dip_inaddr()
265 bi= search_sortlist(ads,b); in dip_inaddr()
272 return dip_inaddr(ads,*ap,*bp); in di_inaddr()
308 const adns_state ads= context; in div_addr() local
437 div_addr, pai->ads); in pap_findaddrs()
445 adns_state ads= parent->ads; in icb_hostaddr() local
529 return dip_inaddr(ads, in dip_hostaddr()
537 return dip_hostaddr(ads, ap,bp); in di_hostaddr()
[all …]
H A Dparse.c59 void adns__findlabel_start(findlabel_state *fls, adns_state ads, in adns__findlabel_start() argument
63 fls->ads= ads; in adns__findlabel_start()
113 adns__diag(fls->ads,fls->serv,fls->qu,"label in domain runs beyond end of domain"); in adns__findlabel_next()
117 adns_status adns__parse_domain(adns_state ads, int serv, adns_query qu, in adns__parse_domain() argument
122 adns__findlabel_start(&fls,ads, serv,qu, dgram,dglen,max, *cbyte_io,cbyte_io); in adns__parse_domain()
124 return adns__parse_domain_more(&fls,ads,qu, vb,flags,dgram); in adns__parse_domain()
127 adns_status adns__parse_domain_more(findlabel_state *fls, adns_state ads, in adns__parse_domain_more() argument
180 adns__findlabel_start(&fls,qu->ads, serv,qu, dgram,dglen,dglen,cbyte,&cbyte); in adns__findrr_anychk()
182 adns__findlabel_start(&eo_fls,qu->ads, -1,0, eo_dgram,eo_dglen,eo_dglen,eo_cbyte,0); in adns__findrr_anychk()
/reactos/sdk/lib/3rdparty/adns/client/
H A Dadnstest.c54 static adns_state ads; variable
61 if (ads) adns_finish(ads); in quitnow()
230 r= adns_init_strcfg(&ads, in main()
235 r= adns_init(&ads, in main()
250 r= adns_submit(ads,domain,types[ti],qflags,mc,&mc->qu); in main()
273 for (adns_forallqueries_begin(ads); in main()
274 (qu= adns_forallqueries_next(ads,&mcr)); in main()
302 r= adns_wait_poll(ads,&qu,&ans,&mcr); in main()
306 r= adns_wait(ads,&qu,&ans,&mcr); in main()
H A Dadh-main.c43 if (ads) adns_finish(ads); in quitnow()
237 if (!ov_pipe && !ads) usageerr("no domains given, and -f/--pipe not used; try --help"); in main()
242 r= adns_check(ads,&qu,&answer,&qun_v); in main()
257 adns_beforeselect(ads, &maxfd, &readfds,&writefds,&exceptfds, &tv,&tvbuf,0); in main()
265 adns_afterselect(ads, maxfd, &readfds,&writefds,&exceptfds, 0); in main()
H A Dadh-query.c35 adns_state ads; variable
44 if (ads) return; in ensure_adns_init()
54 r= adns_init_strcfg(&ads, initflags, stderr, config_text); in ensure_adns_init()
56 r= adns_init(&ads, initflags, 0); in ensure_adns_init()
68 if (ov_pipe && !ads) usageerr("-f/--pipe not consistent with domains on command line"); in prep_query()
104 r= adns_submit_reverse(ads, in of_ptr()
127 r= adns_submit_reverse_any(ads, in of_reverse()
144 r= adns_submit(ads, domain, in query_do()
H A Dadnsresfilter.c70 static adns_state ads; variable
290 r= adns_check(ads,&qu,&ans,&context); in checkadnsqueries()
328 r= adns_submit_reverse(ads, (const struct sockaddr*)&sa, in procaddr()
400 r= adns_init_strcfg(&ads,initflags,stderr,config_text); in startup()
402 r= adns_init(&ads,initflags,0); in startup()
448 adns_beforeselect(ads,&maxfd,&readfds,&writefds,&exceptfds, in main()
460 adns_afterselect(ads,maxfd,&readfds,&writefds,&exceptfds,&now); in main()
475 adns_finish(ads); in main()
H A Dadnshost.h106 extern adns_state ads;
H A Dadh-opts.c327 if (ads) usageerr("global option %s%s specified after query domain(s)",prefix,opt); in find()
/reactos/drivers/filesystems/btrfs/
H A Dfastio.c58 if (fcb->ads) { in _Function_class_()
101 bool ads; in _Function_class_() local
128 ads = fcb->ads; in _Function_class_()
130 if (ads) { in _Function_class_()
239 if (fcb->ads) { in _Function_class_()
256 if (fcb->ads) { in _Function_class_()
H A Dfileinfo.c199 if (fcb->ads) { in set_basic_information()
381 if (fcb->ads) { in set_disposition_information()
2594 if (fcb->ads) { in set_rename_information()
4544 if (fcb->ads)
4713 if (fcb->ads)
4890 if (fcb->ads)
4932 if (fcb->ads)
4949 if (fcb->ads)
4991 if (fcb->ads)
5034 if (fcb->ads)
[all …]
H A Dfsctl.c1189 if (fcb->ads) in get_inode_info()
1358 if (fcb->ads) in set_inode_info()
1765 if (fcb->ads) { in set_sparse()
1976 if (fcb->ads) { in set_zero_data()
3317 if (!sourcefcb->ads && !fcb->ads) { in duplicate_extents()
3383 if (fcb->ads || sourcefcb->ads || make_inline || fcb_is_inline(sourcefcb)) { in duplicate_extents()
3390 } else if (fcb->ads) { in duplicate_extents()
3418 if (sourcefcb->ads) { in duplicate_extents()
3437 if (fcb->ads) in duplicate_extents()
3652 if (fcb->ads) { in duplicate_extents()
[all …]
H A Dwrite.c3344 if (fcb->ads) { in extend_file()
4202 newlength = fcb->ads ? fcb->adsdata.Length : fcb->inode_item.st_size; in write_file2()
4229 if (fcb->ads) in write_file2()
4252 } else if (!fcb->ads) in write_file2()
4312 …queue_notification_fcb(fcb->ads ? fileref->parent : fileref, fcb->ads ? FILE_NOTIFY_CHANGE_STREAM_… in write_file2()
4313 …fcb->ads ? FILE_ACTION_MODIFIED_STREAM : FILE_ACTION_MODIFIED, fcb->ads && fileref->dc ? &fileref-… in write_file2()
4319 if (fcb->ads) { in write_file2()
4504 if (fcb->ads) { in write_file2()
4521 if (!fcb->ads) { in write_file2()
4543 mark_fcb_dirty(fcb->ads ? fileref->parent->fcb : fcb); in write_file2()
[all …]
H A Dcreate.c729 if (!fcb->ads) {
1276 if (!fcb2->ads) {
1411 fcb->ads = true;
2789 fcb->ads = true;
3610 if (fileref->fcb->ads) { in open_file3()
3633 if (!fileref->fcb->ads) { in open_file3()
3724 if (fileref->fcb->ads) { in open_file3()
3906 if (fcb2->ads) { in oplock_complete()
4017 if (!fileref->fcb->ads && fileref->fcb->type == BTRFS_TYPE_DIRECTORY) in open_file2()
4067 if (fileref->fcb->type == BTRFS_TYPE_DIRECTORY && !fileref->fcb->ads) { in open_file2()
[all …]
H A Dreparse.c454 if (fcb->ads) { in set_reparse_point()
543 if (fcb->ads) { in delete_reparse_point()
/reactos/sdk/lib/3rdparty/adns/
H A Dchangelog79 `ads->tcpstate == server_connecting || ads->tcpstate == server_ok'.
207 * ads->configerrno now initialised (in setup.c).

12