Mail Archives: djgpp-workers/1998/05/04/04:46:29
Date sent: Sun, 3 May 1998 17:17:28 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Subject: Re: mkstemp.c
>
> On Wed, 29 Apr 1998, Andris Pavenis wrote:
>
> > For gcc I think we should avoid putting temporary directory on
> > network drive if possible.
>
> You cannot rely on people to endure such a requirement. Somebody,
> someday will do the unthinkable, and it is not nice for GCC to fail
> then.
I checked this with shared disk from WinNT 4.0 and all worked Ok.
I don't have possibility to test this with other redirectors, but I think
the situation is not so terrible even if some of them is returning something
weird as the current return value of biostime is used to generate the name
problems fore ms may occur only if first attempt to create temporary file
fails that should be very rare event. If there will be some problems we'll
be able to return to this question later when next version of gcc will be released...
>
> But I think your suggestion is safe enough, so I don't think we should
> worry too much about that.
>
> > In suggested version (errno != ENOENT) program can go in unnecessary
> > loop on some I/O problem. Perhaps it would be better to post some test
> > example for checking this in different systems and ask to send the results.
>
> It never hurts to ask people to test and report results. So please go
> ahead and ask them.
>
The only problem here is to write some test suite for checking results of
file operation in different situations. Currently I don't have one and I don't know
when (or whether) I'll have
Andris
- Raw text -