Lines Matching refs:to_fd
263 int from_fd, to_fd; in fastcopy() local
275 while ((to_fd = in fastcopy()
284 if (write(to_fd, bp, (size_t)nread) != nread) { in fastcopy()
293 (void)close(to_fd); in fastcopy()
298 if (fchown(to_fd, sbp->st_uid, sbp->st_gid)) { in fastcopy()
308 if (fchmod(to_fd, sbp->st_mode)) in fastcopy()
315 preserve_fd_acls(from_fd, to_fd, from, to); in fastcopy()
320 if (futimens(to_fd, ts)) in fastcopy()
330 if (fstat(to_fd, &tsb) == 0) { in fastcopy()
333 if (fchflags(to_fd, in fastcopy()
343 if (close(to_fd)) { in fastcopy()