Lines Matching refs:to_fd
329 int from_fd, to_fd;
345 while ((to_fd =
361 if (fstatfs(to_fd, &sfs) == 0 &&
370 (void) fcntl(to_fd, F_PREALLOCATE, &fst);
375 if (write(to_fd, bp, (size_t)nread) != nread) {
384 (void)close(to_fd);
388 /* XATTR can fail if to_fd has mode 000 */
389 if (fcopyfile(from_fd, to_fd, NULL, COPYFILE_ACL | COPYFILE_XATTR) < 0) {
397 if (fchown(to_fd, sbp->st_uid, sbp->st_gid)) {
407 if (fchmod(to_fd, sbp->st_mode))
417 if (fchflags(to_fd, (u_int)sbp->st_flags))
427 if (close(to_fd)) {