[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
================
@@ -1,13 +1,74 @@
header: sys/xattr.h
standards:
- linux
-macros: []
+macros:
+ - macro_name: XATTR_CREATE
+ macro_header: sys-xattr-macros.h
+ - macro_name: XATTR_REPLACE
+ macro_header: sys-xattr-macros.h
types:
- type_name: size_t
- type_name: ssize_t
enums: []
objects: []
functions:
+ - name: getxattr
+ standards:
+ - linux
+ return_type: ssize_t
+ arguments:
+ - type: const char *
+ - type: const char *
+ - type: void *
+ - type: size_t
+ - name: lgetxattr
+ standards:
+ - linux
+ return_type: ssize_t
+ arguments:
+ - type: const char *
+ - type: const char *
+ - type: void *
+ - type: size_t
+ - name: fgetxattr
+ standards:
+ - linux
+ return_type: ssize_t
+ arguments:
+ - type: int
+ - type: const char *
+ - type: void *
+ - type: size_t
+ - name: setxattr
+ standards:
+ - linux
+ return_type: int
+ arguments:
+ - type: const char *
+ - type: const char *
+ - type: const void *
+ - type: size_t
+ - type: int
+ - name: lsetxattr
+ standards:
+ - linux
+ return_type: int
+ arguments:
+ - type: const char *
+ - type: const char *
+ - type: const void *
+ - type: size_t
+ - type: int
+ - name: fsetxattr
+ standards:
+ - linux
+ return_type: int
+ arguments:
+ - type: const char *
----------------
kaladron wrote:
First argument is int fd.
https://github.com/llvm/llvm-project/pull/224729
More information about the libc-commits
mailing list