Lines Matching refs:base

71 	char*		base;			/* basename in path	*/ \
439 setpdir(register char* home, register char* path, register char* base) in setpdir() argument
444 if (base > path) in setpdir()
446 c = base[0]; in setpdir()
447 base[0] = 0; in setpdir()
449 base[0] = c; in setpdir()
735 if (fts->base) in resize()
736 fts->base = newp + (fts->base - old); in resize()
903 *(fts->base = fts->path) = 0; in fts_read()
921 if ((fts->baselen = f->fts_namelen) >= (fts->endbuf - fts->base) && resize(fts, fts->baselen)) in fts_read()
923 memcpy(fts->base, f->name, fts->baselen + 1); in fts_read()
924 fts->name = fts->cd ? fts->path : fts->base; in fts_read()
946 if (fts->base[fts->baselen - 1] != '/') in fts_read()
947 memcpy(fts->base + fts->baselen, "/.", 3); in fts_read()
950 fts->base[fts->baselen] = 0; in fts_read()
962 f->fts_pathlen = (fts->base - f->fts_path) + fts->baselen; in fts_read()
1004 fts->endbase = fts->base + fts->baselen; in fts_read()
1056 fts->endbase = fts->base + fts->baselen; in fts_read()
1129 fts->base[fts->baselen] = 0; in fts_read()
1144 fts->cd = setpdir(fts->home, fts->path, fts->base); in fts_read()
1153 f->fts_pathlen = (fts->base - f->fts_path) + f->fts_namelen; in fts_read()
1162 fts->base[fts->baselen] = 0; in fts_read()
1216 fts->cd = setpdir(fts->home, fts->path, fts->base); in fts_read()
1220 f->fts_pathlen = (fts->base - f->fts_path) + f->fts_namelen; in fts_read()
1239 if (fts->base > fts->path + t->fts_namelen) in fts_read()
1240 fts->base--; in fts_read()
1241 *fts->base = 0; in fts_read()
1242 fts->base -= t->fts_namelen; in fts_read()
1273 if (*fts->base) in fts_read()
1274 fts->base += f->fts_namelen; in fts_read()
1275 if (*(fts->base - 1) != '/') in fts_read()
1276 *fts->base++ = '/'; in fts_read()
1277 *fts->base = 0; in fts_read()
1297 if ((fts->cd = chdir(fts->base)) < 0) in fts_read()
1311 if (fts->base[fts->baselen - 1] != '/') in fts_read()
1312 fts->base[fts->baselen] = '/'; in fts_read()