Home | History | Annotate | Download | only in mv

Lines Matching refs:sbp

256 fastcopy(char *from, char *to, struct stat *sbp)
268 open(to, O_CREAT | O_TRUNC | O_WRONLY, sbp->st_mode)) < 0) {
273 if (!blen && !(bp = malloc(blen = sbp->st_blksize))) {
301 TIMESPEC_TO_TIMEVAL(&tval[0], &sbp->st_atimespec);
302 TIMESPEC_TO_TIMEVAL(&tval[1], &sbp->st_mtimespec);
304 tval[0].tv_sec = sbp->st_atime;
305 tval[1].tv_sec = sbp->st_mtime;
315 if (fchown(to_fd, sbp->st_uid, sbp->st_gid)) {
318 sbp->st_mode &= ~(S_ISUID | S_ISGID);
320 if (fchmod(to_fd, sbp->st_mode))
323 if (fchflags(to_fd, sbp->st_flags) && (errno != EOPNOTSUPP))
324 warn("%s: set flags (was: 0%07o)", to, sbp->st_flags);