3 #if defined HAVE_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>
11 /* Linux 2.4 does not define this as a distinct errno value: */
13 #define ENOATTR ENODATA
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_lremovexattr(const char *path
, const char *name
);
20 ssize_t
sys_llistxattr(const char *path
, char *list
, size_t size
);
24 /* No xattrs available */