[libc-commits] [libc] [libc] Implement sigpending (PR #237568)
via libc-commits
libc-commits at lists.llvm.org
Sun Nov 1 08:29:12 PST 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp,h -- libc/src/__support/OSUtil/linux/syscall_wrappers/rt_sigpending.h libc/src/signal/linux/sigpending.cpp libc/src/signal/sigpending.h libc/test/src/signal/sigpending_test.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/src/signal/linux/sigpending.cpp b/libc/src/signal/linux/sigpending.cpp
index 4c72d2d67..b81c1fabb 100644
--- a/libc/src/signal/linux/sigpending.cpp
+++ b/libc/src/signal/linux/sigpending.cpp
@@ -16,7 +16,7 @@
namespace LIBC_NAMESPACE_DECL {
-LLVM_LIBC_FUNCTION(int, sigpending, (sigset_t *set)) {
+LLVM_LIBC_FUNCTION(int, sigpending, (sigset_t * set)) {
auto result = linux_syscalls::rt_sigpending(set);
if (result.has_value())
return 0;
``````````
</details>
https://github.com/llvm/llvm-project/pull/237568
More information about the libc-commits
mailing list