Lines Matching refs:tmpfile2
45 static char *tmpfile2 = NULL; variable
558 if ((fp2 = cvs_temp_file (&tmpfile2)) == NULL) in patch_fileproc()
560 error (0, errno, "cannot create temporary file %s", tmpfile2); in patch_fileproc()
566 error (0, errno, "warning: cannot close %s", tmpfile2); in patch_fileproc()
603 tmpfile2, NULL, NULL); in patch_fileproc()
615 (void)utime (tmpfile2, &t); in patch_fileproc()
622 switch (diff_exec (tmpfile1, tmpfile2, NULL, NULL, dargc, dargv, in patch_fileproc()
777 if (CVS_UNLINK (tmpfile2) < 0) in patch_fileproc()
778 error (0, errno, "cannot unlink %s", tmpfile2); in patch_fileproc()
782 free (tmpfile2); in patch_fileproc()
784 tmpfile1 = tmpfile2 = tmpfile3 = NULL; in patch_fileproc()
840 if (tmpfile2 != NULL) in patch_cleanup()
842 if (unlink_file (tmpfile2) < 0 in patch_cleanup()
844 error (0, errno, "cannot remove %s", tmpfile2); in patch_cleanup()
845 free (tmpfile2); in patch_cleanup()
854 tmpfile1 = tmpfile2 = tmpfile3 = NULL; in patch_cleanup()