Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
While Linux systems are able to pass their low level flags directly into
These invented values are then checked against a subset of the features that Windows actually supports in syscall.Open
Despite Windows supporting FILE_FLAG_WRITE_THROUGH (very close to O_SYNC on Linux) the Open function does not check for O_SYNC. This is unexpected behavior as developers would expect the O_SYNC flag on Windows to work since it can perform synchronous writes.
Some ways to resolve this unexpected behavior include: