diff options
Diffstat (limited to 'system/include/libc/sys/xattr.h')
-rw-r--r-- | system/include/libc/sys/xattr.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/system/include/libc/sys/xattr.h b/system/include/libc/sys/xattr.h new file mode 100644 index 00000000..f926493c --- /dev/null +++ b/system/include/libc/sys/xattr.h @@ -0,0 +1,30 @@ +#ifndef _SYS_XATTR_H +#define _SYS_XATTR_H +#ifdef __cplusplus +extern "C" { +#endif + +#define __NEED_ssize_t +#define __NEED_size_t +#include <bits/alltypes.h> + +#define XATTR_CREATE 1 +#define XATTR_REPLACE 2 + +ssize_t getxattr(const char *, const char *, void *, size_t); +ssize_t lgetxattr(const char *, const char *, void *, size_t); +ssize_t fgetxattr(int filedes, const char *, void *, size_t); +ssize_t listxattr(const char *, char *, size_t); +ssize_t llistxattr(const char *, char *, size_t); +ssize_t flistxattr(int filedes, char *, size_t); +int setxattr(const char *, const char *, const void *, size_t, int); +int lsetxattr(const char *, const char *, const void *, size_t, int); +int fsetxattr(int, const char *, const void *, size_t, int); +int removexattr(const char *, const char *); +int lremovexattr(const char *, const char *); +int fremovexattr(int, const char *); + +#ifdef __cplusplus +} +#endif +#endif |