Add with-temporary-file.
authorMatt Birkholz <matt@birchwood-abbey.net>
Tue, 25 Apr 2017 21:03:38 +0000 (14:03 -0700)
committerMatt Birkholz <matt@birchwood-abbey.net>
Tue, 25 Apr 2017 23:51:09 +0000 (16:51 -0700)
commitb3acabd3ba03a36709bdfbb554fced1f399624db
tree7bc6722e81b8494348b6b06dde8e4b47c5dc7f53
parent751ea9a28924ddd1d33e35339693d0b21d27bac2
Add with-temporary-file.

This is basically call-with-temporary-file-pathname except it takes
the pathname and does not touch the file (allowing e.g. open-
exclusive-output-file to create it).  Also, optimize deallocate-
temporary-file for the case when the temporary file is already gone
(e.g. renamed into place).
src/runtime/runtime.pkg
src/runtime/sfile.scm