head	1.1;
branch	1.1.1;
access;
symbols
	RELEASE_8_3_0:1.1.1.1
	RELEASE_9_0_0:1.1.1.1
	RELEASE_7_4_0:1.1.1.1
	RELEASE_8_2_0:1.1.1.1
	RELEASE_6_EOL:1.1.1.1
	RELEASE_8_1_0:1.1.1.1
	RELEASE_7_3_0:1.1.1.1
	RELEASE_8_0_0:1.1.1.1
	RELEASE_7_2_0:1.1.1.1
	RELEASE_7_1_0:1.1.1.1
	RELEASE_6_4_0:1.1.1.1
	RELEASE_5_EOL:1.1.1.1
	RELEASE_7_0_0:1.1.1.1
	RELEASE_6_3_0:1.1.1.1
	PRE_XORG_7:1.1.1.1
	RELEASE_4_EOL:1.1.1.1
	RELEASE_6_2_0:1.1.1.1
	RELEASE_6_1_0:1.1.1.1
	RELEASE_5_5_0:1.1.1.1
	RELEASE_6_0_0:1.1.1.1
	RELEASE_5_4_0:1.1.1.1
	RELEASE_4_11_0:1.1.1.1
	RELEASE_5_3_0:1.1.1.1
	RELEASE_4_10_0:1.1.1.1
	RELEASE_5_2_1:1.1.1.1
	RELEASE_5_2_0:1.1.1.1
	RELEASE_4_9_0:1.1.1.1
	RELEASE_5_1_0:1.1.1.1
	RELEASE_4_8_0:1.1.1.1
	RELEASE_5_0_0:1.1.1.1
	RELEASE_4_7_0:1.1.1.1
	RELEASE_4_6_2:1.1.1.1
	RELEASE_4_6_1:1.1.1.1
	RELEASE_4_6_0:1.1.1.1
	RELEASE_5_0_DP1:1.1.1.1
	RELEASE_4_5_0:1.1.1.1
	RELEASE_4_4_0:1.1.1.1
	RELEASE_4_3_0:1.1.1.1
	RELEASE_4_2_0:1.1.1.1
	RELEASE_4_1_1:1.1.1.1
	RELEASE_4_1_0:1.1.1.1
	RELEASE_3_5_0:1.1.1.1
	RELEASE_4_0_0:1.1.1.1
	RELEASE_3_4_0:1.1.1.1
	RELEASE_3_3_0:1.1.1.1
	RELEASE_3_2_0:1.1.1.1
	RELEASE_3_1_0:1.1.1.1
	RELEASE_2_2_8:1.1.1.1
	RELEASE_3_0_0:1.1.1.1
	RELEASE_2_2_7:1.1.1.1
	RELEASE_2_2_6:1.1.1.1
	RELEASE_2_2_5:1.1.1.1
	RELEASE_2_2_1:1.1.1.1
	RELEASE_2_2_2:1.1.1.1
	celvis_1_3:1.1.1.1
	OBRIEN:1.1.1;
locks; strict;
comment	@# @;


1.1
date	96.09.23.01.50.33;	author chuckr;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	96.09.23.01.50.33;	author chuckr;	state Exp;
branches;
next	;


desc
@@



1.1
log
@Initial revision
@
text
@--- tmp.c.orig	Thu Aug 15 04:45:57 1996
+++ tmp.c	Thu Aug 15 05:14:50 1996
@@@@ -21,6 +21,7 @@@@
 
 /* The FAIL() macro prints an error message and then exits. */
 #define FAIL(why,arg)	mode = MODE_EX; msg(why, arg); endwin(); HZ_abort(9)
+#define FAIL2(why,arg1,arg2)	mode = MODE_EX; msg(why, arg1, arg2); endwin(); HZ_abort(9)
 
 /* This is the name of the temp file */
 static char	tmpname[80];
@@@@ -91,7 +92,7 @@@@
 			if (*o_readonly || (statb.st_mode & S_IJRON))
 #endif
 #if OS9
-			if we don't have write permission...
+			/* if we don't have write permission... */
 #endif
 #if ANY_UNIX
 			if (*o_readonly || !(statb.st_mode &
@@@@ -149,7 +150,7 @@@@
 	tmpfd = open(tmpname, O_RDWR | O_BINARY);
 	if (tmpfd < 0)
 	{
-		FAIL("Can't create temporary file, errno=%d", errno);
+		FAIL2("Can't create temporary file (%s), errno=%d", tmpname, errno);
 		return 1;
 	}
 
@


1.1.1.1
log
@New port, celvis, a chinese language elvis (vi clone).
Submitted by:	David O'Brien (obrien@@cs.ucdavis.edu)
@
text
@@
