/freebsd/contrib/mtree/ |
H A D | compare.c | 103 if (lchflags(p->fts_accpath, flags)) { \ 208 if ((unlink(p->fts_accpath) == -1) || in compare() 209 (mknod(p->fts_accpath, in compare() 212 (lchown(p->fts_accpath, p->fts_statp->st_uid, in compare() 231 if (lchown(p->fts_accpath, s->st_uid, -1)) in compare() 248 if (lchown(p->fts_accpath, -1, s->st_gid)) in compare() 285 if (lchmod(p->fts_accpath, s->st_mode)) in compare() 352 if (utimes(p->fts_accpath, tv)) in compare() 404 if ((fd = open(p->fts_accpath, O_RDONLY, 0)) < 0) { in compare() 407 tab, p->fts_accpath, strerror(errno)); in compare() [all …]
|
H A D | create.c | 245 if ((fd = open(p->fts_accpath, O_RDONLY, 0)) < 0 || in statf() 247 mtree_err("%s: %s", p->fts_accpath, strerror(errno)); in statf() 253 if ((digestbuf = MD5File(p->fts_accpath, NULL)) == NULL) in statf() 254 mtree_err("%s: MD5File failed: %s", p->fts_accpath, in statf() 262 if ((digestbuf = RMD160File(p->fts_accpath, NULL)) == NULL) in statf() 263 mtree_err("%s: RMD160File failed: %s", p->fts_accpath, in statf() 271 if ((digestbuf = SHA1File(p->fts_accpath, NULL)) == NULL) in statf() 272 mtree_err("%s: SHA1File failed: %s", p->fts_accpath, in statf() 280 if ((digestbuf = SHA256_File(p->fts_accpath, NULL)) == NULL) in statf() 281 mtree_err("%s: SHA256_File failed: %s", p->fts_accpath, in statf() [all …]
|
H A D | verify.c | 153 ? rmdir : unlink)(p->fts_accpath)) { in vwalk()
|
/freebsd/bin/setfacl/ |
H A D | setfacl.c | 207 ret = pathconf(file->fts_accpath, _PC_ACL_NFS4); in handle_file() 209 ret = lpathconf(file->fts_accpath, _PC_ACL_NFS4); in handle_file() 226 acl = acl_get_file(file->fts_accpath, acl_type); in handle_file() 228 acl = acl_get_link_np(file->fts_accpath, acl_type); in handle_file() 278 if (acl_delete_def_file(file->fts_accpath) == -1) { in handle_file() 315 if (acl_delete_def_file(file->fts_accpath) == -1) { in handle_file() 331 if (acl_set_file(file->fts_accpath, acl_type, acl) == -1) { in handle_file() 336 if (acl_set_link_np(file->fts_accpath, acl_type, acl) == -1) { in handle_file()
|
/freebsd/lib/libc/gen/ |
H A D | fts-compat.c | 171 p->fts_accpath = p->fts_name; in __fts_open_44bsd() 248 p->fts_accpath = p->fts_path = sp->fts_path; in fts_load() 386 if (fts_safe_changedir(sp, p, -1, p->fts_accpath)) { in __fts_read_44bsd() 391 p->fts_accpath = in __fts_read_44bsd() 392 p->fts_parent->fts_accpath; in __fts_read_44bsd() 565 if (p->fts_level != FTS_ROOTLEVEL || p->fts_accpath[0] == '/' || in __fts_children_44bsd() 663 if ((dirp = __opendir2(cur->fts_accpath, oflag)) == NULL) { in fts_build() 815 p->fts_accpath = cur->fts_accpath; in fts_build() 822 p->fts_accpath = in fts_build() 828 p->fts_accpath = p->fts_path; in fts_build() [all …]
|
H A D | fts-compat11.c | 161 p->fts_accpath = p->fts_name; in freebsd11_fts_open() 238 p->fts_accpath = p->fts_path = sp->fts_path; in fts_load() 376 if (fts_safe_changedir(sp, p, -1, p->fts_accpath)) { in freebsd11_fts_read() 381 p->fts_accpath = in freebsd11_fts_read() 382 p->fts_parent->fts_accpath; in freebsd11_fts_read() 559 if (p->fts_level != FTS_ROOTLEVEL || p->fts_accpath[0] == '/' || in freebsd11_fts_children() 662 if ((dirp = __opendir2(cur->fts_accpath, oflag)) == NULL) { in fts_build() 799 p->fts_accpath = cur->fts_accpath; in fts_build() 806 p->fts_accpath = in fts_build() 812 p->fts_accpath = p->fts_path; in fts_build() [all …]
|
H A D | fts.c | 160 p->fts_accpath = p->fts_name; in fts_open() 237 p->fts_accpath = p->fts_path = sp->fts_path; in fts_load() 375 if (fts_safe_changedir(sp, p, -1, p->fts_accpath)) { in fts_read() 380 p->fts_accpath = in fts_read() 381 p->fts_parent->fts_accpath; in fts_read() 558 if (p->fts_level != FTS_ROOTLEVEL || p->fts_accpath[0] == '/' || in fts_children() 661 if ((dirp = __opendir2(cur->fts_accpath, oflag)) == NULL) { in fts_build() 798 p->fts_accpath = cur->fts_accpath; in fts_build() 805 p->fts_accpath = in fts_build() 811 p->fts_accpath = p->fts_path; in fts_build() [all …]
|
H A D | fts-compat11.h | 55 char *fts_accpath; /* access path */ member
|
H A D | fts-compat.h | 77 char *fts_accpath; /* access path */ member
|
/freebsd/bin/rm/ |
H A D | rm.c | 222 if (!fflag && !check(p->fts_path, p->fts_accpath, in rm_tree() 230 lchflags(p->fts_accpath, in rm_tree() 241 !check(p->fts_path, p->fts_accpath, p->fts_statp)) in rm_tree() 249 rval = lchflags(p->fts_accpath, in rm_tree() 260 rval = rmdir(p->fts_accpath); in rm_tree() 275 rval = undelete(p->fts_accpath); in rm_tree() 301 rval = unlink(p->fts_accpath); in rm_tree()
|
/freebsd/usr.bin/find/ |
H A D | function.c | 375 ret = pathconf(entry->fts_accpath, _PC_ACL_NFS4); in f_acl() 380 warn("%s", entry->fts_accpath); in f_acl() 384 ret = pathconf(entry->fts_accpath, _PC_ACL_EXTENDED); in f_acl() 389 warn("%s", entry->fts_accpath); in f_acl() 396 facl = acl_get_file(entry->fts_accpath, acl_type); in f_acl() 398 warn("%s", entry->fts_accpath); in f_acl() 404 warn("%s", entry->fts_accpath); in f_acl() 429 if (strcmp(entry->fts_accpath, ".") == 0 || in f_delete() 430 strcmp(entry->fts_accpath, "..") == 0) in f_delete() 444 strchr(entry->fts_accpath, '/') != NULL) in f_delete() [all …]
|
/freebsd/contrib/mandoc/ |
H A D | compat_fts.c | 114 p->fts_accpath = p->fts_name; in fts_open() 182 p->fts_accpath = p->fts_path = sp->fts_path; in fts_load() 370 if ((dirp = opendir(cur->fts_accpath)) == NULL) { in fts_build() 458 p->fts_accpath = p->fts_path; in fts_build() 514 if (lstat(p->fts_accpath, sbp)) { in fts_stat() 670 if ((p)->fts_accpath != (p)->fts_name) { \ in fts_padjust() 671 (p)->fts_accpath = \ in fts_padjust() 672 (char *)addr + ((p)->fts_accpath - (p)->fts_path); \ in fts_padjust()
|
H A D | compat_fts.h | 62 char *fts_accpath; /* access path */ member
|
/freebsd/bin/chmod/ |
H A D | chmod.c | 191 if (fchmodat(AT_FDCWD, p->fts_accpath, newmode, atflag) == -1 in main() 238 ret = lpathconf(ent->fts_accpath, _PC_ACL_NFS4); in may_have_nfs4acl() 240 ret = pathconf(ent->fts_accpath, _PC_ACL_NFS4); in may_have_nfs4acl()
|
/freebsd/include/ |
H A D | fts.h | 72 char *fts_accpath; /* access path */ member
|
/freebsd/bin/chflags/ |
H A D | chflags.c | 184 if (chflagsat(AT_FDCWD, p->fts_accpath, newflags, in main()
|
/freebsd/usr.sbin/setfmac/ |
H A D | setfmac.c | 476 if ((hflag == FTS_PHYSICAL ? mac_set_link(ftsent->fts_accpath, mac) : in apply_specs() 477 mac_set_file(ftsent->fts_accpath, mac)) != 0) { in apply_specs()
|
/freebsd/usr.sbin/chown/ |
H A D | chown.c | 199 if (fchownat(AT_FDCWD, p->fts_accpath, uid, gid, atflag) in main()
|
/freebsd/bin/cp/ |
H A D | cp.c | 422 curr->fts_accpath, to.p_path) != 0) in copy()
|
/freebsd/bin/ls/ |
H A D | ls.c | 914 fts_accpath, cur->fts_name); in display()
|