Is there a way to get the functionality of open(..., O_CREAT|O_EXCL)
under Windows?  For those who don't know, O_EXCL opens the file
"exclusively", guaranteeing that the file we're opening will not be
overwritten.  (Note that it's not enough to check that the file
doesn't exist before opening it; it can spring into existence between
the check and the open.)

I cannot find a way to do the equivalent on Windows.  Does O_EXCL just
work on Windows?  A search for O_EXCL on MSDN doesn't reveal any
results.

Reply via email to