[libc-commits] [libc] [libc] Implement getresuid and getresgid in unistd (PR #235274)
via libc-commits
libc-commits at lists.llvm.org
Sat Oct 24 04:29:22 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/getresgid.h libc/src/__support/OSUtil/linux/syscall_wrappers/getresuid.h libc/src/unistd/getresgid.h libc/src/unistd/getresuid.h libc/src/unistd/linux/getresgid.cpp libc/src/unistd/linux/getresuid.cpp libc/test/src/unistd/getresgid_test.cpp libc/test/src/unistd/getresuid_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/unistd/linux/getresgid.cpp b/libc/src/unistd/linux/getresgid.cpp
index c7ad50f7f..a01191c3c 100644
--- a/libc/src/unistd/linux/getresgid.cpp
+++ b/libc/src/unistd/linux/getresgid.cpp
@@ -21,7 +21,7 @@
namespace LIBC_NAMESPACE_DECL {
-LLVM_LIBC_FUNCTION(int, getresgid, (gid_t *rgid, gid_t *egid, gid_t *sgid)) {
+LLVM_LIBC_FUNCTION(int, getresgid, (gid_t * rgid, gid_t *egid, gid_t *sgid)) {
auto ret = linux_syscalls::getresgid(rgid, egid, sgid);
if (!ret) {
libc_errno = ret.error();
diff --git a/libc/src/unistd/linux/getresuid.cpp b/libc/src/unistd/linux/getresuid.cpp
index df15e3c9d..bfbf0f063 100644
--- a/libc/src/unistd/linux/getresuid.cpp
+++ b/libc/src/unistd/linux/getresuid.cpp
@@ -21,7 +21,7 @@
namespace LIBC_NAMESPACE_DECL {
-LLVM_LIBC_FUNCTION(int, getresuid, (uid_t *ruid, uid_t *euid, uid_t *suid)) {
+LLVM_LIBC_FUNCTION(int, getresuid, (uid_t * ruid, uid_t *euid, uid_t *suid)) {
auto ret = linux_syscalls::getresuid(ruid, euid, suid);
if (!ret) {
libc_errno = ret.error();
``````````
</details>
https://github.com/llvm/llvm-project/pull/235274
More information about the libc-commits
mailing list