aboutsummaryrefslogtreecommitdiff
path: root/libiberty/mkstemps.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2002-01-22 20:14:53 +0000
committerDJ Delorie <dj@redhat.com>2002-01-22 20:14:53 +0000
commitcc096b7166610e6cca71574ef936acbabc922708 (patch)
treee1f498ad212739694972f83364c71a374ce90a3d /libiberty/mkstemps.c
parent069e84fd968e0561b436e2af0bd2310e028fd04f (diff)
downloadgdb-cc096b7166610e6cca71574ef936acbabc922708.zip
gdb-cc096b7166610e6cca71574ef936acbabc922708.tar.gz
gdb-cc096b7166610e6cca71574ef936acbabc922708.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/mkstemps.c')
-rw-r--r--libiberty/mkstemps.c4
1 files changed, 4 insertions, 0 deletions
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;