[erlang-questions] tempfile, or O_EXCL

tsuraan tsuraan@REDACTED
Mon Nov 17 20:25:24 CET 2008


Is there any way to specify exclusive (posix O_EXCL) with write when
opening a file in Erlang?  I couldn't find a mkstemp anywhere in the
standard library, so I wrote one myself, but without EXCL, it's not
very safe.  I'd like to fix that, but I don't see how to do so without
being able to open a file in exclusive write mode.



More information about the erlang-questions mailing list