HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb6cf84
)
(Fcall_process_region): Use HAVE_MKSTEMP.
author
Dave Love
<fx@gnu.org>
Tue, 7 Nov 2000 18:12:12 +0000
(18:12 +0000)
committer
Dave Love
<fx@gnu.org>
Tue, 7 Nov 2000 18:12:12 +0000
(18:12 +0000)
src/callproc.c
patch
|
blob
|
blame
|
history
diff --git
a/src/callproc.c
b/src/callproc.c
index
bf2fabc
..
9ba459f
100644
(file)
--- a/
src/callproc.c
+++ b/
src/callproc.c
@@
-967,7
+967,18
@@
If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
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);