Lines Matching refs:tempfile
722 char backup[MAXPATHLEN], *p, pathbuf[MAXPATHLEN], tempfile[MAXPATHLEN];
796 to_fd = create_tempfile(to_name, tempfile,
797 sizeof(tempfile));
799 err(EX_OSERR, "%s", tempfile);
810 tempcopy ? tempfile : to_name, from_sb.st_size);
816 strip(tempcopy ? tempfile : to_name);
823 to_fd = open(tempcopy ? tempfile : to_name, O_RDONLY, 0);
840 (void)unlink(tempfile);
842 err(EX_OSERR, "%s", tempfile);
845 if (compare(temp_fd, tempfile, (size_t)temp_sb.st_size, to_fd,
858 (void)utimes(tempfile, tvb);
861 (void)unlink(tempfile);
866 digestresult = digest_file(tempfile);
879 unlink(tempfile);
887 unlink(tempfile);
895 if (rename(tempfile, to_name) < 0) {
897 unlink(tempfile);
900 tempfile, to_name);