VMS change to temp file handling in gcc.c
Daniel Jacobowitz
drow@mvista.com
Fri Jan 4 20:00:00 GMT 2002
On Fri, Jan 04, 2002 at 07:26:42PM -0800, Douglas B. Rupp wrote:
> > I'd really rather you create the tempfile on VMS in such a way that
> > multiple versions are not created. Is that impractical?
>
> This should do it, if the libiberty gurus to along with it. Also assuming
> Compaq doesn't someday introduce a DEC C RTL mkstemps to overrride it.
I like this one much better, but of course it's in DJ's realm. Thanks!
>
> *** libiberty/mkstemps.c_old Fri Jan 4 19:13:51 2002
> --- libiberty/mkstemps.c Fri Jan 4 19:14:40 2002
> *************** mkstemps (template, suffix_len)
> *** 121,127 ****
> --- 121,131 ----
> v /= 62;
> XXXXXX[5] = letters[v % 62];
>
> + #ifdef VMS
> + fd = open (template, O_RDWR|O_CREAT|O_EXCL, 0600, "mxv=1");
> + #else
> fd = open (template, O_RDWR|O_CREAT|O_EXCL, 0600);
> + #endif
> if (fd >= 0)
> /* The file does not exist. */
> return fd;
>
>
>
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
More information about the Gcc-patches
mailing list