File: extattr_solaris.h

package info (click to toggle)
libfile-extattr-perl 1.09-4
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 340 kB
  • ctags: 313
  • sloc: ansic: 1,862; perl: 1,221; makefile: 42
file content (70 lines) | stat: -rw-r--r-- 1,620 bytes parent folder | download | duplicates (2)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef EXTATTR_SOLARIS_H
#define EXTATTR_SOLARIS_H

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

/*
 * XXX: FIXME: Need to distinguish file non-existence and attribute
 * non-existence. Need to choose an unused error code somehow.
 */
#ifndef ENOATTR
#define ENOATTR ENOENT
#endif

struct hv;

int solaris_setxattr (const char *path,
		      const char *attrname,
		      const char *attrvalue,
		      const size_t slen,
		      struct hv *flags);

int solaris_fsetxattr (const int fd,
		       const char *attrname,
		       const char *attrvalue,
		       const size_t slen,
		       struct hv *flags);

int solaris_getxattr (const char *path,
		      const char *attrname,
		      void *attrvalue,
		      const size_t slen,
		      struct hv *flags);

int solaris_fgetxattr (const int fd,
		       const char *attrname,
		       void *attrvalue,
		       const size_t slen,
		      struct hv *flags);

int solaris_removexattr (const char *path,
			 const char *attrname,
			 struct hv *flags);

int solaris_fremovexattr (const int fd,
			  const char *attrname,
			  struct hv *flags);

ssize_t solaris_listxattr (const char *path,
			   char *buf,
			   const size_t buflen,
			   struct hv *flags);

ssize_t solaris_flistxattr (const int fd,
			    char *buf,
			    const size_t buflen,
			    struct hv *flags);

ssize_t solaris_listxattrns (const char *path,
			     char *buf,
			     const size_t buflen,
			     struct hv *flags);

ssize_t solaris_flistxattrns (const int fd,
			      char *buf,
			      const size_t buflen,
			      struct hv *flags);

#endif /* EXTATTR_SOLARIS_H */