xref: /onnv-gate/usr/src/cmd/tsol/updatehome/setupfiles.h (revision 4746:0bc0c48f4304)
1*4746Srica /*
2*4746Srica  * CDDL HEADER START
3*4746Srica  *
4*4746Srica  * The contents of this file are subject to the terms of the
5*4746Srica  * Common Development and Distribution License (the "License").
6*4746Srica  * You may not use this file except in compliance with the License.
7*4746Srica  *
8*4746Srica  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*4746Srica  * or http://www.opensolaris.org/os/licensing.
10*4746Srica  * See the License for the specific language governing permissions
11*4746Srica  * and limitations under the License.
12*4746Srica  *
13*4746Srica  * When distributing Covered Code, include this CDDL HEADER in each
14*4746Srica  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*4746Srica  * If applicable, add the following below this CDDL HEADER, with the
16*4746Srica  * fields enclosed by brackets "[]" replaced with your own identifying
17*4746Srica  * information: Portions Copyright [yyyy] [name of copyright owner]
18*4746Srica  *
19*4746Srica  * CDDL HEADER END
20*4746Srica  */
21*4746Srica 
22*4746Srica /*
23*4746Srica  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24*4746Srica  * Use is subject to license terms.
25*4746Srica  */
26*4746Srica 
27*4746Srica #ifndef _SETUPFILES_H
28*4746Srica #define	_SETUPFILES_H
29*4746Srica 
30*4746Srica #pragma ident	"%Z%%M%	%I%	%E% SMI"
31*4746Srica 
32*4746Srica #ifdef	__cplusplus
33*4746Srica extern "C" {
34*4746Srica #endif
35*4746Srica 
36*4746Srica #include <pwd.h>
37*4746Srica #include <tsol/label.h>
38*4746Srica 
39*4746Srica #define	COPY "/.copy_files"
40*4746Srica #define	LINK "/.link_files"
41*4746Srica #define	CP "/usr/bin/cp"
42*4746Srica 
43*4746Srica #define	DBUG	0x001		/* print debug */
44*4746Srica #define	DIAG	0x002		/* print diagnostics */
45*4746Srica #define	IGNE	0x004		/* ignore copy/link errors */
46*4746Srica #define	REPC	0x008		/* replace existing copies */
47*4746Srica #define	REPL	0x010		/* replace existing links */
48*4746Srica 
49*4746Srica extern int __setupfiles(const struct passwd *pwd, const bslabel_t *, int flags);
50*4746Srica 
51*4746Srica #ifdef	__cplusplus
52*4746Srica }
53*4746Srica #endif
54*4746Srica 
55*4746Srica #endif	/* !_SETUPFILES_H */
56