[libc] Add implementation of POSIX lseek function.Reviewed By: lntueDifferential Revision: https://reviews.llvm.org/D121676
[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] Add a few missing deps, includes, and fix a few typos.This allows us to enable rmdir, mkdir, mkdirat, unlink and unlinkat foraarch64.
[libc] Add implementations of POSIX mkdir, mkdirat, rmdir, unlink and unlinkat.Reviewed By: michaelrjDifferential Revision: https://reviews.llvm.org/D118641
[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
[libc][NFC] Move the POSIX write function to the default build on linux.
[libc][NFC] Move sys/mman entrypoints to the default build configs.Specifically, mmap and munmap have been moved to the default build listof entrypoints. To support this, certain deps and includes
[libc][NFC] Move sys/mman entrypoints to the default build configs.Specifically, mmap and munmap have been moved to the default build listof entrypoints. To support this, certain deps and includes have beenadjusted. The use of errno in some cases has been updated.
[libc] Move the x86_64 syscall functions to OSUtil.Reviewed By: michaelrj, lntueDifferential Revision: https://reviews.llvm.org/D116177
[libc] Switch to use a macro which does not insert a section for every libc function.Summary:The new macro also inserts the C alias for the C++ implementationswithout needing an objcopy based pos
[libc] Switch to use a macro which does not insert a section for every libc function.Summary:The new macro also inserts the C alias for the C++ implementationswithout needing an objcopy based post processing step. The CMakerules have been updated to reflect this. More CMake cleanup can betaken up in future rounds and appropriate TODOs have been added for them.Reviewers: mcgrathr, sivachandraSubscribers:
[libc] Add write(2) implementation for Linux and FDReader test utilitySummary: Adds `write` for Linux and FDReader utility which should be useful for some stdio tests as well.Reviewers: sivachand
[libc] Add write(2) implementation for Linux and FDReader test utilitySummary: Adds `write` for Linux and FDReader utility which should be useful for some stdio tests as well.Reviewers: sivachandra, PaulkaToastReviewed By: sivachandraSubscribers: mgorny, tschuett, libc-commitsDifferential Revision: https://reviews.llvm.org/D78184