Mail Archives: djgpp-workers/2001/02/17/12:57:11
Hello.
"Mark E." wrote:
> The other case of one file opened twice with O_TEMPORARY can definitely
> be handled as if it were a 'dup' call. But I'm not sure yet what should
> be done about this case, but it could be done the same way. The only
> flaw I see is if the file is opened first without O_TEMPORARY, the
> second open with O_TEMPORARY won't be able to find out about the first
> one.
>
> Ideas on what to do here and why are definitely welcome.
If you have opened a file without O_TEMPORARY, then I don't think that
subsequent opens of that file should be able to make it temporary. I think
it should generate an error like EPERM - a "no permission to change file
attributes" error.
Or is this a question on how to implement such a feature? (I admit I
haven't been following the code to implement O_TEMPORARY closely.)
Bye, Rich =]
--
Richard Dawe <richdawe AT bigfoot DOT com> http://www.bigfoot.com/~richdawe/
"The soul is the mirror of an indestructible universe."
--- Gottfried W. Leibniz
- Raw text -