Lines Matching defs:sbp
269 fastcopy(char *from, char *to, struct stat *sbp)
287 open(to, O_CREAT | O_TRUNC | O_WRONLY, sbp->st_mode)) < 0) {
292 if (!blen && !(bp = malloc(blen = sbp->st_blksize))) {
306 int pcent = (int)((100.0 * total) / sbp->st_size);
311 (unsigned long long)sbp->st_size, pcent);
329 ts[0] = sbp->st_atimespec;
330 ts[1] = sbp->st_mtimespec;
332 TIMESPEC_TO_TIMEVAL(&tval[0], &sbp->st_atimespec);
333 TIMESPEC_TO_TIMEVAL(&tval[1], &sbp->st_mtimespec);
336 tval[0].tv_sec = sbp->st_atime;
337 tval[1].tv_sec = sbp->st_mtime;
351 if (fchown(to_fd, sbp->st_uid, sbp->st_gid)) {
354 sbp->st_mode &= ~(S_ISUID | S_ISGID);
356 if (fchmod(to_fd, sbp->st_mode))
358 if (fchflags(to_fd, sbp->st_flags) && (errno != EOPNOTSUPP))
359 warn("%s: set flags (was: 0%07o)", to, sbp->st_flags);