Lines Matching refs:to

415 copy_file (char const *from, char const *to,  in copy_file()  argument
420 if (copy_only_if_needed && !need_copy (from, to, to_dirfd, to_relname, x)) in copy_file()
429 return copy (from, to, to_dirfd, to_relname, 0, x, &copy_into_self, nullptr); in copy_file()
654 install_file_in_file (char const *from, char const *to, in install_file_in_file() argument
664 if (! copy_file (from, to, to_dirfd, to_relname, x)) in install_file_in_file()
667 if (! strip (to)) in install_file_in_file()
670 error (EXIT_FAILURE, errno, _("cannot unlink %s"), quoteaf (to)); in install_file_in_file()
674 && ! change_timestamps (&from_sb, to, to_dirfd, to_relname)) in install_file_in_file()
676 return change_attributes (to, to_dirfd, to_relname); in install_file_in_file()
684 mkancesdirs_safe_wd (char const *from, char *to, struct cp_options *x, in mkancesdirs_safe_wd() argument
689 || ! (IS_ABSOLUTE_FILE_NAME (from) && IS_ABSOLUTE_FILE_NAME (to)); in mkancesdirs_safe_wd()
697 if (mkancesdirs (to, &wd, make_ancestor, x) == -1) in mkancesdirs_safe_wd()
699 error (0, errno, _("cannot create directory %s"), quoteaf (to)); in mkancesdirs_safe_wd()
713 quoteaf (to)); in mkancesdirs_safe_wd()
724 install_file_in_file_parents (char const *from, char *to, in install_file_in_file_parents() argument
727 return (mkancesdirs_safe_wd (from, to, (struct cp_options *)x, false) in install_file_in_file_parents()
728 && install_file_in_file (from, to, AT_FDCWD, to, x)); in install_file_in_file_parents()
742 char *to = file_name_concat (to_dir, from_base, &to_relname); in install_file_in_dir() local
747 && (ret = mkancesdirs_safe_wd (from, to, (struct cp_options *) x, true))) in install_file_in_dir()
752 error (0, errno, _("cannot open %s"), quoteaf (to)); in install_file_in_dir()
765 to_relname = to; in install_file_in_dir()
767 ret = install_file_in_file (from, to, to_dirfd, to_relname, x); in install_file_in_dir()
770 free (to); in install_file_in_dir()