Lines Matching refs:dfd
71 DIR *dfd; /* Current directory descriptor */
75 #define SETDIR(dfd) \
77 tw_dir_fd = dfd; \
82 #define CLRDIR(dfd) \
83 if (dfd != NULL) { \
85 xclosedir(dfd); \
86 dfd = NULL; \
157 tw_dir_next(struct Strbuf *res, DIR *dfd)
161 if (dfd == NULL)
164 if ((dirp = readdir(dfd)) != NULL) {
343 tw_cmd_start(DIR *dfd, const Char *pat)
347 SETDIR(dfd)
369 CLRDIR(tw_cmd_state.dfd)
401 while ((tw_cmd_state.dfd == NULL ||
402 (res->len = 0, ret = tw_dir_next(res, tw_cmd_state.dfd)) == 0) &&
405 CLRDIR(tw_cmd_state.dfd)
419 tw_cmd_state.dfd = opendir(".");
425 tw_cmd_state.dfd = opendir(short2str(*tw_cmd_state.pathv));
535 tw_var_start(DIR *dfd, const Char *pat)
538 SETDIR(dfd)
549 tw_alias_start(DIR *dfd, const Char *pat)
552 SETDIR(dfd)
563 tw_complete_start(DIR *dfd, const Char *pat)
566 SETDIR(dfd)
593 tw_logname_start(DIR *dfd, const Char *pat)
596 SETDIR(dfd)
659 tw_grpname_start(DIR *dfd, const Char *pat)
662 SETDIR(dfd)
728 tw_file_start(DIR *dfd, const Char *pat)
732 SETDIR(dfd)
772 CLRDIR(tw_cmd_state.dfd)
832 tw_vl_start(DIR *dfd, const Char *pat)
834 SETDIR(dfd)
848 tw_wl_start(DIR *dfd, const Char *pat)
850 SETDIR(dfd);
887 tw_bind_start(DIR *dfd, const Char *pat)
890 SETDIR(dfd)
921 tw_limit_start(DIR *dfd, const Char *pat)
924 SETDIR(dfd)
959 tw_sig_start(DIR *dfd, const Char *pat)
962 SETDIR(dfd)
996 tw_job_start(DIR *dfd, const Char *pat)
999 SETDIR(dfd)