Re: close(status=delete) on a missing file
From: James Giles (jamesgiles_at_worldnet.att.net)
Date: 08/17/04
- Next message: Dr Chaos: "Re: Standards interpretation: interface and intent?"
- Previous message: Paul Van Delst: "Re: FORTRAN "Source Code to Flow Chart Converter" Available"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 17 Aug 2004 00:29:38 GMT
Dr Chaos wrote:
> James Giles <jamesgiles@worldnet.att.net> wrote:
...
>> The point I was making is that any attempt to delete a file that
>> *does* have the appropriate privilege should not appear to
>> work and yet leave the file in existence. The file *should* be
>> gone afterwards.
>
> On Unix, from the point of view of the Fortran I/O and computational
> model, OPEN(unit=?), CLOSE(unit=?), etc won't it be true
> that the file is no longer in existence?
No. The same Fortran program will often still be able to open
and use the same file through the same or different filename,
depending on what the the reason was that the file failed to
delete.
>
> From Fortran's point of view, anything IT put in there is now gone.
Not necessarily. If the information is still available, it's still
available
to something written in Fortran. Or, are you claiming that Fortran is
not capable of doing I/O on all the files present in a UNIX environment?
...
>> If not, there should be some indication of why.
>> There should also be a more aggressive form of delete that can't
>> be blocked no matter who else is using the file.
>
> OK. What would happen to the other processes, would they then
> get some kind of I/O error (just as if you popped out a floppy
> disc)?
That's a good analogy. If the owner of the data requires that it be
deleted with extreme prejudice, the lesser of two evils is to have
subsequent I/O from those other processes fail than to let them
continue to use data that *should* be gone!
-- J. Giles "I conclude that there are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies and the other way is to make it so complicated that there are no obvious deficiencies." -- C. A. R. Hoare
- Next message: Dr Chaos: "Re: Standards interpretation: interface and intent?"
- Previous message: Paul Van Delst: "Re: FORTRAN "Source Code to Flow Chart Converter" Available"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|