Lines Matching refs:st_mode
287 st.st_mode = state->missmode; in visit()
294 if (mkdir(state->path, st.st_mode & S_IPERM)) in visit()
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()
320 …error(ERROR_SYSTEM|2, "%s: cannot reset directory mode to %s", state->path, fmtmode(st.st_mode & S… in visit()
355 if (!S_ISDIR(st.st_mode)) in visit()
361 …else if (mkdir(state->path, (ent->fts_statp->st_mode & S_IPERM)|(ent->fts_info == FTS_D ? S_IRWXU … in visit()
397 st.st_mode = 0; in visit()
398 …else if (state->update && !S_ISDIR(st.st_mode) && (unsigned long)ent->fts_statp->st_mtime < (unsig… in visit()
425 if (S_ISDIR(st.st_mode)) in visit()
460 fmtmode(st.st_mode & (S_IRWXU|S_IRWXG|S_IRWXO), 0) + 1; in visit()
539 else if (!rm && st.st_mode && !remove(state->path)) 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()
575 …else if ((wfd = open(state->path, st.st_mode ? (state->wflags & ~O_EXCL) : state->wflags, ent->fts… 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 …or(2, "%s: cannot copy -- unknown file type 0%o", ent->fts_path, S_ITYPE(ent->fts_statp->st_mode)); in visit()
638 …if ((ent->fts_statp->st_mode & state->perm) != (st.st_mode & state->perm) && chmod(state->path, en… in visit()
639 …error(ERROR_SYSTEM|2, "%s: cannot reset mode to %s", state->path, fmtmode(st.st_mode & state->perm… in visit()
902 if (!(state->directory = !stat(file, &st) && S_ISDIR(st.st_mode)) && argc > 1) in b_cp()
918 state->missmode = st.st_mode; in b_cp()