Lines Matching refs:st

235 	struct stat	st;
287 st.st_mode = state->missmode;
291 stat(state->path, &st);
294 if (mkdir(state->path, st.st_mode & S_IPERM))
315 if (stat(state->path, &st))
319 if ((ent->fts_statp->st_mode & S_IPERM) != (st.st_mode & S_IPERM) && chmod(state->path, ent->fts_statp->st_mode & S_IPERM))
320 error(ERROR_SYSTEM|2, "%s: cannot reset directory mode to %s", state->path, fmtmode(st.st_mode & S_IPERM, 0) + 1);
322 preserve(state, state->path, &st, ent->fts_statp);
353 if (!(*state->stat)(state->path, &st))
355 if (!S_ISDIR(st.st_mode))
396 if ((*state->stat)(state->path, &st))
397 st.st_mode = 0;
398 else if (state->update && !S_ISDIR(st.st_mode) && (unsigned long)ent->fts_statp->st_mtime < (unsigned long)st.st_mtime)
403 else if (!state->fs3d || !iview(&st))
409 if (st.st_dev == ent->fts_statp->st_dev && st.st_ino == ent->fts_statp->st_ino)
425 if (S_ISDIR(st.st_mode))
459 st.st_uid != state->uid ? "``not owner''" :
460 fmtmode(st.st_mode & (S_IRWXU|S_IRWXG|S_IRWXO), 0) + 1;
539 else if (!rm && st.st_mode && !remove(state->path))
575 else if ((wfd = open(state->path, st.st_mode ? (state->wflags & ~O_EXCL) : state->wflags, ent->fts_statp->st_mode & state->perm)) < 0)
634 if (stat(state->path, &st))
638 if ((ent->fts_statp->st_mode & state->perm) != (st.st_mode & state->perm) && chmod(state->path, ent->fts_statp->st_mode & state->perm))
639 error(ERROR_SYSTEM|2, "%s: cannot reset mode to %s", state->path, fmtmode(st.st_mode & state->perm, 0) + 1);
640 preserve(state, state->path, &st, ent->fts_statp);
667 struct stat st;
902 if (!(state->directory = !stat(file, &st) && S_ISDIR(st.st_mode)) && argc > 1)
918 state->missmode = st.st_mode;