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/