| /netbsd-src/bin/setfacl/ |
| H A D | setfacl.c | 200 warnx("%s: %s", file->fts_path, strerror(file->fts_errno)); in handle_file() 208 file->fts_path); in handle_file() 222 file->fts_path); in handle_file() 231 file->fts_path); in handle_file() 240 warn("%s: acl_get_file() failed", file->fts_path); in handle_file() 242 warn("%s: acl_get_link_np() failed", file->fts_path); in handle_file() 255 file->fts_path); in handle_file() 261 local_error += merge_acl(nacl, &acl, file->fts_path); in handle_file() 273 file->fts_path); in handle_file() 276 remove_ext(&acl, file->fts_path); in handle_file() [all …]
|
| /netbsd-src/external/bsd/mdocml/dist/ |
| H A D | compat_fts.c | 162 mem2: free(sp->fts_path); in fts_open() 181 memmove(sp->fts_path, p->fts_name, len + 1); in fts_load() 187 p->fts_accpath = p->fts_path = sp->fts_path; in fts_load() 214 free(sp->fts_path); in fts_close() 225 (p->fts_path[p->fts_pathlen - 1] == '/' \ 297 name: t = sp->fts_path + NAPPEND(p->fts_parent); in fts_read() 318 sp->fts_path[p->fts_pathlen] = '\0'; in fts_read() 392 cp = sp->fts_path + len; in fts_build() 420 oldaddr = sp->fts_path; in fts_build() 437 if (oldaddr != sp->fts_path) { in fts_build() [all …]
|
| H A D | compat_fts.h | 43 char *fts_path; /* path for this descent */ member 62 char *fts_path; /* root path */ member
|
| /netbsd-src/bin/cp/ |
| H A D | cp.c | 345 warnx("%s: %s", curr->fts_path, in copy() 350 warnx("%s: directory causes a cycle", curr->fts_path); in copy() 389 p = strrchr(curr->fts_path, '/'); in copy() 391 (int)(p - curr->fts_path + 1); in copy() 393 if (!strcmp(&curr->fts_path[base], in copy() 400 p = &curr->fts_path[base]; in copy() 427 to.p_path, curr->fts_path); in copy() 436 to.p_path, curr->fts_path); in copy() 459 curr->fts_path); in copy() 527 curr->fts_path); in copy() [all …]
|
| H A D | utils.c | 110 if (link(entp->fts_path, to.p_path)) { in copy_file() 117 if ((from_fd = open(entp->fts_path, O_RDONLY, 0)) == -1) { in copy_file() 118 warn("%s", entp->fts_path); in copy_file() 189 fi.from = entp->fts_path; in copy_file() 234 warn("%s", entp->fts_path); in copy_file() 253 warn("%s", entp->fts_path); in copy_file() 309 if ((len = readlink(p->fts_path, target, sizeof(target)-1)) == -1) { in copy_link() 310 warn("readlink: %s", p->fts_path); in copy_link()
|
| /netbsd-src/lib/libc/gen/ |
| H A D | fts.c | 228 mem2: free(sp->fts_path); in fts_open() 250 memmove(sp->fts_path, p->fts_name, len + 1); in fts_load() 256 p->fts_accpath = p->fts_path = sp->fts_path; in fts_load() 289 free(sp->fts_path); in fts_close() 315 (p->fts_path[p->fts_pathlen - 1] == '/' \ 329 p->fts_path[0] == '/' ? 0 : p->fts_pathlen) 481 name: t = sp->fts_path + NAPPEND(p->fts_parent); in fts_read() 502 sp->fts_path[p->fts_pathlen] = '\0'; in fts_read() 742 cp = sp->fts_path + len; in fts_build() 775 oldaddr = sp->fts_path; in fts_build() [all …]
|
| H A D | devname.c | 126 if (strncmp(fe->fts_path, path_dev, len_dev)) in devname_fts() 128 if (strlcpy(path, fe->fts_path + len_dev, len) < len) { in devname_fts()
|
| H A D | ftw.c | 87 error = fn(cur->fts_path, cur->fts_statp, fnflag); in ftw()
|
| /netbsd-src/usr.bin/grep/ |
| H A D | util.c | 144 errx(2, "%s: %s", p->fts_path, strerror(p->fts_errno)); in grep_tree() 153 p->fts_path); in grep_tree() 159 if ((d = strrchr(p->fts_path, '/')) != NULL) { in grep_tree() 161 (d - p->fts_path + 1)); in grep_tree() 162 memcpy(dir, p->fts_path, in grep_tree() 163 d - p->fts_path); in grep_tree() 164 dir[d - p->fts_path] = '\0'; in grep_tree() 171 ok &= file_matching(p->fts_path); in grep_tree() 174 c += procfile(p->fts_path); in grep_tree()
|
| /netbsd-src/usr.sbin/mtree/ |
| H A D | mtree.h | 147 ((p)->fts_path[0] == '.' && (p)->fts_path[1] == '/' ? \ 148 (p)->fts_path + 2 : (p)->fts_path)
|
| H A D | create.c | 128 if (check_excludes(p->fts_name, p->fts_path)) { in cwalk() 132 if (!find_only(p->fts_path)) { in cwalk() 141 fprintf(fp, "# %s\n", p->fts_path); in cwalk() 149 p->fts_path); in cwalk() 160 p->fts_path, strerror(p->fts_errno)); in cwalk() 193 warn("%s: %s failed", p->fts_path, key); in dosum() 197 mtree_err("%s: %s failed: %s", p->fts_path, key, strerror(errno)); in dosum()
|
| H A D | verify.c | 94 if (check_excludes(p->fts_name, p->fts_path)) { in vwalk() 98 if (!find_only(p->fts_path)) { in vwalk()
|
| /netbsd-src/bin/rm/ |
| H A D | rm.c | 191 warnx("%s: %s", p->fts_path, in rm_tree() 197 errx(EXIT_FAILURE, "%s: %s", p->fts_path, in rm_tree() 208 warnx("%s: %s", p->fts_path, in rm_tree() 216 if (!fflag && !check(p->fts_path, p->fts_accpath, in rm_tree() 229 !check(p->fts_path, p->fts_accpath, p->fts_statp)) in rm_tree() 264 warn("%s", p->fts_path); in rm_tree() 268 (void)printf("%s\n", p->fts_path); in rm_tree()
|
| /netbsd-src/sbin/chown/ |
| H A D | chown.c | 203 warnx("%s: %s", p->fts_path, strerror(p->fts_errno)); in main() 208 warnx("%s: %s", p->fts_path, strerror(p->fts_errno)); in main() 251 warn("%s", p->fts_path); in main() 255 printf("%s\n", p->fts_path); in main()
|
| /netbsd-src/usr.bin/chflags/ |
| H A D | chflags.c | 146 warnx("%s: %s", p->fts_path, strerror(p->fts_errno)); in main() 151 warnx("%s: %s", p->fts_path, strerror(p->fts_errno)); in main() 190 warn("%s", p->fts_path); in main()
|
| /netbsd-src/bin/chmod/ |
| H A D | chmod.c | 194 warnx("%s: %s", p->fts_path, strerror(p->fts_errno)); in main() 201 warnx("%s: %s", p->fts_path, strerror(p->fts_errno)); in main() 222 warn("%s", p->fts_path); in main()
|
| /netbsd-src/usr.bin/find/ |
| H A D | function.c | 482 warn("-delete: rmdir(%s)", entry->fts_path); in f_delete() 485 warn("-delete: unlink(%s)", entry->fts_path); in f_delete() 602 l = strlen(entry->fts_path); in f_exec() 605 strcpy(plan->ep_p, entry->fts_path); in f_exec() 619 = strcpy(plan->ep_p, entry->fts_path); in f_exec() 630 entry->fts_path, in f_exec() 844 if ((file = strrchr(entry->fts_path, '/'))) in f_execdir() 847 file = entry->fts_path; in f_execdir() 1023 if (-1 == fprintf(plan->fprint_file, "%s\n", entry->fts_path)) in f_fprint() 1250 printlong(entry->fts_path, entry->fts_accpath, entry->fts_statp); in f_ls() [all …]
|
| H A D | find.c | 231 g_entry->fts_path, strerror(g_entry->fts_errno)); in find_execute() 237 if (isxargs && strpbrk(g_entry->fts_path, BADCH)) { in find_execute() 240 warnx("%s: illegal path", g_entry->fts_path); in find_execute()
|
| /netbsd-src/libexec/makewhatis/ |
| H A D | makewhatis.c | 262 if (manpagesection(fe->fts_path) >= 0) { in makewhatis() 272 s = &fe->fts_path[fe->fts_pathlen - 1]; in makewhatis() 286 sdoff = s + 1 - fe->fts_path; in makewhatis() 294 fe->fts_path, sdoff, sdlen); in makewhatis() 309 fe->fts_path); in makewhatis() 312 warnx("Unreadable directory: `%s'", fe->fts_path); in makewhatis() 316 warn("Cannot stat `%s'", fe->fts_path); in makewhatis() 320 warn("Error reading `%s'", fe->fts_path); in makewhatis() 324 " for path: `%s'", fe->fts_info, fe->fts_path); in makewhatis()
|
| /netbsd-src/usr.bin/du/ |
| H A D | du.c | 226 prstat(p->fts_path, p->fts_number); in main() 233 warnx("%s: %s", p->fts_path, strerror(p->fts_errno)); in main() 245 prstat(p->fts_path, COUNT); in main()
|
| /netbsd-src/include/ |
| H A D | fts.h | 64 char *fts_path; /* path for this descent */ member 93 char *fts_path; /* root path */ member
|
| /netbsd-src/usr.sbin/dev_mkdb/ |
| H A D | dev_mkdb.c | 244 p->fts_path + dlen); in main() 247 p->fts_path + dlen); in main()
|
| /netbsd-src/usr.sbin/veriexecgen/ |
| H A D | veriexecgen.c | 247 if (stat(file->fts_path, &sb) == -1) { in add_new_ftsent_entry() 248 gripe(vp, "Cannot stat symlink `%s'", file->fts_path); in add_new_ftsent_entry() 305 errx(EXIT_FAILURE, "%s: %s", file->fts_path, in walk_dir()
|
| /netbsd-src/usr.bin/cvslatest/ |
| H A D | cvslatest.c | 83 snprintf(ename, sizeof(ename), "%s/Repository", e->fts_path); in getrepo() 114 snprintf(ename, sizeof(ename), "%s/Entries", e->fts_path); in getlatest()
|
| /netbsd-src/tests/lib/libc/sys/ |
| H A D | t_stat.c | 127 ATF_REQUIRE(stat(ftse->fts_parent->fts_path,&sa) == 0); in ATF_TC_BODY() 128 ATF_REQUIRE(chdir(ftse->fts_path) == 0); in ATF_TC_BODY()
|