9103 opengroup acknowledgement should be properly formatted in man pages
[unleashed.git] / usr / src / man / man3c / attropen.3c
blob43dc5c3578ec08f0adcf4b1c17195aac9f32a492
1 '\" te
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"
7 .SH NAME
8 attropen \- open a file
9 .SH SYNOPSIS
10 .LP
11 .nf
12 #include <sys/types.h>
13 #include <sys/stat.h>
14 #include <fcntl.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 */...);
18 .fi
20 .SH DESCRIPTION
21 .sp
22 .LP
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.
28 .sp
29 .LP
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.
34 .SH RETURN VALUES
35 .sp
36 .LP
37 Refer to \fBopen\fR(2).
38 .SH ERRORS
39 .sp
40 .LP
41 Refer to \fBopen\fR(2).
42 .SH ATTRIBUTES
43 .sp
44 .LP
45 See \fBattributes\fR(5) for descriptions of the following attributes:
46 .sp
48 .sp
49 .TS
50 box;
51 c | c
52 l | l .
53 ATTRIBUTE TYPE  ATTRIBUTE VALUE
55 Interface Stability     Evolving
57 MT-Level        Safe
58 .TE
60 .SH SEE ALSO
61 .sp
62 .LP
63 \fBopen\fR(2), \fBattributes\fR(5), \fBfsattr\fR(5)