Home
last modified time | relevance | path

Searched refs:FTS_NOCHDIR (Results 1 – 24 of 24) sorted by relevance

/freebsd/lib/libc/gen/
H A Dfts-compat11.c70 #define FCHDIR(sp, fd) (!ISSET(FTS_NOCHDIR) && fchdir(fd))
137 SET(FTS_NOCHDIR); in freebsd11_fts_open()
205 if (!ISSET(FTS_NOCHDIR) && in freebsd11_fts_open()
207 SET(FTS_NOCHDIR); in freebsd11_fts_open()
270 if (!ISSET(FTS_NOCHDIR)) { in freebsd11_fts_close()
330 if (p->fts_info == FTS_D && !ISSET(FTS_NOCHDIR)) { in freebsd11_fts_read()
422 if (p->fts_info == FTS_D && !ISSET(FTS_NOCHDIR)) { in freebsd11_fts_read()
560 ISSET(FTS_NOCHDIR)) in freebsd11_fts_children()
734 if (ISSET(FTS_NOCHDIR)) { in fts_build()
778 if (ISSET(FTS_NOCHDIR)) in fts_build()
[all …]
H A Dfts-compat.c81 #define FCHDIR(sp, fd) (!ISSET(FTS_NOCHDIR) && fchdir(fd))
143 SET(FTS_NOCHDIR); in __fts_open_44bsd()
215 if (!ISSET(FTS_NOCHDIR) && in __fts_open_44bsd()
217 SET(FTS_NOCHDIR); in __fts_open_44bsd()
280 if (!ISSET(FTS_NOCHDIR)) { in __fts_close_44bsd()
340 if (p->fts_info == FTS_D && !ISSET(FTS_NOCHDIR)) { in __fts_read_44bsd()
431 if (p->fts_info == FTS_D && !ISSET(FTS_NOCHDIR)) { in __fts_read_44bsd()
566 ISSET(FTS_NOCHDIR)) in __fts_children_44bsd()
735 if (ISSET(FTS_NOCHDIR)) { in fts_build()
779 if (ISSET(FTS_NOCHDIR)) in fts_build()
[all …]
H A Dfts.c83 #define FCHDIR(sp, fd) (!ISSET(FTS_NOCHDIR) && fchdir(fd))
140 SET(FTS_NOCHDIR); in __fts_open()
214 if (!ISSET(FTS_NOCHDIR) && in __fts_open()
216 SET(FTS_NOCHDIR); in __fts_open()
381 if (!ISSET(FTS_NOCHDIR)) { in fts_close()
441 if (p->fts_info == FTS_D && !ISSET(FTS_NOCHDIR)) { in fts_read()
533 if (p->fts_info == FTS_D && !ISSET(FTS_NOCHDIR)) { in fts_read()
671 ISSET(FTS_NOCHDIR)) in fts_children()
859 if (ISSET(FTS_NOCHDIR)) { in fts_build()
903 if (ISSET(FTS_NOCHDIR)) in fts_build()
[all …]
H A Dftw.c44 ftsp = fts_open(paths, FTS_LOGICAL | FTS_COMFOLLOW | FTS_NOCHDIR, NULL); in ftw()
H A Dftw-compat11.c52 FTS_LOGICAL | FTS_COMFOLLOW | FTS_NOCHDIR, NULL); in freebsd11_ftw()
H A Dnftw-compat11.c51 ftsflags |= FTS_NOCHDIR; in freebsd11_nftw()
H A Dnftw.c47 ftsflags |= FTS_NOCHDIR; in nftw()
H A Dfts-compat.h49 #define FTS_NOCHDIR 0x004 /* don't change directories */ macro
/freebsd/contrib/mandoc/
H A Dtest-fts.c24 FTS_PHYSICAL | FTS_NOCHDIR, fts_compare); in main()
H A Dcompat_fts.h49 #define FTS_NOCHDIR 0x0004 /* don't change directories */ macro
H A Dcatman.c188 FTS_PHYSICAL | FTS_NOCHDIR, NULL)) == NULL) { in process_tree()
H A Dmandocdb.c597 f = fts_open((char * const *)argv, FTS_PHYSICAL | FTS_NOCHDIR, in treescan()
/freebsd/lib/libc/tests/gen/
H A Dfts_misc_test.c66 FTS_PHYSICAL | FTS_NOCHDIR, in ATF_TC_BODY()
80 * With FTS_NOCHDIR and absolute paths, the application may call chdir(2)
87 "FTS_NOCHDIR: application chdir between reads does not "
113 ATF_REQUIRE((fts = fts_open(paths, FTS_PHYSICAL | FTS_NOCHDIR,
118 * With FTS_NOCHDIR, fts must not call chdir() itself, so the
127 "PWD changed during FTS_NOCHDIR traversal");
465 * FTS_NOCHDIR with an empty terminal directory must not corrupt the
473 "FTS_NOCHDIR + empty directory does not corrupt path "
484 FTS_PHYSICAL | FTS_NOCHDIR,
H A Dfts_options_test.c260 FTS_PHYSICAL | FTS_NOCHDIR, in ATF_TC_BODY()
/freebsd/usr.bin/find/
H A Dmain.c146 ftsoptions |= FTS_NOCHDIR; in main()
H A Dfunction.c486 if (ftsoptions & FTS_NOCHDIR) in c_delete()
663 !(ftsoptions & FTS_NOCHDIR) && fchdir(dotfd)) { in f_exec()
703 if (option->flags & F_EXECDIR && ftsoptions & FTS_NOCHDIR) in c_exec()
/freebsd/include/
H A Dfts.h62 #define FTS_NOCHDIR 0x000004 /* don't change directories */ macro
/freebsd/bin/pax/
H A Dftree.c93 ftsopts = FTS_NOCHDIR; in ftree_start()
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_stat.c104 ops = FTS_NOCHDIR; in ATF_TC_BODY()
/freebsd/bin/cp/
H A Dcp.c112 fts_options = FTS_NOCHDIR | FTS_PHYSICAL; in main()
/freebsd/usr.bin/grep/
H A Dutil.c148 fts_flags |= FTS_NOCHDIR; in grep_tree()
/freebsd/usr.sbin/certctl/
H A Dcertctl.c386 int fts_options = FTS_LOGICAL | FTS_NOCHDIR; in read_certs()
/freebsd/lib/libpmc/pmu-events/
H A Djevents.c1518 ftsflags |= FTS_NOCHDIR; in nftw_ordered()
/freebsd/usr.bin/gzip/
H A Dgzip.c1986 fts = fts_open(path_argv, FTS_PHYSICAL | FTS_NOCHDIR, NULL); in handle_dir()