Lines Matching defs:tempfile
722 char backup[MAXPATHLEN], *p, pathbuf[MAXPATHLEN], tempfile[MAXPATHLEN];
800 to_fd = create_tempfile(to_name, tempfile,
801 sizeof(tempfile));
803 err(EX_OSERR, "%s", tempfile);
814 tempcopy ? tempfile : to_name, from_sb.st_size);
820 strip(tempcopy ? tempfile : to_name);
827 to_fd = open(tempcopy ? tempfile : to_name, O_RDONLY, 0);
844 (void)unlink(tempfile);
846 err(EX_OSERR, "%s", tempfile);
849 if (compare(temp_fd, tempfile, (size_t)temp_sb.st_size, to_fd,
862 (void)utimes(tempfile, tvb);
865 (void)unlink(tempfile);
872 digestresult = digest_file(tempfile);
885 unlink(tempfile);
893 unlink(tempfile);
901 if (rename(tempfile, to_name) < 0) {
903 unlink(tempfile);
906 tempfile, to_name);