forked from golang/go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support O_SYNC flag for os.Open on windows
The current implementation of `os.Open` function does not use the O_SYNC flag. This means that even if user has set the O_SYNC flag, the `os.Open` call will ignore the `SYNC` flag. This commit fixes the issue by adding the `FILE_FLAG_WRITE_THROUGH` which is the equivalent of `O_SYNC` flag on linux. Fixes golang#35358
- Loading branch information
1 parent
f65ad0d
commit d8c49d6
Showing
2 changed files
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters