version 1.3, 1996/07/18 22:52:58 |
version 1.4, 1996/09/16 02:26:10 |
|
|
TAG *intmpp; |
TAG *intmpp; |
int fd, n; |
int fd, n; |
char *p, *b; |
char *p, *b; |
char buf[MAXPATHLEN], cmd[MAXPATHLEN], tpath[sizeof(_PATH_TMP)]; |
char buf[MAXPATHLEN], cmd[MAXPATHLEN], tpath[MAXPATHLEN]; |
|
|
/* Let the user know this may take awhile. */ |
/* Let the user know this may take awhile. */ |
if (!warned) { |
if (!warned) { |
|
|
* Get a temporary file and build a version of the file |
* Get a temporary file and build a version of the file |
* to display. Replace the old file name with the new one. |
* to display. Replace the old file name with the new one. |
*/ |
*/ |
(void)strcpy(tpath, _PATH_TMP); |
(void)strcpy(tpath, _PATH_TMPFILE); |
if ((fd = mkstemp(tpath)) == -1) { |
if ((fd = mkstemp(tpath)) == -1) { |
warn("%s", tpath); |
warn("%s", tpath); |
(void)cleanup(); |
(void)cleanup(); |