[libc-commits] [libc] [libc] adding linux SYS_fchmodat2 syscall. (PR #89819)

via libc-commits libc-commits at lists.llvm.org
Tue Apr 23 13:51:05 PDT 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 0c032fd5425d853dfc577e607b9c179d811cec19 eaa29adb71cd7f37c424ed5a443b5e489087e158 -- libc/config/linux/syscall_numbers.h.inc libc/src/sys/stat/linux/chmod.cpp
``````````

</details>

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

``````````diff
diff --git a/libc/src/sys/stat/linux/chmod.cpp b/libc/src/sys/stat/linux/chmod.cpp
index 532a33922a..e8fd3460a8 100644
--- a/libc/src/sys/stat/linux/chmod.cpp
+++ b/libc/src/sys/stat/linux/chmod.cpp
@@ -22,8 +22,8 @@ LLVM_LIBC_FUNCTION(int, chmod, (const char *path, mode_t mode)) {
 #ifdef SYS_chmod
   int ret = LIBC_NAMESPACE::syscall_impl<int>(SYS_chmod, path, mode);
 #elif defined(SYS_fchmodat2)
-  int ret =
-      LIBC_NAMESPACE::syscall_impl<int>(SYS_fchmodat2, AT_FDCWD, path, mode, 0, AT_SYMLINK_NOFOLLOW);
+  int ret = LIBC_NAMESPACE::syscall_impl<int>(SYS_fchmodat2, AT_FDCWD, path,
+                                              mode, 0, AT_SYMLINK_NOFOLLOW);
 #elif defined(SYS_fchmodat)
   int ret =
       LIBC_NAMESPACE::syscall_impl<int>(SYS_fchmodat, AT_FDCWD, path, mode, 0);

``````````

</details>


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


More information about the libc-commits mailing list