I'm porting very old project to c++17 (atomics, mutexes, UTF conversions, etc), and faced with CreateFile parameters problem.
Let's say
::CreateFileA(newFileName, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0)
Is there 100% equivalent code using std::filesystem permissions and other stuff? So far I can't see something similar to FILE_SHARE_READ or GENERIC_WRITE.
UP: We need this for Linux port.