[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][obvious] fix formatting mistakeI missed two instances of "SetUp" being replaced by "set_up" and"TearDown" being replaced by "tear_down" when finalizing the formattingchange. This fixes tha
[libc][obvious] fix formatting mistakeI missed two instances of "SetUp" being replaced by "set_up" and"TearDown" being replaced by "tear_down" when finalizing the formattingchange. This fixes that.Differential Revision: https://reviews.llvm.org/D116178
[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 a death test API adaptation macroFuchsia's zxtest has a slightly different death test definition, andthis macro makes our death test API work on Fuchsia.Reviewed By: sivachandra
[libc][NFC] Add a death test API adaptation macroFuchsia's zxtest has a slightly different death test definition, andthis macro makes our death test API work on Fuchsia.Reviewed By: sivachandraDifferential Revision: https://reviews.llvm.org/D95648
[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][NFC] Cleanup dependencies in src/signal and test/src/signal.Reviewers: abrachetDifferential Revision: https://reviews.llvm.org/D78585
[libc] Add fully-qualified target names.Only targets setup by the special LLVM libc rules now have fullyqualified names. The naming style is similar to fully qualified names inPython.Reviewers:
[libc] Add fully-qualified target names.Only targets setup by the special LLVM libc rules now have fullyqualified names. The naming style is similar to fully qualified names inPython.Reviewers: abrachet, PaulkaToast, phosekDifferential Revision: https://reviews.llvm.org/D77340
[libc][NFC] Make all top of file comments consistent.Summary:Made all header files consistent based of this documentation: https://llvm.org/docs/CodingStandards.html#file-headers.And did the same
[libc][NFC] Make all top of file comments consistent.Summary:Made all header files consistent based of this documentation: https://llvm.org/docs/CodingStandards.html#file-headers.And did the same for all source files top of file comments.Reviewers: sivachandra, abrachetReviewed By: sivachandra, abrachetSubscribers: MaskRay, tschuett, libc-commitsTags: #libc-projectDifferential Revision: https://reviews.llvm.org/D77533
[libc] Add sigfillset and sigdelsetSummary: Add's `sigfillset` and `sigdelset` which will be used in D76676.Reviewers: sivachandra, PaulkaToastReviewed By: sivachandraSubscribers: mgorny, Mas
[libc] Add sigfillset and sigdelsetSummary: Add's `sigfillset` and `sigdelset` which will be used in D76676.Reviewers: sivachandra, PaulkaToastReviewed By: sivachandraSubscribers: mgorny, MaskRay, tschuett, libc-commitsDifferential Revision: https://reviews.llvm.org/D76936
[libc] Extend add_object rule to handle helper object libraries.The rule is now called add_object_library.Reviewers: abrachetDifferential Revision: https://reviews.llvm.org/D76826
[libc] Add signalSummary:This patch adds a Linux implementation for `signal`It also fixes `ASSERT|EXPECT_THAT` macrosReviewers: sivachandra, PaulkaToast, MaskRayReviewed By: sivachandraSubs
[libc] Add signalSummary:This patch adds a Linux implementation for `signal`It also fixes `ASSERT|EXPECT_THAT` macrosReviewers: sivachandra, PaulkaToast, MaskRayReviewed By: sivachandraSubscribers: mgorny, tschuett, libc-commitsDifferential Revision: https://reviews.llvm.org/D76536
[libc] Add sigactionSummary: This patch adds `sigaction` and the `sa_restorer` signal trampoline function `__restore_rt`Reviewers: sivachandra, MaskRay, PaulkaToastReviewed By: sivachandraSub
[libc] Add sigactionSummary: This patch adds `sigaction` and the `sa_restorer` signal trampoline function `__restore_rt`Reviewers: sivachandra, MaskRay, PaulkaToastReviewed By: sivachandraSubscribers: gchatelet, mgorny, tschuett, libc-commitsDifferential Revision: https://reviews.llvm.org/D75802
[libc] [NFC] Use matchers in testsSummary:Use `EXPECT_THAT` where possible in tests NFC intended.Added a `void *` template instantiation of `StreamWrapper::operator<<`Reviewers: sivachandra, P
[libc] [NFC] Use matchers in testsSummary:Use `EXPECT_THAT` where possible in tests NFC intended.Added a `void *` template instantiation of `StreamWrapper::operator<<`Reviewers: sivachandra, PaulkaToastReviewed By: sivachandraSubscribers: MaskRay, tschuett, libc-commitsDifferential Revision: https://reviews.llvm.org/D75717
[libc] [UnitTest] Add MatchersSummary: This patch adds gtest-like matchers and `EXPECT|ASSERT_THAT` macros. It also adds matchers `Succeeds` and `Fails` and has examples using these in test/src/sig
[libc] [UnitTest] Add MatchersSummary: This patch adds gtest-like matchers and `EXPECT|ASSERT_THAT` macros. It also adds matchers `Succeeds` and `Fails` and has examples using these in test/src/signal/sigaddset_test.cpp.Reviewers: sivachandra, gchatelet, PaulkaToastReviewed By: sivachandra, PaulkaToastSubscribers: mgorny, MaskRay, tschuett, libc-commitsDifferential Revision: https://reviews.llvm.org/D75487
[libc] Add sigprocmaskSummary: This patch adds `sigprocmask`, `sigemptyset` and `sigaddset`Reviewers: sivachandra, MaskRay, gchateletReviewed By: sivachandraSubscribers: mgorny, tschuett, lib
[libc] Add sigprocmaskSummary: This patch adds `sigprocmask`, `sigemptyset` and `sigaddset`Reviewers: sivachandra, MaskRay, gchateletReviewed By: sivachandraSubscribers: mgorny, tschuett, libc-commitsDifferential Revision: https://reviews.llvm.org/D75026
[libc] [UnitTest] Create death testsSummary: This patch adds `EXPECT_EXITS` and `EXPECT_DEATH` macros for testing exit codes and deadly signals. They are less convoluted than their analogs in GTEST
[libc] [UnitTest] Create death testsSummary: This patch adds `EXPECT_EXITS` and `EXPECT_DEATH` macros for testing exit codes and deadly signals. They are less convoluted than their analogs in GTEST and don't have matchers but just take an int for either the exit code or the signal respectively. Nor do they have any regex match against the stdout/stderr of the child process.Reviewers: sivachandra, gchateletReviewed By: sivachandraSubscribers: mgorny, MaskRay, tschuett, libc-commitsDifferential Revision: https://reviews.llvm.org/D74665
[libc] Add Initial Support for SignalsSummary:This patch adds signal support on Linux. The current implementation gets the SIG* macros and types like `sigset_t` from <linux/signals.h>This patch
[libc] Add Initial Support for SignalsSummary:This patch adds signal support on Linux. The current implementation gets the SIG* macros and types like `sigset_t` from <linux/signals.h>This patch also adds raise(3), and internal routines `block_all_signals` and `restore_signals`Reviewers: sivachandra, MaskRay, gchateletReviewed By: sivachandraSubscribers: libc-commits, mgorny, tschuettDifferential Revision: https://reviews.llvm.org/D74528