diff options
author | aosipenko <[email protected]> | 2022-02-10 16:48:08 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:48:08 +0300 |
commit | 69e3c43df1c96bc2ac8946bf4dfb1f5fc438ff7f (patch) | |
tree | b222e5ac2e2e98872661c51ccceee5da0d291e13 /util/system/file.cpp | |
parent | 948fd24d47d4b3b7815aaef1686aea00ef3f4288 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/system/file.cpp')
-rw-r--r-- | util/system/file.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/system/file.cpp b/util/system/file.cpp index c971df64e2d..4a261d020cb 100644 --- a/util/system/file.cpp +++ b/util/system/file.cpp @@ -86,10 +86,10 @@ TFileHandle::TFileHandle(const TString& fName, EOpenMode oMode) noexcept { case OpenAlways: fcMode = OPEN_ALWAYS; break; - case CreateNew: + case CreateNew: fcMode = CREATE_NEW; break; - case CreateAlways: + case CreateAlways: fcMode = CREATE_ALWAYS; break; default: @@ -152,10 +152,10 @@ TFileHandle::TFileHandle(const TString& fName, EOpenMode oMode) noexcept { case OpenAlways: fcMode = O_CREAT; break; - case CreateNew: + case CreateNew: fcMode = O_CREAT | O_EXCL; break; - case CreateAlways: + case CreateAlways: fcMode = O_CREAT | O_TRUNC; break; default: @@ -417,7 +417,7 @@ bool TFileHandle::Flush() noexcept { return false; } #if defined(_win_) - bool ok = ::FlushFileBuffers(Fd_) != 0; + bool ok = ::FlushFileBuffers(Fd_) != 0; /* * FlushFileBuffers fails if hFile is a handle to the console output. * That is because the console output is not buffered. |