Mail Archives: djgpp-workers/2001/02/16/18:32:52
> Did they tell on what OS is that?
From Win95 on.
> remove call if a file is open, so the file remains undeleted. DOS
> blindly deletes the file and corrupts the FAT. If we want the
> behavior you described on all platforms, we will have to do that
> explicitly.
> So I guess this all means you need to handle normal open for a file
> which is open with O_TEMPORARY as if it were a `dup' call, right?
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.
Mark
- Raw text -