admin管理员组文章数量:1202352
Background
In LLVM-libc, I am trying to create a new and modern implementation of POSIX layers on top of Windows API. I kind of lost myself on whether there is a way to map POSIX mode onto Windows' Access Control Mechanism (to the best effort if 100% compatibility is not possible).
Please be aware that LLVM-libc does not consider backward-compatibility with pre-Win10 editions. Hence, one can use modern Win32 API if needed.
What I have explored
UCRT does not support mode in
mkdir
. That parameter is removed from function prototype and it always usesnullptr
for windows ACL inCreateDirectory
.For
open
in UCRT, themode
is handled viaSetFileAttributesA
. Only READ_ONLY is handled.
I Hope to Know
- Is there any existing translation example?
- If not, is there a suitable way to utilize ACL/FileAttributes to achieve the goal?
本文标签: cHow to map POSIX mode in creatmkdir to windows ACLFileAttributeStack Overflow
版权声明:本文标题:c - How to map POSIX mode in creatmkdir to windows ACLFileAttribute - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738591354a2101527.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论