summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorDouglas B Rupp <rupp@gnat.com>2002-01-15 09:34:56 -0500
committerRichard Kenner <kenner@gcc.gnu.org>2002-01-15 09:34:56 -0500
commit0e83ceb1b98bc601d6509f47417b37af63cd81d6 (patch)
tree2d3741d98db375c1bfe9eb45b48d99e89bbf5b04 /libiberty
parent9a52433e8a3895cfef67eabcf9d0021b67827026 (diff)
downloadgcc-0e83ceb1b98bc601d6509f47417b37af63cd81d6.tar.gz
mkstemps.c (mkstemps): On VMS, open temp file with option that causes it to be deleted when closed.
* libiberty/mkstemps.c (mkstemps): On VMS, open temp file with option that causes it to be deleted when closed. * gcc/gcc.c (delete_if_ordinary): Backout previous change. From-SVN: r48872
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog5
-rw-r--r--libiberty/mkstemps.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index fdccb59ab43..43a2951dae1 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-15 Douglas B Rupp <rupp@gnat.com>
+
+ * mkstemps.c (mkstemps): On VMS, open temp file with option
+ that causes it to be deleted when closed.
+
2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cp-demangle.c (long_options): Const-ify.
diff --git a/libiberty/mkstemps.c b/libiberty/mkstemps.c
index 8fe5784f189..1f6600a15b9 100644
--- a/libiberty/mkstemps.c
+++ b/libiberty/mkstemps.c
@@ -121,7 +121,11 @@ mkstemps (template, suffix_len)
v /= 62;
XXXXXX[5] = letters[v % 62];
+#ifdef VMS
+ fd = open (template, O_RDWR|O_CREAT|O_EXCL, 0600, "fop=tmd");
+#else
fd = open (template, O_RDWR|O_CREAT|O_EXCL, 0600);
+#endif
if (fd >= 0)
/* The file does not exist. */
return fd;