version 1.5, 1996/07/25 05:31:02 |
version 1.6, 1996/07/29 17:50:09 |
|
|
int flags; |
int flags; |
char *msgbuf; |
char *msgbuf; |
{ |
{ |
int fd; |
|
|
|
if (IS_ON(flags, MT_DEBUG)) |
if (IS_ON(flags, MT_DEBUG)) |
return; |
return; |
|
|
|
|
if (!msgfac->mf_fptr) { |
if (!msgfac->mf_fptr) { |
register char *cp; |
register char *cp; |
char *getenv(); |
char *getenv(); |
|
int fd; |
|
|
/* |
/* |
* Create and open a new temporary file |
* Create and open a new temporary file |
|
|
|
|
msgfac->mf_filename = tempfile; |
msgfac->mf_filename = tempfile; |
if ((fd = mkstemp(msgfac->mf_filename)) == -1 || |
if ((fd = mkstemp(msgfac->mf_filename)) == -1 || |
(msgfac->mf_fptr = fdopen(fd, "w"))==NULL) { |
(msgfac->mf_fptr = fdopen(fd, "w")) == NULL) { |
if (fd != -1) |
if (fd != -1) |
close(fd); |
close(fd); |
fatalerr("Cannot open notify file for writing: %s: %s.", |
fatalerr("Cannot open notify file for writing: %s: %s.", |