Mail Archives: djgpp-workers/2000/06/13/06:35:58
On Mon, 12 Jun 2000, Mark E. wrote:
> > I thought that this was supposed to solve the situation where the
> > application deletes an open file, no? If so, the challenge is to turn
> > on this flag automatically inside the `remove' function.
>
> The objective, as I see it, is to provide a reliable way to port Unix code
> that uses the 'open/unlink/close' way of making a temporary file.
Yes, that's what I meant as well. In other words, adding O_TEMPORARY
without handling the unlink problem is much less useful (although I
have nothing against such a feature per se).
> To set the flag inside the 'remove' function, DJGPP would have know (in my
> opinion) the filename associated with the file descriptor.
Yes.
> Otherwise, it
> would have to try and remove a possibly open file and rely on file locking
> (and that SHARE is running in plain DOS) to signal the file is still open,
> and then have 'remove' or 'unlink' set the O_TEMPORARY flag accordingly.
A side note: SHARE will not help, since IIRC it generates Int 24,
which cannot be reliably caught by a DJGPP program.
- Raw text -