[libc] [llvm] [libc] add remaining epoll functions, pipe (PR #84587)

via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 8 16:30:40 PST 2024


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 9d0acb872a5063f570366cd0e94b069d286cc71f f6e900387af6d98c6d9b7d3d27f91db97aa18063 -- libc/include/llvm-libc-macros/linux/sys-epoll-macros.h libc/include/llvm-libc-macros/sys-epoll-macros.h libc/src/sys/epoll/epoll_create.h libc/src/sys/epoll/epoll_create1.h libc/src/sys/epoll/epoll_ctl.h libc/src/sys/epoll/linux/epoll_create.cpp libc/src/sys/epoll/linux/epoll_create1.cpp libc/src/sys/epoll/linux/epoll_ctl.cpp libc/src/unistd/linux/pipe.cpp libc/src/unistd/pipe.h libc/test/src/sys/epoll/linux/epoll_create1_test.cpp libc/test/src/sys/epoll/linux/epoll_create_test.cpp libc/test/src/sys/epoll/linux/epoll_ctl_test.cpp libc/test/src/unistd/pipe_test.cpp libc/src/sys/epoll/linux/epoll_pwait.cpp libc/src/sys/epoll/linux/epoll_pwait2.cpp libc/src/sys/epoll/linux/epoll_wait.cpp libc/test/src/sys/epoll/linux/epoll_pwait2_test.cpp libc/test/src/sys/epoll/linux/epoll_pwait_test.cpp libc/test/src/sys/epoll/linux/epoll_wait_test.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libc/src/sys/epoll/linux/epoll_pwait.cpp b/libc/src/sys/epoll/linux/epoll_pwait.cpp
index 4c4c6425bc..f8f5416a70 100644
--- a/libc/src/sys/epoll/linux/epoll_pwait.cpp
+++ b/libc/src/sys/epoll/linux/epoll_pwait.cpp
@@ -17,8 +17,8 @@
 // #include "include/llvm-libc-types/sigset_t.h"
 // #include "include/llvm-libc-types/struct_epoll_event.h"
 
-#include <sys/epoll.h>
 #include <signal.h> // for NSIG
+#include <sys/epoll.h>
 
 namespace LIBC_NAMESPACE {
 
diff --git a/libc/src/sys/epoll/linux/epoll_pwait2.cpp b/libc/src/sys/epoll/linux/epoll_pwait2.cpp
index 4fea4a6bc8..29d214f51c 100644
--- a/libc/src/sys/epoll/linux/epoll_pwait2.cpp
+++ b/libc/src/sys/epoll/linux/epoll_pwait2.cpp
@@ -18,8 +18,8 @@
 // #include "include/llvm-libc-types/struct_epoll_event.h"
 // #include "include/llvm-libc-types/struct_timespec.h"
 
-#include <sys/epoll.h>
 #include <signal.h> // for NSIG
+#include <sys/epoll.h>
 
 namespace LIBC_NAMESPACE {
 
diff --git a/libc/src/sys/epoll/linux/epoll_wait.cpp b/libc/src/sys/epoll/linux/epoll_wait.cpp
index 514306f0a0..53536d7d88 100644
--- a/libc/src/sys/epoll/linux/epoll_wait.cpp
+++ b/libc/src/sys/epoll/linux/epoll_wait.cpp
@@ -17,8 +17,8 @@
 // #include "include/llvm-libc-types/sigset_t.h"
 // #include "include/llvm-libc-types/struct_epoll_event.h"
 
-#include <sys/epoll.h>
 #include <signal.h> // for NSIG
+#include <sys/epoll.h>
 
 namespace LIBC_NAMESPACE {
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/84587


More information about the llvm-commits mailing list