Searched defs:fts (Results 1 - 14 of 14) sorted by relevance

/ast/src/lib/libcmd/
H A Dfts_fix.c42 _fts_read(FTS* fts) argument
48 if ((oe = _ast_fts_read(fts)) && ast.version < 20100102L && (ne || (ne = newof(0, FTSENT, 1, 0))))
H A Dchmod.c166 register FTS* fts; local
262 if (!(fts = fts_open(argv, flags, NiL)))
268 while (!sh_checksig(context) && (ent = fts_read(fts)))
321 fts_close(fts);
H A Drm.c333 FTS* fts; local
407 if (fts = fts_open(argv, FTS_PHYSICAL, NiL))
409 while (!sh_checksig(context) && (ent = fts_read(fts)) && !rm(&state, ent));
410 fts_close(fts);
H A Dchgrp.c225 register FTS* fts; local
395 if (!(fts = fts_open(argv + 1, flags, NiL)))
397 while (!sh_checksig(context) && (ent = fts_read(fts)))
497 fts_close(fts);
H A Dcksum.c448 FTS* fts; local
592 else if (!(fts = fts_open(argv, flags, state.sort)))
596 while (!sh_checksig(context) && (ent = fts_read(fts)))
623 fts_close(fts);
H A Dcp.c251 FTS* fts; local
513 if (fts = fts_open((char**)e, FTS_NOCHDIR|FTS_ONEPATH|FTS_PHYSICAL|FTS_NOPOSTORDER|FTS_NOSTAT|FTS_NOSEEDOTDIR, NiL))
515 while (sub = fts_read(fts))
522 fts_close(fts);
685 FTS* fts; local
986 if (fts = fts_open(argv, state->flags, NiL))
988 while (!sh_checksig(context) && (ent = fts_read(fts)) && !visit(state, ent));
989 fts_close(fts);
/ast/src/cmd/std/
H A Ddu.c78 #include <fts.h>
119 register FTS* fts; local
222 if (!(fts = fts_open(argv, flags, NiL)))
224 while (ent = fts_read(fts))
/ast/src/lib/libast/include/
H A Dfts.h29 * fts interface definitions
125 FTS* fts; /* fts_open() handle */ member in struct:Ftsent
/ast/src/cmd/mailx/
H A Dfio.c77 #include <fts.h>
230 * fts sort order to find max entry
258 register FTS* fts; local
297 if (next && (fts = fts_open((char**)name, FTS_ONEPATH|FTS_NOCHDIR|FTS_NOPOSTORDER, dirmax))) {
298 while (ent = fts_read(fts)) {
305 fts_close(fts);
340 * fts sort order
355 register FTS* fts; local
366 if (!(fts = fts_open((char**)name, FTS_ONEPATH|FTS_NOCHDIR|FTS_NOPOSTORDER, dircmp))) {
378 while (ent = fts_read(fts)) {
[all...]
/ast/src/cmd/re/
H A Dgrep.c103 #include <fts.h>
625 FTS* fts; local
836 else if (old) /* just in case the fts logic is incompatible */
865 if (!(fts = fts_open(argv, flags, NiL)))
867 while (ent = fts_read(fts))
897 fts_close(fts);
/ast/src/lib/libast/misc/
H A Dfts.c28 * fts implementation unwound from the kpv ftwalk() of 1988-10-30
95 #include <fts.h>
177 node(FTS* fts, FTSENT* parent, register char* name, register size_t namelen) argument
182 if (fts->free && namelen < MINNAME)
184 f = fts->free;
185 fts->free = f->fts_link;
192 fts->fts_errno = errno;
193 fts->state = FTS_error;
196 f->fts = fts;
460 popdirs(FTS* fts) argument
504 info(FTS* fts, register FTSENT* f, const char* path, struct stat* sp, int flags) argument
590 toplist(FTS* fts, register char* const* pathnames) argument
689 order(FTS* fts) argument
710 resize(register FTS* fts, size_t inc) argument
748 register FTS* fts; local
825 fts_read(register FTS* fts) argument
1445 fts_set(register FTS* fts, register FTSENT* f, int status) argument
1475 fts_children(register FTS* fts, int flags) argument
1539 fts_close(register FTS* fts) argument
[all...]
/ast/src/cmd/html/
H A Dhtmlrefs.c133 #include <fts.h>
459 scan(State_t* state, FTS* fts) argument
466 while (ent = fts_read(fts))
602 FTS* fts; local
607 fts = fts_open((char**)p, FTS_ONEPATH|FTS_META|FTS_PHYSICAL|FTS_NOPOSTORDER, order);
610 if (fts)
612 while (ent = scan(state, fts))
614 if (fts_close(fts))
902 FTS* fts; local
1175 if (!(fts
[all...]
/ast/src/cmd/kshlib/cmdtst/
H A Dgrep.c112 #include <fts.h>
685 FTS* fts; local
707 fts = 0;
905 if (!(fts = fts_open(argv, flags, NiL)))
911 while (!sh_checksig(context) && (ent = fts_read(fts)))
957 if (fts)
958 fts_close(fts);
/ast/src/cmd/tw/
H A Dfind.c26 * rewrite of find program to use fts*() and optget()
94 #include <fts.h>
1670 register State_t* state = f1->fts->fts_handle;
1716 FTS* fts; local
1721 if (fts = fts_open(paths, flags, sort))
1723 fts->fts_handle = state;
1724 while (ent = fts_read(fts))
1730 fts_close(fts);

Completed in 37 milliseconds