[libc-commits] [libc] [libc] implement prctl (PR #74386)

via libc-commits libc-commits at lists.llvm.org
Tue Dec 5 11:43:54 PST 2023


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 3d718d0ebac232f304a0a074610de2d9652ab21f fa5b93a45121cfa571e9f8acc45efb0e66a66567 -- libc/src/sys/prctl/linux/prctl.cpp libc/src/sys/prctl/prctl.h libc/test/src/sys/prctl/linux/prctl_test.cpp
``````````

</details>

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

``````````diff
diff --git a/libc/test/src/sys/prctl/linux/prctl_test.cpp b/libc/test/src/sys/prctl/linux/prctl_test.cpp
index 3461909846..643c9513b3 100644
--- a/libc/test/src/sys/prctl/linux/prctl_test.cpp
+++ b/libc/test/src/sys/prctl/linux/prctl_test.cpp
@@ -32,12 +32,12 @@ TEST(LlvmLibcSysPrctlTest, GetSetName) {
 }
 
 TEST(LlvmLibcSysPrctlTest, GetTHPDisable) {
-  // Manually check errno since the return value logic here is not 
+  // Manually check errno since the return value logic here is not
   // covered in ErrnoSetterMatcher.
   libc_errno = 0;
   int ret = LIBC_NAMESPACE::prctl(PR_GET_THP_DISABLE, 0, 0, 0, 0);
   ASSERT_EQ(libc_errno, 0);
-  // PR_GET_THP_DISABLE return (as the function result) the current 
+  // PR_GET_THP_DISABLE return (as the function result) the current
   // setting of the "THP disable" flag for the calling thread, which
   // is either 1, if the flag is set; or 0, if it is not.
   ASSERT_TRUE(ret == 0 || ret == 1);

``````````

</details>


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


More information about the libc-commits mailing list