Searched refs:fts_statp (Results 1 – 12 of 12) sorted by relevance
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | rm.c | 77 #define beenhere(f) (((f)->fts_number>>1)==(f)->fts_statp->st_nlink) 81 #define retry(f) ((f)->fts_number=((f)->fts_statp->st_nlink<<1)) 118 else if (state->fs3d && iview(ent->fts_statp)) in rm() 128 if (!chmod(ent->fts_name, (ent->fts_statp->st_mode & S_IPERM)|S_IRWXU)) in rm() 162 if (state->unconditional && (ent->fts_statp->st_mode & S_IRWXU) != S_IRWXU) in rm() 163 chmod(path, (ent->fts_statp->st_mode & S_IPERM)|S_IRWXU); in rm() 178 …t_nlink <= 2 || st.st_ino == ent->fts_parent->fts_statp->st_ino && st.st_dev == ent->fts_parent->f… in rm() 274 ent->fts_statp->st_uid != state->uid ? "``not owner''" : in rm() 275 fmtmode(ent->fts_statp->st_mode & S_IPERM, 0) + 1, ent->fts_path)) < 0 || in rm() 285 if (state->clobber && S_ISREG(ent->fts_statp->st_mode) && ent->fts_statp->st_size > 0) in rm() [all …]
|
H A D | cp.c | 327 …if (state->preserve && state->op != LN || ent->fts_level > 0 && (ent->fts_statp->st_mode & S_IRWXU… in visit() 337 …if ((ent->fts_statp->st_mode & S_IPERM) != (st.st_mode & S_IPERM) && chmod(state->path, ent->fts_s… in visit() 340 preserve(state, state->path, &st, ent->fts_statp); in visit() 379 …else if (mkdir(state->path, (ent->fts_statp->st_mode & S_IPERM)|(ent->fts_info == FTS_D ? S_IRWXU … in visit() 416 …else if (state->update && !S_ISDIR(st.st_mode) && (unsigned long)ent->fts_statp->st_mtime < (unsig… in visit() 427 if (state->op != LN && st.st_dev == ent->fts_statp->st_dev && st.st_ino == ent->fts_statp->st_ino) in visit() 567 if (errno != EXDEV && (rm || S_ISDIR(ent->fts_statp->st_mode))) in visit() 577 if (S_ISLNK(ent->fts_statp->st_mode)) in visit() 591 else if (state->op == CP || S_ISREG(ent->fts_statp->st_mode) || S_ISDIR(ent->fts_statp->st_mode)) in visit() 593 if (ent->fts_statp->st_size > 0 && (rfd = open(ent->fts_path, O_RDONLY|O_BINARY|O_cloexec)) < 0) in visit() [all …]
|
H A D | chgrp.c | 429 if ((unsigned long)ent->fts_statp->st_ctime >= before) in b_chgrp() 435 keys[0].uid = keys[1].uid = ent->fts_statp->st_uid; in b_chgrp() 436 keys[0].gid = keys[2].gid = ent->fts_statp->st_gid; in b_chgrp() 458 uid = ent->fts_statp->st_uid; in b_chgrp() 460 gid = ent->fts_statp->st_gid; in b_chgrp() 471 if (uid != ent->fts_statp->st_uid && uid != NOID || gid != ent->fts_statp->st_gid && gid != NOID) in b_chgrp() 477 ent->fts_statp->st_uid = 0; in b_chgrp() 478 ent->fts_statp->st_gid = 0; in b_chgrp() 480 …tdout, "%s uid:%05d->%05d gid:%05d->%05d %s\n", op, ent->fts_statp->st_uid, uid, ent->fts_statp->s… in b_chgrp()
|
H A D | chmod.c | 295 mode = strperm(amode, &last, ent->fts_statp->st_mode); in b_chmod() 298 if (notify == 2 || notify == 1 && (mode&S_IPERM) != (ent->fts_statp->st_mode&S_IPERM)) in b_chmod()
|
H A D | cksum.c | 606 pr(&state, sfstdout, sp, ent->fts_path, state.permissions, ent->fts_statp, state.check); in b_cksum()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | fts.c | 214 f->fts_statp = &f->statb; in node() 496 return (verify && (stat(".", &sb) < 0 || !SAME(&sb, f->fts_statp))) ? -1 : 0; in popdirs() 654 info(fts, f, path, f->fts_statp, fts->flags); in toplist() 666 *f->fts_statp = st; in toplist() 667 info(fts, f, NiL, f->fts_statp, 0); in toplist() 789 fts->parent->fts_statp = &fts->parent->statb; in fts_open() 893 fts->parent->fts_statp = f->fts_statp; in fts_read() 894 fts->parent->statb = *f->fts_statp; in fts_read() 1073 f->fts_statp = fts->current->fts_statp; in fts_read() 1080 f->fts_statp = &fts->current->fts_parent->statb; in fts_read() [all …]
|
H A D | ftwalk.c | 99 x->statb = *x->fts_statp; in ftwalk() 128 x->statb = *x->fts_statp; in ftwalk()
|
/illumos-gate/usr/src/head/ |
H A D | fts.h | 111 struct stat *fts_statp; /* stat(2) information */ member
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/ |
H A D | fts.h | 108 struct stat* fts_statp; /* stat info */ member
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | fts.c | 807 sbp = ISSET(FTS_NOSTAT) ? &sb : p->fts_statp; in fts_stat() 924 p->fts_statp = (struct stat *)ALIGN(p->fts_name + namelen + 2); in fts_alloc()
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | mandocdb.c | 627 if (stat(path, ff->fts_statp) == -1) { in treescan() 632 if ((ff->fts_statp->st_mode & S_IFMT) != S_IFREG) in treescan() 701 mlink_add(mlink, ff->fts_statp); in treescan()
|
/illumos-gate/usr/src/lib/libpcsc/common/ |
H A D | libpcsc.c | 391 if (S_ISCHR(ent->fts_statp->st_mode) == 0) in SCardListReaders()
|