[libc-commits] [libc] Add named posix semaphore lifetime operations on linux (PR #192278)

via libc-commits libc-commits at lists.llvm.org
Mon May 4 12:47:40 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/src/__support/OSUtil/linux/syscall_wrappers/ftruncate.h libc/src/__support/OSUtil/linux/syscall_wrappers/link.h libc/src/__support/OSUtil/linux/syscall_wrappers/unlink.h libc/src/semaphore/linux/named_semaphore.cpp libc/test/src/semaphore/linux/semaphore_test.cpp libc/src/sys/mman/linux/shm_common.h libc/src/semaphore/linux/semaphore.h --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/semaphore/linux/named_semaphore.cpp b/libc/src/semaphore/linux/named_semaphore.cpp
index 66b10bace..1c162aec4 100644
--- a/libc/src/semaphore/linux/named_semaphore.cpp
+++ b/libc/src/semaphore/linux/named_semaphore.cpp
@@ -14,7 +14,6 @@
 #include "src/__support/CPP/limits.h"
 #include "src/__support/CPP/new.h"
 #include "src/__support/CPP/string_view.h"
-#include "src/__support/ctype_utils.h"
 #include "src/__support/OSUtil/linux/syscall_wrappers/close.h"
 #include "src/__support/OSUtil/linux/syscall_wrappers/ftruncate.h"
 #include "src/__support/OSUtil/linux/syscall_wrappers/getrandom.h"
@@ -23,6 +22,7 @@
 #include "src/__support/OSUtil/linux/syscall_wrappers/munmap.h"
 #include "src/__support/OSUtil/linux/syscall_wrappers/open.h"
 #include "src/__support/OSUtil/linux/syscall_wrappers/unlink.h"
+#include "src/__support/ctype_utils.h"
 #include "src/__support/error_or.h"
 #include "src/__support/macros/config.h"
 #include "src/string/memory_utils/inline_memcpy.h"

``````````

</details>


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


More information about the libc-commits mailing list