diff options
author | DJ Delorie <dj@redhat.com> | 2002-01-22 20:14:53 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2002-01-22 20:14:53 +0000 |
commit | cc096b7166610e6cca71574ef936acbabc922708 (patch) | |
tree | e1f498ad212739694972f83364c71a374ce90a3d /libiberty/mkstemps.c | |
parent | 069e84fd968e0561b436e2af0bd2310e028fd04f (diff) | |
download | gdb-cc096b7166610e6cca71574ef936acbabc922708.zip gdb-cc096b7166610e6cca71574ef936acbabc922708.tar.gz gdb-cc096b7166610e6cca71574ef936acbabc922708.tar.bz2 |
merge from gcc
Diffstat (limited to 'libiberty/mkstemps.c')
-rw-r--r-- | libiberty/mkstemps.c | 4 |
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; |