/coreutils/gl/lib/ |
D | xfts.c | 35 FTS *fts = fts_open (argv, options | FTS_CWDFD, compar); in xfts_open() local 36 if (fts == nullptr) in xfts_open() 44 return fts; in xfts_open() 55 cycle_warning_required (FTS const *fts, FTSENT const *ent) in cycle_warning_required() argument 61 return ((ISSET (fts, FTS_PHYSICAL) && !ISSET (fts, FTS_COMFOLLOW)) in cycle_warning_required() 62 || (ISSET (fts, FTS_PHYSICAL) && ISSET (fts, FTS_COMFOLLOW) in cycle_warning_required()
|
D | xfts.h | 10 cycle_warning_required (FTS const *fts, FTSENT const *ent)
|
/coreutils/src/ |
D | remove.c | 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 [all …]
|
D | chmod.c | 203 process_file (FTS *fts, FTSENT *ent) in process_file() argument 227 fts_set (fts, ent, FTS_AGAIN); in process_file() 253 if (cycle_warning_required (fts, ent)) in process_file() 269 fts_set (fts, ent, FTS_SKIP); in process_file() 271 ignore_value (fts_read (fts)); in process_file() 280 if (chmodat (fts->fts_cwd_fd, file, ch.new_mode) == 0) in process_file() 294 && !mode_changed (fts->fts_cwd_fd, file, file_full_name, in process_file() 323 fts_set (fts, ent, FTS_SKIP); in process_file() 337 FTS *fts = xfts_open (files, bit_flags, nullptr); in process_files() local 343 ent = fts_read (fts); in process_files() [all …]
|
D | chown-core.c | 283 change_file_owner (FTS *fts, FTSENT *ent, in change_file_owner() argument 307 fts_set (fts, ent, FTS_SKIP); in change_file_owner() 309 ignore_value (fts_read (fts)); in change_file_owner() 332 fts_set (fts, ent, FTS_AGAIN); in change_file_owner() 355 if (cycle_warning_required (fts, ent)) in change_file_owner() 387 if (fstatat (fts->fts_cwd_fd, file, &stat_buf, 0) != 0) in change_file_owner() 418 ok = (lchownat (fts->fts_cwd_fd, file, uid, gid) == 0); in change_file_owner() 442 = restricted_chown (fts->fts_cwd_fd, file, file_stats, uid, gid, in change_file_owner() 450 ok = (chownat (fts->fts_cwd_fd, file, uid, gid) == 0); in change_file_owner() 520 fts_set (fts, ent, FTS_SKIP); in change_file_owner() [all …]
|
D | chcon.c | 208 process_file (FTS *fts, FTSENT *ent) in process_file() argument 226 fts_set (fts, ent, FTS_SKIP); in process_file() 228 ignore_value (fts_read (fts)); in process_file() 251 fts_set (fts, ent, FTS_AGAIN); in process_file() 271 if (cycle_warning_required (fts, ent)) in process_file() 295 if (change_file_context (fts->fts_cwd_fd, file) != 0) in process_file() 300 fts_set (fts, ent, FTS_SKIP); in process_file() 314 FTS *fts = xfts_open (files, bit_flags, nullptr); in process_files() local 320 ent = fts_read (fts); in process_files() 332 ok &= process_file (fts, ent); in process_files() [all …]
|
D | du.c | 487 process_file (FTS *fts, FTSENT *ent) in process_file() argument 523 fts_set (fts, ent, FTS_AGAIN); in process_file() 524 MAYBE_UNUSED FTSENT const *e = fts_read (fts); in process_file() 540 if (fts->fts_options & FTS_XDEV in process_file() 542 && fts->fts_dev != sb->st_dev) in process_file() 556 fts_set (fts, ent, FTS_SKIP); in process_file() 557 MAYBE_UNUSED FTSENT const *e = fts_read (fts); in process_file() 577 if (cycle_warning_required (fts, ent) in process_file() 683 FTS *fts = xfts_open (files, bit_flags, nullptr); in du_files() local 689 ent = fts_read (fts); in du_files() [all …]
|
D | selinux.c | 311 FTS *fts = xfts_open ((char *const *) ftspath, FTS_PHYSICAL, nullptr); in restorecon() local 314 for (FTSENT *ent; (ent = fts_read (fts)); ) in restorecon() 315 if (restorecon_private (selabel_handle, fts->fts_path) < 0) in restorecon() 321 if (fts_close (fts) != 0) in restorecon()
|
/coreutils/ |
D | TODO | 25 cp --recursive: use fts and *at functions to perform directory traversals
|
D | NEWS | 562 [bug introduced by the rewrite to use fts in coreutils-8.0] 1205 [this bug was inherent in the use of fts: thus, for rm the bug was 1207 fts in 6.0. chcon was added in coreutils-6.9.91 with fts support. ] 2355 [bug introduced in coreutils-8.0, when rm began using fts] 2440 fts-using tools (rm, du, chmod, chgrp, chown, chcon) no longer use memory 2444 [this bug was inherent in the use of fts: thus, for rm the bug was 2446 as much memory. du, chmod, chgrp and chown started using fts in 6.0. 2447 chcon was added in coreutils-6.9.91 with fts support. ] 2933 The rewrite to make rm use fts introduced a regression whereby 2975 The rewrite to make rm use fts introduced a regression whereby [all …]
|