Home
last modified time | relevance | path

Searched refs:fts_statp (Results 1 – 12 of 12) sorted by relevance

/titanic_50/usr/src/lib/libcmd/common/
H A Drm.c76 #define beenhere(f) (((f)->fts_number>>1)==(f)->fts_statp->st_nlink)
80 #define retry(f) ((f)->fts_number=((f)->fts_statp->st_nlink<<1))
117 else if (state->fs3d && iview(ent->fts_statp)) in rm()
125 if (!chmod(ent->fts_name, (ent->fts_statp->st_mode & S_IPERM)|S_IRWXU)) in rm()
159 if (state->unconditional && (ent->fts_statp->st_mode ^ S_IRWXU)) in rm()
160 chmod(path, (ent->fts_statp->st_mode & S_IPERM)|S_IRWXU); in rm()
175 …t_nlink <= 2 || st.st_ino == ent->fts_parent->fts_statp->st_ino && st.st_dev == ent->fts_parent->f… in rm()
265 else if (!state->force && state->terminal && S_ISREG(ent->fts_statp->st_mode)) in rm()
280 ent->fts_statp->st_uid != state->uid ? "``not owner''" : in rm()
281 fmtmode(ent->fts_statp->st_mode & S_IPERM, 0) + 1, ent->fts_path)) < 0 || in rm()
[all …]
H A Dcp.c309 …if (state->preserve && state->op != LN || ent->fts_level > 0 && (ent->fts_statp->st_mode & S_IRWXU… in visit()
319 …if ((ent->fts_statp->st_mode & S_IPERM) != (st.st_mode & S_IPERM) && chmod(state->path, ent->fts_s… in visit()
322 preserve(state, state->path, &st, ent->fts_statp); in visit()
361 …else if (mkdir(state->path, (ent->fts_statp->st_mode & S_IPERM)|(ent->fts_info == FTS_D ? S_IRWXU … in visit()
398 …else if (state->update && !S_ISDIR(st.st_mode) && (unsigned long)ent->fts_statp->st_mtime < (unsig… in visit()
409 if (st.st_dev == ent->fts_statp->st_dev && st.st_ino == ent->fts_statp->st_ino) in visit()
544 if (errno != EXDEV && (rm || S_ISDIR(ent->fts_statp->st_mode))) in visit()
554 if (S_ISLNK(ent->fts_statp->st_mode)) in visit()
568 else if (state->op == CP || S_ISREG(ent->fts_statp->st_mode) || S_ISDIR(ent->fts_statp->st_mode)) in visit()
570 if (ent->fts_statp->st_size > 0 && (rfd = open(ent->fts_path, O_RDONLY|O_BINARY)) < 0) in visit()
[all …]
H A Dchgrp.c391 if ((unsigned long)ent->fts_statp->st_ctime >= before) in b_chgrp()
397 keys[0].uid = keys[1].uid = ent->fts_statp->st_uid; in b_chgrp()
398 keys[0].gid = keys[2].gid = ent->fts_statp->st_gid; in b_chgrp()
420 uid = ent->fts_statp->st_uid; in b_chgrp()
422 gid = ent->fts_statp->st_gid; in b_chgrp()
433 if (uid != ent->fts_statp->st_uid && uid != NOID || gid != ent->fts_statp->st_gid && gid != NOID) in b_chgrp()
449 ent->fts_statp->st_uid = 0; in b_chgrp()
450 ent->fts_statp->st_gid = 0; in b_chgrp()
452 …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 Dchmod.c278 mode = strperm(amode, &last, ent->fts_statp->st_mode); in b_chmod()
281 if (notify == 2 || notify == 1 && (mode&S_IPERM) != (ent->fts_statp->st_mode&S_IPERM)) in b_chmod()
H A Dcksum.c606 pr(&state, sfstdout, sp, ent->fts_path, state.permissions, ent->fts_statp, state.check); in b_cksum()
/titanic_50/usr/src/lib/libast/common/misc/
H A Dfts.c214 f->fts_statp = &f->statb; in node()
496 return (verify && (stat(".", &sb) < 0 || !SAME(&sb, f->fts_statp))) ? -1 : 0; in popdirs()
646 info(fts, f, path, f->fts_statp, fts->flags); in toplist()
656 *f->fts_statp = st; in toplist()
657 info(fts, f, NiL, f->fts_statp, 0); in toplist()
776 fts->parent->fts_statp = &fts->parent->statb; in fts_open()
876 fts->parent->fts_statp = f->fts_statp; in fts_read()
877 fts->parent->statb = *f->fts_statp; in fts_read()
1056 f->fts_statp = fts->current->fts_statp; in fts_read()
1063 f->fts_statp = &fts->current->fts_parent->statb; in fts_read()
[all …]
H A Dftwalk.c99 x->statb = *x->fts_statp; in ftwalk()
128 x->statb = *x->fts_statp; in ftwalk()
/titanic_50/usr/src/lib/libast/common/include/
H A Dfts.h108 struct stat* fts_statp; /* stat info */ member
/titanic_50/usr/src/lib/libast/amd64/include/ast/
H A Dfts.h117 struct stat* fts_statp; /* stat info */ member
/titanic_50/usr/src/lib/libast/sparc/include/ast/
H A Dfts.h117 struct stat* fts_statp; /* stat info */ member
/titanic_50/usr/src/lib/libast/sparcv9/include/ast/
H A Dfts.h117 struct stat* fts_statp; /* stat info */ member
/titanic_50/usr/src/lib/libast/i386/include/ast/
H A Dfts.h117 struct stat* fts_statp; /* stat info */ member