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