[libc-commits] [libc] [libc] Implement ppoll in poll (PR #225767)
via libc-commits
libc-commits at lists.llvm.org
Wed Sep 23 06:38:34 PDT 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/hdr/poll_macros.h libc/src/poll/linux/ppoll.cpp libc/src/poll/ppoll.h libc/test/src/poll/ppoll_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/poll/linux/ppoll.cpp b/libc/src/poll/linux/ppoll.cpp
index ad83b72b1..59d398580 100644
--- a/libc/src/poll/linux/ppoll.cpp
+++ b/libc/src/poll/linux/ppoll.cpp
@@ -22,7 +22,7 @@
namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(int, ppoll,
- (struct pollfd *fds, nfds_t nfds,
+ (struct pollfd * fds, nfds_t nfds,
const struct timespec *tmo_p, const sigset_t *sigmask)) {
timespec ts;
timespec *tsp = nullptr;
@@ -32,8 +32,8 @@ LLVM_LIBC_FUNCTION(int, ppoll,
}
#if defined(SYS_ppoll_time64)
- int ret = LIBC_NAMESPACE::syscall_impl<int>(
- SYS_ppoll_time64, fds, nfds, tsp, sigmask, sizeof(sigset_t));
+ int ret = LIBC_NAMESPACE::syscall_impl<int>(SYS_ppoll_time64, fds, nfds, tsp,
+ sigmask, sizeof(sigset_t));
#elif defined(SYS_ppoll)
static_assert(
sizeof(timespec::tv_nsec) == sizeof(long),
``````````
</details>
https://github.com/llvm/llvm-project/pull/225767
More information about the libc-commits
mailing list