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.