| 1 |
#ifdef SUPPORT_XATTRS |
| 2 |
|
| 3 |
#if defined HAVE_SYS_XATTR_H |
| 4 |
#include <sys/xattr.h> |
| 5 |
#elif defined HAVE_ATTR_XATTR_H |
| 6 |
#include <attr/xattr.h> |
| 7 |
#elif defined HAVE_SYS_EXTATTR_H |
| 8 |
#include <sys/extattr.h> |
| 9 |
#endif |
| 10 |
|
| 11 |
|
| 12 |
#ifndef ENOATTR |
| 13 |
#define ENOATTR ENODATA |
| 14 |
#endif |
| 15 |
|
| 16 |
ssize_t sys_lgetxattr(const char *path, const char *name, void *value, size_t size); |
| 17 |
ssize_t sys_fgetxattr(int filedes, const char *name, void *value, size_t size); |
| 18 |
int sys_lsetxattr(const char *path, const char *name, const void *value, size_t size); |
| 19 |
int sys_fsetxattr(int filedes, const char *name, const void *value, size_t size); |
| 20 |
int sys_lremovexattr(const char *path, const char *name); |
| 21 |
int sys_fremovexattr(int filedes, const char *name); |
| 22 |
ssize_t sys_llistxattr(const char *path, char *list, size_t size); |
| 23 |
ssize_t sys_flistxattr(int filedes, char *list, size_t size); |
| 24 |
|
| 25 |
#else |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
#endif |