| /mirbsd/src/lib/libc/gen/ |
| D | fts.c | 201 mem2: free(sp->fts_path); in fts_open() 220 memmove(sp->fts_path, p->fts_name, len + 1); in fts_load() 226 p->fts_accpath = p->fts_path = sp->fts_path; in fts_load() 255 free(sp->fts_path); in fts_close() 281 (p->fts_path[p->fts_pathlen - 1] == '/' \ 418 name: t = sp->fts_path + NAPPEND(p->fts_parent); in fts_read() 439 sp->fts_path[p->fts_pathlen] = '\0'; in fts_read() 664 cp = sp->fts_path + len; in fts_build() 689 oldaddr = sp->fts_path; in fts_build() 707 if (oldaddr != sp->fts_path) { in fts_build() [all …]
|
| D | ftw.c | 87 error = fn(cur->fts_path, cur->fts_statp, fnflag); in ftw()
|
| D | nftw.c | 106 error = fn(cur->fts_path, cur->fts_statp, fnflag, &ftw_); in nftw()
|
| /mirbsd/src/bin/pax/ |
| D | ftree.c | 402 set_ftime(ftent->fts_path, mtime, atime, 1); in next_file() 408 paxwarn(1,"File system cycle found at %s",ftent->fts_path); in next_file() 412 "Unable to read directory %s", ftent->fts_path); in next_file() 421 "Unable to access %s", ftent->fts_path); in next_file() 450 add_atdir(ftent->fts_path, arcn->sb.st_dev, in next_file() 475 if ((cnt = readlink(ftent->fts_path, arcn->ln_name, in next_file() 478 ftent->fts_path); in next_file() 506 arcn->nlen = strlcpy(arcn->name, ftent->fts_path, sizeof(arcn->name)); in next_file() 509 arcn->org_name = ftent->fts_path; in next_file()
|
| /mirbsd/src/bin/cp/ |
| D | cp.c | 278 curr->fts_path, strerror(curr->fts_errno)); in copy() 282 warnx("%s: directory causes a cycle", curr->fts_path); in copy() 313 p = find_last_component(curr->fts_path); in copy() 314 base = p - curr->fts_path; in copy() 316 if (!strcmp(&curr->fts_path[base], in copy() 323 p = &curr->fts_path[base]; in copy() 380 to.p_path, curr->fts_path); in copy() 389 to.p_path, curr->fts_path); in copy() 403 curr->fts_path); in copy() 443 warnx("%s: %s", curr->fts_path, strerror(EOPNOTSUPP)); in copy()
|
| D | utils.c | 67 if ((from_fd = open(entp->fts_path, O_RDONLY, 0)) == -1) { in copy_file() 68 warn("%s", entp->fts_path); in copy_file() 122 warn("mmap: %s", entp->fts_path); in copy_file() 132 warn("%s", entp->fts_path); in copy_file() 148 warn("%s", entp->fts_path); in copy_file() 191 if ((len = readlink(p->fts_path, link, sizeof(link)-1)) == -1) { in copy_link() 192 warn("readlink: %s", p->fts_path); in copy_link()
|
| /mirbsd/src/usr.sbin/mtree/ |
| D | mtree.h | 102 ((p)->fts_path[0] == '.' && (p)->fts_path[1] == '/' ? \ 103 (p)->fts_path + 2 : (p)->fts_path)
|
| D | create.c | 100 (void)printf("# %s\n", p->fts_path); in cwalk() 106 (void)printf("%*s# %s\n", indent, "", p->fts_path); in cwalk() 115 p->fts_path, strerror(p->fts_errno)); in cwalk()
|
| /mirbsd/src/usr.sbin/makefs/nbsrc/usr.sbin/mtree/ |
| D | mtree.h | 128 ((p)->fts_path[0] == '.' && (p)->fts_path[1] == '/' ? \ 129 (p)->fts_path + 2 : (p)->fts_path)
|
| /mirbsd/src/bin/rm/ |
| D | rm.c | 196 warnx("%s: %s", p->fts_path, in rm_tree() 202 errx(EXIT_FAILURE, "%s: %s", p->fts_path, in rm_tree() 213 warnx("%s: %s", p->fts_path, in rm_tree() 221 if (!fflag && !check(p->fts_path, p->fts_accpath, in rm_tree() 234 !check(p->fts_path, p->fts_accpath, p->fts_statp)) in rm_tree() 267 warn("%s", p->fts_path); in rm_tree() 270 (void)printf("%s\n", p->fts_path); in rm_tree()
|
| /mirbsd/src/bin/chmod/ |
| D | chmod.c | 225 warnx("%s: %s", p->fts_path, strerror(p->fts_errno)); in main() 235 warnx("%s: %s", p->fts_path, strerror(p->fts_errno)); in main() 263 warn("%s", p->fts_path); in main() 268 warn("%s", p->fts_path); in main() 273 warn("%s", p->fts_path); in main()
|
| /mirbsd/src/usr.bin/find/ |
| D | find.c | 182 warn("%s", entry->fts_path); in find_execute() 186 if (isxargs && strpbrk(entry->fts_path, BADCH)) { in find_execute() 188 warnx("%s: illegal path", entry->fts_path); in find_execute()
|
| D | function.c | 367 entry->fts_path, plan->e_len[cnt]); in f_exec() 475 (void)strncpy(base, basename(entry->fts_path), sizeof(base) - 1); in f_execdir() 804 printlong(entry->fts_path, entry->fts_accpath, entry->fts_statp); in f_ls() 1106 return (!fnmatch(plan->c_data, entry->fts_path, 0)); in f_path() 1172 (void)printf("%s\n", entry->fts_path); in f_print() 1180 (void)fputs(entry->fts_path, stdout); in f_print0() 1211 err(1, "%s", entry->fts_path); in f_prune()
|
| D | misc.c | 147 iov[1].iov_base = entry->fts_path; in show_path()
|
| /mirbsd/src/include/ |
| D | fts.h | 45 char *fts_path; /* path for this descent */ member 73 char *fts_path; /* root path */ member
|
| /mirbsd/src/usr.bin/du/ |
| D | du.c | 184 p->fts_path); in main() 191 warnx("%s: %s", p->fts_path, strerror(p->fts_errno)); in main() 203 p->fts_path); in main()
|
| /mirbsd/src/bin/ls/ |
| D | ls.c | 350 (void)printf("\n%s:\n", p->fts_path); in traverse() 352 (void)printf("%s:\n", p->fts_path); in traverse() 367 warnx("%s: %s", p->fts_name[0] == '\0' ? p->fts_path : in traverse()
|
| /mirbsd/src/usr.bin/grep/ |
| D | util.c | 82 errx(2, "%s: %s", p->fts_path, strerror(p->fts_errno)); in grep_tree() 87 c += procfile(p->fts_path); in grep_tree()
|
| /mirbsd/src/sbin/dump/ |
| D | traverse.c | 185 msg("Can't fts_read %s: %s\n", entry->fts_path, in mapfiles()
|
| /mirbsd/src/usr.bin/compress/ |
| D | main.c | 323 infile = entry->fts_path; in main()
|