[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Questions about OPEN
- To: RAM@CMU-CS-C.ARPA
- Subject: Re: Questions about OPEN
- From: Charles Hedrick <HEDRICK@RUTGERS.ARPA>
- Date: Fri, 05 Oct 1984 17:09:00 -0000
- Cc: Moon@SCRC-RIVERSIDE.ARPA, common-lisp@SU-AI.ARPA, heller%umass-cs.csnet@CSNET-RELAY.ARPA
- In-reply-to: Message from "Rob MacLachlan <RAM@CMU-CS-C.ARPA>" of 5 Oct 84 02:46:00 EDT
On the DEC-20 it would certainly be better to maintain the distinction
between filename and stream. A common strategy for an editor is to
write a new copy of a file with a temporary file name, close it, and
then rename it on top of the original. This minimizes the probability
of damage in a crash. One would prefer to use the same JFN for this
entire process. A JFN is a small integer that is a handle on a file.
If you keep the JFN active, you are sure that nobody else is going to
rename the file out from under you or do anything else nefarious.
This is easy if all of the operations can be done on streams. My
feeling is that the distinction makes sense on some OS's, and on
others causes no harm (other than extra code), so it should be kept.