safely: Temporary file name changes.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 11 May 2006 18:41:58 +0000 (19:41 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 11 May 2006 18:41:58 +0000 (19:41 +0100)
commit623291d25eb6f31558f252f037997549171b4d24
tree94992c61fcd473c6635676d7cc1e2b62e9b3ee31
parent46cd5c4bce3089c64e40a23db9136b2ddcce3885
safely: Temporary file name changes.

  * Use CL pathname magic to mess only with the name component of paths
    rather than putting extensions on the end, which seems to confuse
    CMU CL.

  * Use a Scsh-like fresh-name generator where it matters, rather than
    hoping (in the case of move-aside names).  This means generating old
    names later on in the process, but that seems OK.

  * Do the file copy in plain Lisp using read/write-sequence rather than
    Unix hacking.  There's a hack here for CMU CL to use link(2) for
    efficiency's sake, but it's not strictly necessary.

This means that the whole package is, in fact, standard Common Lisp.
Yay.
safely.lisp