Lines Matching refs:fts

168 get_dir_status (FTS const *fts, FTSENT const *ent, int *dir_status)  in get_dir_status()  argument
171 *dir_status = directory_status (fts->fts_cwd_fd, ent->fts_accpath); in get_dir_status()
189 prompt (FTS const *fts, FTSENT const *ent, bool is_dir, in prompt() argument
193 int fd_cwd = fts->fts_cwd_fd; in prompt()
256 && get_dir_status (fts, ent, dir_status) != 0))) in prompt()
275 && get_dir_status (fts, ent, dir_status) == DS_NONEMPTY) in prompt()
365 fts_skip_tree (FTS *fts, FTSENT *ent) in fts_skip_tree() argument
367 fts_set (fts, ent, FTS_SKIP); in fts_skip_tree()
369 ignore_value (fts_read (fts)); in fts_skip_tree()
391 excise (FTS *fts, FTSENT *ent, struct rm_options const *x, bool is_dir) in excise() argument
394 if (unlinkat (fts->fts_cwd_fd, ent->fts_accpath, flag) == 0) in excise()
412 if ( ! (fstatat (fts->fts_cwd_fd, ent->fts_accpath, &st, in excise()
442 rm_fts (FTS *fts, FTSENT *ent, struct rm_options const *x) in rm_fts() argument
451 && get_dir_status (fts, ent, &dir_status) != 0)) in rm_fts()
460 fts_skip_tree (fts, ent); in rm_fts()
476 fts_skip_tree (fts, ent); in rm_fts()
486 fts_skip_tree (fts, ent); in rm_fts()
510 if (failed || fts->fts_dev != statbuf.st_dev) in rm_fts()
519 fts_skip_tree (fts, ent); in rm_fts()
526 enum RM_status s = prompt (fts, ent, true /*is_dir*/, x, in rm_fts()
533 s = excise (fts, ent, x, true); in rm_fts()
535 fts_skip_tree (fts, ent); in rm_fts()
541 fts_skip_tree (fts, ent); in rm_fts()
562 && ent->fts_statp->st_dev != fts->fts_dev) in rm_fts()
571 enum RM_status s = prompt (fts, ent, is_dir, x, PA_REMOVE_DIR, in rm_fts()
575 return excise (fts, ent, x, is_dir); in rm_fts()
580 fts_skip_tree (fts, ent); in rm_fts()
588 fts_skip_tree (fts, ent); in rm_fts()
617 FTS *fts = xfts_open (file, bit_flags, nullptr); in rm() local
623 ent = fts_read (fts); in rm()
634 enum RM_status s = rm_fts (fts, ent, x); in rm()
640 if (fts_close (fts) != 0) in rm()