2012-07-23 20:39:44 +00:00
|
|
|
#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);
|
2016-10-20 21:04:37 +00:00
|
|
|
ssize_t fgetxattr(int, const char *, void *, size_t);
|
2012-07-23 20:39:44 +00:00
|
|
|
ssize_t listxattr(const char *, char *, size_t);
|
|
|
|
ssize_t llistxattr(const char *, char *, size_t);
|
2016-10-20 21:04:37 +00:00
|
|
|
ssize_t flistxattr(int, char *, size_t);
|
2012-07-23 20:39:44 +00:00
|
|
|
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);
|
2012-08-15 12:31:44 +00:00
|
|
|
int removexattr(const char *, const char *);
|
|
|
|
int lremovexattr(const char *, const char *);
|
|
|
|
int fremovexattr(int, const char *);
|
2012-07-23 20:39:44 +00:00
|
|
|
|
2018-01-06 22:32:52 +00:00
|
|
|
#define __UAPI_DEF_XATTR 0
|
|
|
|
|
2012-07-23 20:39:44 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|