xref: /onnv-gate/usr/src/head/attr.h (revision 5331:3047ad28a67b)
1*5331Samw /*
2*5331Samw  * CDDL HEADER START
3*5331Samw  *
4*5331Samw  * The contents of this file are subject to the terms of the
5*5331Samw  * Common Development and Distribution License (the "License").
6*5331Samw  * You may not use this file except in compliance with the License.
7*5331Samw  *
8*5331Samw  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*5331Samw  * or http://www.opensolaris.org/os/licensing.
10*5331Samw  * See the License for the specific language governing permissions
11*5331Samw  * and limitations under the License.
12*5331Samw  *
13*5331Samw  * When distributing Covered Code, include this CDDL HEADER in each
14*5331Samw  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*5331Samw  * If applicable, add the following below this CDDL HEADER, with the
16*5331Samw  * fields enclosed by brackets "[]" replaced with your own identifying
17*5331Samw  * information: Portions Copyright [yyyy] [name of copyright owner]
18*5331Samw  *
19*5331Samw  * CDDL HEADER END
20*5331Samw  */
21*5331Samw /*
22*5331Samw  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*5331Samw  * Use is subject to license terms.
24*5331Samw  */
25*5331Samw 
26*5331Samw #ifndef	_ATTR_H
27*5331Samw #define	_ATTR_H
28*5331Samw 
29*5331Samw #pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.6.1.7 */
30*5331Samw 
31*5331Samw #include <sys/types.h>
32*5331Samw #include <sys/nvpair.h>
33*5331Samw #include <sys/attr.h>
34*5331Samw 
35*5331Samw #ifdef	__cplusplus
36*5331Samw extern "C" {
37*5331Samw #endif
38*5331Samw 
39*5331Samw #if defined(__STDC__)
40*5331Samw 
41*5331Samw extern int getattrat(int, xattr_view_t, const char *, nvlist_t **);
42*5331Samw extern int fgetattr(int, xattr_view_t, nvlist_t **);
43*5331Samw extern int setattrat(int, xattr_view_t, const char *, nvlist_t *);
44*5331Samw extern int fsetattr(int, xattr_view_t, nvlist_t *);
45*5331Samw 
46*5331Samw #else	/* defined(__STDC__) */
47*5331Samw 
48*5331Samw extern int getattrat();
49*5331Samw extern int fgetattr();
50*5331Samw extern int setattrat();
51*5331Samw extern int fsetattr();
52*5331Samw 
53*5331Samw #endif	/* defined(__STDC__) */
54*5331Samw 
55*5331Samw #ifdef	__cplusplus
56*5331Samw }
57*5331Samw #endif
58*5331Samw 
59*5331Samw #endif	/* _ATTR_H */
60