Lines Matching refs:wf

240         wait_fds_ptr_t wf)
267 wf->fdlistlen = wf->num_dpys = app->count;
269 wf->fdlistlen = wf->num_dpys = 0;
274 wf->fdlistlen++;
277 if (!wf->fdlist || wf->fdlist == wf->stack) {
278 wf->fdlist = (struct pollfd *)
279 XtStackAlloc(sizeof(struct pollfd) * (size_t) wf->fdlistlen,
280 wf->stack);
283 wf->fdlist = XtReallocArray(wf->fdlist, (Cardinal) wf->fdlistlen,
287 if (wf->fdlistlen) {
288 struct pollfd *fdlp = wf->fdlist;
292 for (ii = 0; ii < wf->num_dpys; ii++, fdlp++) {
314 wf->nfds = app->fds.nfds;
316 wf->rmask = app->fds.rmask;
317 wf->wmask = app->fds.wmask;
318 wf->emask = app->fds.emask;
321 wf->rmask = wf->wmask = wf->emask = zero_fd;
325 FD_SET(ConnectionNumber(app->list[ii]), &wf->rmask);
369 IoWait(wait_times_ptr_t wt, wait_fds_ptr_t wf)
372 return poll(wf->fdlist, (nfds_t) wf->fdlistlen, wt->poll_wait);
374 return Select (wf->nfds, &wf->rmask, &wf->wmask, &wf->emask,
381 wait_fds_ptr_t wf,
398 fdlp = wf->fdlist;
399 for (ii = 0; ii < wf->num_dpys; ii++, fdlp++) {
412 fdlp = &wf->fdlist[wf->num_dpys];
413 for (ii = wf->num_dpys; ii < wf->fdlistlen; ii++, fdlp++) {
461 for (ii = 0; ii < wf->nfds && nfds > 0; ii++) {
464 if (FD_ISSET(ii, &wf->rmask)
493 if (FD_ISSET(ii, &wf->wmask)
501 if (FD_ISSET(ii, &wf->emask)
584 wait_fds_t wf;
608 wf.fdlist = NULL;
609 wf.stack = fdlist;
610 wf.fdlistlen = wf.num_dpys = 0;
630 XtStackFree((XtPointer) wf.fdlist, fdlist);
637 InitFds(app, (Boolean) ignoreEvents, (Boolean) ignoreInputs, &wf);
642 nfds = IoWait(&wt, &wf);
647 nfds = IoWait(&wt, &wf);
668 XtStackFree((XtPointer) wf.fdlist, fdlist);
681 XtStackFree((XtPointer) wf.fdlist, fdlist);
739 XtStackFree((XtPointer) wf.fdlist, fdlist);
749 XtStackFree((XtPointer) wf.fdlist, fdlist);
754 FindInputs(app, &wf, nfds,
760 XtStackFree((XtPointer) wf.fdlist, fdlist);
768 XtStackFree((XtPointer) wf.fdlist, fdlist);