Lines Matching refs:dir_status
168 get_dir_status (FTS const *fts, FTSENT const *ent, int *dir_status) in get_dir_status() argument
170 if (*dir_status == DS_UNKNOWN) in get_dir_status()
171 *dir_status = directory_status (fts->fts_cwd_fd, ent->fts_accpath); in get_dir_status()
172 return *dir_status; in get_dir_status()
191 int *dir_status) in prompt() argument
256 && get_dir_status (fts, ent, dir_status) != 0))) in prompt()
259 wp_errno = *dir_status <= 0 ? EISDIR : *dir_status; in prompt()
275 && get_dir_status (fts, ent, dir_status) == DS_NONEMPTY) in prompt()
281 else if (0 < *dir_status) in prompt()
283 if ( ! (x->remove_empty_directories && *dir_status == EACCES)) in prompt()
285 error (0, *dir_status, _("cannot remove %s"), quoted_name); in prompt()
444 int dir_status = DS_UNKNOWN; in rm_fts() local
451 && get_dir_status (fts, ent, &dir_status) != 0)) in rm_fts()
527 PA_DESCEND_INTO_DIR, &dir_status); in rm_fts()
529 if (s == RM_USER_ACCEPTED && dir_status == DS_EMPTY) in rm_fts()
572 &dir_status); in rm_fts()