Lines Matching defs:tempfile
761 char backup[MAXPATHLEN], *p, pathbuf[MAXPATHLEN], tempfile[MAXPATHLEN];
839 to_fd = create_tempfile(to_name, tempfile,
840 sizeof(tempfile));
842 err(EX_OSERR, "%s", tempfile);
853 stripped = strip(tempcopy ? tempfile : to_name,
857 tempcopy ? tempfile : to_name, from_sb.st_size);
863 (void)strip(tempcopy ? tempfile : to_name, to_fd,
871 to_fd = open(tempcopy ? tempfile : to_name, O_RDONLY, 0);
888 (void)unlink(tempfile);
890 err(EX_OSERR, "%s", tempfile);
893 if (compare(temp_fd, tempfile, (size_t)temp_sb.st_size, to_fd,
904 (void)utimensat(AT_FDCWD, tempfile, tsb, 0);
907 (void)unlink(tempfile);
912 digestresult = digest_file(tempfile);
927 unlink(tempfile);
939 unlink(tempfile);
945 unlink(tempfile);
957 if (rename(tempfile, to_name) < 0) {
959 unlink(tempfile);
962 tempfile, to_name);