/ast/src/lib/libast/comp/ |
H A D | ftw.c | 24 * ftw implementation 28 #include <ftw.h> 33 ftw_user(Ftw_t* ftw) argument 35 register int n = ftw->info; 41 return (*ftw_userf)(ftw->path, &ftw->statb, n); 45 ftw(const char* path, int(*userf)(const char*, const struct stat*, int), int depth) function
|
H A D | nftw.c | 28 #include <ftw.h> 34 nftw_user(Ftw_t* ftw) argument 36 register int n = ftw->info; 42 else if ((n & FTW_SL) && (!(nftw_flags & FTW_PHYSICAL) || stat(ftw->path, &st))) 44 nftw.base = ftw->pathlen - ftw->namelen; 45 nftw.level = ftw->level; 47 n = (*nftw_userf)(ftw->path, &ftw->statb, n, &nftw); 48 ftw [all...] |
H A D | ftw.h | 24 * ftw,nftw over ftwalk 55 extern int ftw(const char*, int(*)(const char*, const struct stat*, int), int);
|
/ast/src/cmd/tw/ |
H A D | ftwlocal.c | 27 * return 1 if ftw is mounted on a local filesystem 31 ftwlocal(Ftw_t* ftw) argument 36 return statvfs(ftw->path, &fs) || (fs.f_flag & ST_LOCAL); 38 return !strgrpmatch(fmtfs(&ftw->statb), "([an]fs|samb)", NiL, 0, STR_LEFT|STR_ICASE);
|
H A D | tw.c | 398 act(register Ftw_t* ftw, int op) argument 411 if ((i = cmdarg(state.cmd, ftw->path, ftw->pathlen)) >= state.errexit) 415 if (findwrite(state.find, ftw->path, ftw->pathlen, (ftw->info & FTW_D) ? "system/dir" : (char*)0)) 419 fp = sfopen(NiL, PATH(ftw), "r"); 420 if (findwrite(state.find, ftw->path, ftw->pathlen, magictype(state.magic, fp, PATH(ftw), 503 intermediate(register Ftw_t* ftw, register char* path) argument 530 tw(register Ftw_t* ftw) argument 688 Ftw_t ftw; local [all...] |
H A D | expr.c | 113 * dereference ftw 117 deref(register Ftw_t* ftw, Exid_t* sym, register Exref_t* ref) argument 121 path = ftw->path; 124 if (!ftw || ref->symbol->index != F_parent) 126 if (ftw && !ref->next && MEMINDEX(sym->index)) break; 130 ftw = ftw->parent; 132 return ftw; 204 register Ftw_t* ftw; local 219 ftw 596 register Ftw_t* ftw; local 827 eval(Exnode_t* x, Ftw_t* ftw) argument 840 getnum(Exid_t* sym, Ftw_t* ftw) argument 855 Ftw_t* ftw = (Ftw_t*)handle; local 875 print(Sfio_t* sp, Ftw_t* ftw, const char* format) argument [all...] |
/ast/src/cmd/std/ |
H A D | ls.c | 325 Ftw_t* ftw; /* ftw info */ member in struct:__anon231 341 int comma; /* LS_COMMAS ftw.level crossing */ 466 register Ftw_t* ftw; local 483 ftw = lp->ftw; 484 st = &ftw->statb; 488 ftw = 0; 576 if (ftw != state.top) 609 if (ftw 802 pr(register List_t* lp, Ftw_t* ftw, register int fill) argument 841 col(register List_t* lp, register Ftw_t* ftw, int length) argument 1169 dir(register Ftw_t* ftw) argument 1259 ls(register Ftw_t* ftw) argument [all...] |
/ast/src/cmd/cs/ |
H A D | cs.c | 184 list(register Ftw_t* ftw) argument 206 if (ftw->level > 0) 208 if (ftw->level > elementsof(label)) 210 ftw->status = FTW_SKIP; 211 mode = ftw->statb.st_mode & (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH); 212 if (strmatch(ftw->name, "*-*-*-*")) 216 t = strrchr(ftw->name, '-'); 226 sfprintf(sp, "%s/X%s", ftw->path, CS_MNT_TAIL); 229 s = p + ftw->pathlen + 1; 280 st.st_mtime = ftw [all...] |
/ast/src/cmd/pax/ |
H A D | copy.c | 64 copyout(register Ftw_t* ftw) argument 69 if (getfile(ap, f, ftw)) 77 ftw->status = FTW_SKIP; 350 copyinout(Ftw_t* ftw) argument 359 if (getfile(state.out, f, ftw) && selectfile(state.out, f))
|
H A D | file.c | 755 getfile(register Archive_t* ap, register File_t* f, register Ftw_t* ftw) argument 761 name = ftw->path; 763 switch (ftw->info) 776 ftw->status = FTW_SKIP; 777 else if (ftw->info == FTW_DNX) 780 ftw->status = FTW_SKIP; 792 n = ftw->pathlen; 808 name = stash(&ap->path.name, name, ftw->pathlen); 810 f->path = stash(&ap->path.path, name, ftw->pathlen); 815 ap->st = ftw [all...] |
H A D | bio.c | 971 devpath(register Ftw_t* ftw) argument 973 if (ftw->info == FTW_F && ftw->statb.st_rdev == dev.st->st_rdev && S_ISCHR(ftw->statb.st_mode) == S_ISCHR(dev.st->st_mode)) 975 message((-1, "device name is %s", ftw->path)); 976 dev.path = strdup(ftw->path);
|
/ast/src/lib/libast/ |
H A D | Makefile | 32 ccode.h cdt.h cdtlib.h cmdarg.h debug.h dt.h error.h find.h ftw.h \ 136 basename.c closelog.c dirname.c fmtmsglib.c fnmatch.c ftw.c \
|