-
Notifications
You must be signed in to change notification settings - Fork 0
/
libnoxattr.c
57 lines (48 loc) · 1.08 KB
/
libnoxattr.c
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include <errno.h>
#include <sys/types.h>
#include <sys/xattr.h>
ssize_t listxattr(const char *path, char *list, size_t size)
{
errno = ENOTSUP;
return -1;
}
ssize_t llistxattr(const char *path, char *list, size_t size)
{
errno = ENOTSUP;
return -1;
}
ssize_t flistxattr(int fd, char *list, size_t size)
{
errno = ENOTSUP;
return -1;
}
int setxattr(const char *path, const char *name, const void *value, size_t size, int flags)
{
errno = ENOTSUP;
return -1;
}
int lsetxattr(const char *path, const char *name, const void *value, size_t size, int flags)
{
errno = ENOTSUP;
return -1;
}
int fsetxattr(int fd, const char *name, const void *value, size_t size, int flags)
{
errno = ENOTSUP;
return -1;
}
ssize_t getxattr(const char *path, const char *name, void *value, size_t size)
{
errno = ENOTSUP;
return -1;
}
ssize_t lgetxattr(const char *path, const char *name, void *value, size_t size)
{
errno = ENOTSUP;
return -1;
}
ssize_t fgetxattr(int fd, const char *name, void *value, size_t size)
{
errno = ENOTSUP;
return -1;
}