[libc-commits] [libc] [libc] Add support for SYS_fchmodat2 in fchmodat (PR #223997)
Pavel Labath via libc-commits
libc-commits at lists.llvm.org
Wed Sep 16 07:46:17 PDT 2026
================
@@ -24,8 +25,24 @@
namespace LIBC_NAMESPACE_DECL {
namespace linux_syscalls {
-LIBC_INLINE ErrorOr<int> fchmodat(int fd, const char *path, mode_t mode) {
+LIBC_INLINE ErrorOr<int> fchmodat(int fd, const char *path, mode_t mode,
+ int flags) {
+#ifdef SYS_fchmodat2
----------------
labath wrote:
to keep things consistent
```suggestion
#if defined(SYS_fchmodat2)
```
https://github.com/llvm/llvm-project/pull/223997
More information about the libc-commits
mailing list