They are implemented as simple syscall wrappers. The file creation
macros have been put in a header file as a temporary solution until we
have a cleaner approach to listing platform relevant macros.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/include/llvm-libc-macros/linux/fcntl-macros.h | ||
---|---|---|
2 | With errno we just include linux/errno.h can we use linux/fcntl.h? |
libc/include/llvm-libc-macros/linux/fcntl-macros.h | ||
---|---|---|
2 | I think, including linux headers was an error on our part. Primary reason is that the linux headers bring in more names and pollute the user namespace. I think there are ways to avoid this hard-coding as done in this patch, but I will propose that in a follow up patch. |
With errno we just include linux/errno.h can we use linux/fcntl.h?