Mercurial > emacs
changeset 33285:91819a44456a
(Fcall_process_region): Use HAVE_MKSTEMP.
author | Dave Love <fx@gnu.org> |
---|---|
date | Tue, 07 Nov 2000 18:12:12 +0000 |
parents | 378de628b526 |
children | 2281a1a9c54a |
files | src/callproc.c |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/callproc.c Tue Nov 07 18:10:05 2000 +0000 +++ b/src/callproc.c Tue Nov 07 18:12:12 2000 +0000 @@ -967,7 +967,18 @@ coding_systems = Qt; +#ifdef HAVE_MKSTEMP + { + int fd = mkstemp (tempfile); + if (fd == -1) + report_file_error ("Failed to open temporary file", + Fcons (Vtemp_file_name_pattern, Qnil)); + else + close (fd); + } +#else mktemp (tempfile); +#endif filename_string = build_string (tempfile); GCPRO1 (filename_string);