1#ifndef EXTATTR_MACOSX_H
2#define EXTATTR_MACOSX_H
3
4#include <sys/types.h>
5#include <sys/xattr.h>
6
7struct hv;
8
9int macosx_setxattr (const char *path,
10		     const char *attrname,
11		     const char *attrvalue,
12		     const size_t slen,
13		     struct hv *flags);
14
15int macosx_fsetxattr (const int fd,
16		      const char *attrname,
17		      const char *attrvalue,
18		      const size_t slen,
19		      struct hv *flags);
20
21int macosx_getxattr (const char *path,
22		     const char *attrname,
23		     void *attrvalue,
24		     const size_t slen,
25		     struct hv *flags);
26
27int macosx_fgetxattr (const int fd,
28		      const char *attrname,
29		      void *attrvalue,
30		      const size_t slen,
31		      struct hv *flags);
32
33int macosx_removexattr (const char *path,
34			const char *attrname,
35			struct hv *flags);
36
37int macosx_fremovexattr (const int fd,
38			 const char *attrname,
39			 struct hv *flags);
40
41ssize_t macosx_listxattr (const char *path,
42			  char *buf,
43			  const size_t buflen,
44			  struct hv *flags);
45
46ssize_t macosx_flistxattr (const int fd,
47			   char *buf,
48			   const size_t buflen,
49			   struct hv *flags);
50
51ssize_t macosx_listxattrns (const char *path,
52                            char *buf,
53                            const size_t buflen,
54                            struct hv *flags);
55
56ssize_t macosx_flistxattrns (const int fd,
57                             char *buf,
58                             const size_t buflen,
59                             struct hv *flags);
60
61#endif /* EXTATTR_MACOSX_H */
62