github.com/afumu/libc@v0.0.6/musl/include/sys/xattr.h (about)

     1  #ifndef	_SYS_XATTR_H
     2  #define	_SYS_XATTR_H
     3  #ifdef __cplusplus
     4  extern "C" {
     5  #endif
     6  
     7  #define __NEED_ssize_t
     8  #define __NEED_size_t
     9  #include <bits/alltypes.h>
    10  
    11  #define XATTR_CREATE 1
    12  #define XATTR_REPLACE 2
    13  
    14  ssize_t getxattr(const char *, const char *, void *, size_t);
    15  ssize_t lgetxattr(const char *, const char *, void *, size_t);
    16  ssize_t fgetxattr(int, const char *, void *, size_t);
    17  ssize_t listxattr(const char *, char *, size_t);
    18  ssize_t llistxattr(const char *, char *, size_t);
    19  ssize_t flistxattr(int, char *, size_t);
    20  int setxattr(const char *, const char *, const void *, size_t, int);
    21  int lsetxattr(const char *, const char *, const void *, size_t, int);
    22  int fsetxattr(int, const char *, const void *, size_t, int);
    23  int removexattr(const char *, const char *);
    24  int lremovexattr(const char *, const char *);
    25  int fremovexattr(int, const char *);
    26  
    27  #define __UAPI_DEF_XATTR        0
    28  
    29  #ifdef __cplusplus
    30  }
    31  #endif
    32  #endif