1attropen(3C) Standard C Library Functions attropen(3C)
2
3
4
6 attropen - open a file
7
9 #include <sys/types.h>
10 #include <sys/stat.h>
11 #include <fcntl.h>
12
13 int attropen(const char *path, const char *attrpath, int oflag,
14 /* mode_t mode */...);
15
16
18 The attropen() function is similar to the open(2) function except that
19 it takes a second path argument, attrpath, that identifies an extended
20 attribute file associated with the first path argument. This function
21 returns a file descriptor for the extended attribute rather than the
22 file named by the initial argument.
23
24
25 The O_XATTR flag is set by default for attropen() and the attrpath
26 argument is always interpreted as a reference to an extended attribute.
27 Extended attributes must be referenced with a relative path; providing
28 an absolute path results in a normal file reference.
29
31 Refer to open(2).
32
34 Refer to open(2).
35
37 See attributes(5) for descriptions of the following attributes:
38
39
40
41
42 ┌─────────────────────────────┬─────────────────────────────┐
43 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
44 ├─────────────────────────────┼─────────────────────────────┤
45 │Interface Stability │Evolving │
46 ├─────────────────────────────┼─────────────────────────────┤
47 │MT-Level │Safe │
48 └─────────────────────────────┴─────────────────────────────┘
49
51 open(2), attributes(5), fsattr(5)
52
53
54
55SunOS 5.11 1 Aug 2001 attropen(3C)