stream: extend open/create disposition flags

User could not create file only if it did not exist.

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
2023-09-20 11:13:12 +02:00
parent 50fea81f83
commit 475e6734a7
2 changed files with 39 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
/*
/*
SPDX-License-Identifier: MIT
Copyright © 2023 Amebis
*/
@@ -124,7 +124,7 @@ namespace UnitTests
dat.close();
}
for (uint32_t i = 0; i < count; ++i) {
dat.open(filename[i].c_str(), mode_for_reading | share_none | mode_binary);
dat.open(filename[i].c_str(), mode_for_reading | mode_open_existing | share_none | mode_binary);
Assert::IsTrue(dat.ok());
for (;;) {
uint32_t x;