[libc] Add implementation of POSIX lseek function.Reviewed By: lntueDifferential Revision: https://reviews.llvm.org/D121676
[libc] Add implementations of POSIX mkdir, mkdirat, rmdir, unlink and unlinkat.Reviewed By: michaelrjDifferential Revision: https://reviews.llvm.org/D118641
[libc][NFC] Create file with all permissions for the user in read_write_test.
[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
show more ...
[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] apply formatting to testsApply the formatting rules that were applied to the libc/src directoryto the libc/test directory, as well as the files in libc/utils that areincluded by the tests.
[libc] apply formatting to testsApply the formatting rules that were applied to the libc/src directoryto the libc/test directory, as well as the files in libc/utils that areincluded by the tests. This does not include automated enforcement.Reviewed By: sivachandra, lntueDifferential Revision: https://reviews.llvm.org/D116127
[libc][NFC] add "LlvmLibc" as a prefix to all test namesSummary:Having a consistent prefix makes selecting all of the llvm libc testseasier on any platform that is also using the gtest framework.
[libc][NFC] add "LlvmLibc" as a prefix to all test namesSummary:Having a consistent prefix makes selecting all of the llvm libc testseasier on any platform that is also using the gtest framework.This also modifies the TEST and TEST_F macros to enforce this changemoving forward.Reviewers: sivachandraSubscribers:
[libc][obvious] Move ErrnoSetterMatcher to test/ErrnoSetterMetcher.h.
[libc][Take 2] Propagate entrypoint deps to downstream targets.This reverts commit a8086ba4ac85152d8407630e56e9ee5c8b46a214.Setting couple of target properties to an empty string was missed in the
[libc][Take 2] Propagate entrypoint deps to downstream targets.This reverts commit a8086ba4ac85152d8407630e56e9ee5c8b46a214.Setting couple of target properties to an empty string was missed in theprevious commit.
[libc] Revert "Propagate entrypoint deps to downstream targets."This reverts commit 20cb440ea210597bf223505604bb5f2220a067c6 as thetarget llvmlibc seems to be failing on the bots.
[libc] Propagate entrypoint deps to downstream targets.Deps are recrusively evaluated at the place they are needed. With thischange, one does not have to list recursive deps of entrypoints whenli
[libc] Propagate entrypoint deps to downstream targets.Deps are recrusively evaluated at the place they are needed. With thischange, one does not have to list recursive deps of entrypoints whenlisting test targets. One will still have to explicitly list allentrypoint objects when setting up an "add_entrypoint_library" target.Reviewers: abrachetDifferential Revision: https://reviews.llvm.org/D78537
[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