Lines Matching refs:fts_statp
309 …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()
575 …ate->path, st.st_mode ? (state->wflags & ~O_EXCL) : state->wflags, ent->fts_statp->st_mode & state… in visit()
578 if (ent->fts_statp->st_size > 0) in visit()
582 else if (ent->fts_statp->st_size > 0) in visit()
617 …else if (S_ISBLK(ent->fts_statp->st_mode) || S_ISCHR(ent->fts_statp->st_mode) || S_ISFIFO(ent->fts… in visit()
619 if (mknod(state->path, ent->fts_statp->st_mode, idevice(ent->fts_statp))) in visit()
627 …error(2, "%s: cannot copy -- unknown file type 0%o", ent->fts_path, S_ITYPE(ent->fts_statp->st_mod… in visit()
638 …if ((ent->fts_statp->st_mode & state->perm) != (st.st_mode & state->perm) && chmod(state->path, en… in visit()
640 preserve(state, state->path, &st, ent->fts_statp); in visit()