Temporary files Lassi Kortela (09 May 2019 18:16 UTC)
Re: Temporary files Per Bothner (09 May 2019 18:52 UTC)
Re: Temporary files Lassi Kortela (09 May 2019 18:59 UTC)
Re: Temporary files Lassi Kortela (09 May 2019 19:05 UTC)

Re: Temporary files Per Bothner 09 May 2019 18:51 UTC

On 5/9/19 11:16 AM, Lassi Kortela wrote:
> Some Unix APIs are classic race condition attractors. mktemp() is one API to avoid because of this. Luckily, create-temp-file in the first draft is smarter than mktemp(): once it finds an unused temp file name, it creates a file under that name, thereby "reserving" that name.

Kawa has make-temporary-file, which takes a format:
https://www.gnu.org/software/kawa/Files.html#idm139913596085696

(The note about race conditions is obsolete and will be removed.)
--
	--Per Bothner
xxxxxx@bothner.com   http://per.bothner.com/