From 0e83ceb1b98bc601d6509f47417b37af63cd81d6 Mon Sep 17 00:00:00 2001 From: Douglas B Rupp Date: Tue, 15 Jan 2002 09:34:56 -0500 Subject: 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 --- libiberty/mkstemps.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libiberty/mkstemps.c') diff --git a/libiberty/mkstemps.c b/libiberty/mkstemps.c index 8fe5784..1f6600a 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; -- cgit v1.1