1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 #ifndef LIBXATTR_H
30 #define LIBXATTR_H
31
32 #include <sys/types.h>
33 #include <stdlib.h>
34
35 #ifdef _MSC_VER
36 #include <BaseTsd.h>
37 typedef SSIZE_T ssize_t;
38 #endif
39
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43
44 char ** xattr_list(
const char *path,
ssize_t *nelm);
45
46 char * xattr_get(
const char *path,
const char *attr,
ssize_t *len);
47
48 int xattr_set(
const char *path,
const char *name,
const void *value,
size_t len);
49
50 int xattr_remove(
const char *path,
const char *name);
51
52 void xattr_free_list(
char **attrnames,
ssize_t nelm);
53
54 #ifdef __cplusplus
55 }
56 #endif
57
58 #endif
59
60