[libc] Make the errno macro resolve to the thread local variable directly.With modern architectures having a thread pointer and language supportingthread locals, there is no reason to use a functi
[libc] Make the errno macro resolve to the thread local variable directly.With modern architectures having a thread pointer and language supportingthread locals, there is no reason to use a function intermediary to accessthe thread local errno value.The entrypoint corresponding to errno has been replaced with an objectlibrary as there is no formal entrypoint for errno anymore.Reviewed By: jeffbailey, michaelrjDifferential Revision: https://reviews.llvm.org/D120920
show more ...
[libc] Enable creat, fsync, open, openat, read and write for aarch64.
[libc] Add implementations of the POSIX creat and openat functions.Reviewed By: michaelrjDifferential Revision: https://reviews.llvm.org/D118435
[libc] Add POSIX close, fsync, open, read and write functions.They are implemented as simple syscall wrappers. The file creationmacros have been put in a header file as a temporary solution until
[libc] Add POSIX close, fsync, open, read and write functions.They are implemented as simple syscall wrappers. The file creationmacros have been put in a header file as a temporary solution until wehave a cleaner approach to listing platform relevant macros.Reviewed By: abrachetDifferential Revision: https://reviews.llvm.org/D118396