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))) {
299 TIMESPEC_TO_TIMEVAL(&tval[0], &sbp->st_atimespec);
300 TIMESPEC_TO_TIMEVAL(&tval[1], &sbp->st_mtimespec);
302 tval[0].tv_sec = sbp->st_atime;
303 tval[1].tv_sec = sbp->st_mtime;
313 if (fchown(to_fd, sbp->st_uid, sbp->st_gid)) {
316 sbp->st_mode &= ~(S_ISUID | S_ISGID);
318 if (fchmod(to_fd, sbp->st_mode))
320 if (fchflags(to_fd, sbp->st_flags) && (errno != EOPNOTSUPP))
321 warn("%s: set flags (was: 0%07o)", to, sbp->st_flags);