2 .\" Copyright (c) 2001, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH ATTROPEN 3C "Aug 1, 2001"
8 attropen \- open a file
12 #include <sys/types.h>
16 \fBint\fR \fBattropen\fR(\fBconst char *\fR\fIpath\fR, \fBconst char *\fR\fIattrpath\fR, \fBint\fR \fIoflag\fR,
17 \fB/* mode_t\fR \fImode\fR */...);
23 The \fBattropen()\fR function is similar to the \fBopen\fR(2) function except
24 that it takes a second path argument, \fIattrpath\fR, that identifies an
25 extended attribute file associated with the first \fIpath\fR argument. This
26 function returns a file descriptor for the extended attribute rather than the
27 file named by the initial argument.
30 The \fBO_XATTR\fR flag is set by default for \fBattropen()\fR and the
31 \fIattrpath\fR argument is always interpreted as a reference to an extended
32 attribute. Extended attributes must be referenced with a relative path;
33 providing an absolute path results in a normal file reference.
37 Refer to \fBopen\fR(2).
41 Refer to \fBopen\fR(2).
45 See \fBattributes\fR(5) for descriptions of the following attributes:
53 ATTRIBUTE TYPE ATTRIBUTE VALUE
55 Interface Stability Evolving
63 \fBopen\fR(2), \fBattributes\fR(5), \fBfsattr\fR(5)