Added wxFile::write_excl and use it from wxTempFile to securely open the

temporary file.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ron Lee
2001-12-01 13:51:24 +00:00
parent ab3edaceba
commit 681641370c
2 changed files with 15 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ public:
// more file constants
// -------------------
// opening mode
enum OpenMode { read, write, read_write, write_append };
enum OpenMode { read, write, read_write, write_append, write_excl };
// standard values for file descriptor
enum { fd_invalid = -1, fd_stdin, fd_stdout, fd_stderr };