[libc-commits] [libc] [libc] Add the get and set sys/xattr.h entrypoints. (PR #224729)
Jeff Bailey via libc-commits
libc-commits at lists.llvm.org
Fri Sep 18 13:48:16 PDT 2026
================
@@ -0,0 +1,20 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// Linux specific declarations of macros from sys/xattr.h.
+///
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_MACROS_LINUX_SYS_XATTR_MACROS_H
+#define LLVM_LIBC_MACROS_LINUX_SYS_XATTR_MACROS_H
+
+#define XATTR_CREATE 1
----------------
kaladron wrote:
These could be defined in the YAML file directly with macros:, name:, and macro_value:, and this header file shouldn't be needed.
https://github.com/llvm/llvm-project/pull/224729
More information about the libc-commits
mailing list