xref: /illumos-gate/usr/src/cmd/svr4pkg/hdrs/dryrun.h (revision 5c51f124)
1*5c51f124SMoriah Waterland /*
2*5c51f124SMoriah Waterland  * CDDL HEADER START
3*5c51f124SMoriah Waterland  *
4*5c51f124SMoriah Waterland  * The contents of this file are subject to the terms of the
5*5c51f124SMoriah Waterland  * Common Development and Distribution License (the "License").
6*5c51f124SMoriah Waterland  * You may not use this file except in compliance with the License.
7*5c51f124SMoriah Waterland  *
8*5c51f124SMoriah Waterland  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*5c51f124SMoriah Waterland  * or http://www.opensolaris.org/os/licensing.
10*5c51f124SMoriah Waterland  * See the License for the specific language governing permissions
11*5c51f124SMoriah Waterland  * and limitations under the License.
12*5c51f124SMoriah Waterland  *
13*5c51f124SMoriah Waterland  * When distributing Covered Code, include this CDDL HEADER in each
14*5c51f124SMoriah Waterland  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*5c51f124SMoriah Waterland  * If applicable, add the following below this CDDL HEADER, with the
16*5c51f124SMoriah Waterland  * fields enclosed by brackets "[]" replaced with your own identifying
17*5c51f124SMoriah Waterland  * information: Portions Copyright [yyyy] [name of copyright owner]
18*5c51f124SMoriah Waterland  *
19*5c51f124SMoriah Waterland  * CDDL HEADER END
20*5c51f124SMoriah Waterland  */
21*5c51f124SMoriah Waterland 
22*5c51f124SMoriah Waterland /*
23*5c51f124SMoriah Waterland  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24*5c51f124SMoriah Waterland  * Use is subject to license terms.
25*5c51f124SMoriah Waterland  */
26*5c51f124SMoriah Waterland 
27*5c51f124SMoriah Waterland 
28*5c51f124SMoriah Waterland #ifndef __DRYRUN_H__
29*5c51f124SMoriah Waterland #define	__DRYRUN_H__
30*5c51f124SMoriah Waterland 
31*5c51f124SMoriah Waterland #include	"cfext.h"
32*5c51f124SMoriah Waterland 
33*5c51f124SMoriah Waterland /* The various types of status entry in the info file. */
34*5c51f124SMoriah Waterland #define	PARTIAL	1
35*5c51f124SMoriah Waterland #define	RUNLEVEL 2
36*5c51f124SMoriah Waterland #define	PKGFILES 3
37*5c51f124SMoriah Waterland #define	DEPEND 4
38*5c51f124SMoriah Waterland #define	SPACE 5
39*5c51f124SMoriah Waterland #define	CONFLICT 6
40*5c51f124SMoriah Waterland #define	SETUID 7
41*5c51f124SMoriah Waterland #define	PRIV 8
42*5c51f124SMoriah Waterland #define	PKGDIRS 9
43*5c51f124SMoriah Waterland #define	REQUESTEXITCODE 10
44*5c51f124SMoriah Waterland #define	CHECKEXITCODE 11
45*5c51f124SMoriah Waterland #define	EXITCODE 12
46*5c51f124SMoriah Waterland #define	DR_TYPE 13
47*5c51f124SMoriah Waterland 
48*5c51f124SMoriah Waterland #define	INSTALL_TYPE	1
49*5c51f124SMoriah Waterland #define	REMOVE_TYPE	0
50*5c51f124SMoriah Waterland 
51*5c51f124SMoriah Waterland #if defined(__STDC__)
52*5c51f124SMoriah Waterland #define	__P(protos) protos
53*5c51f124SMoriah Waterland #else	/* __STDC__ */
54*5c51f124SMoriah Waterland #define	__P(protos) ()
55*5c51f124SMoriah Waterland #endif	/* __STDC__ */
56*5c51f124SMoriah Waterland 
57*5c51f124SMoriah Waterland extern void	set_dryrun_mode __P((void));
58*5c51f124SMoriah Waterland extern int	in_dryrun_mode __P((void));
59*5c51f124SMoriah Waterland extern void	set_continue_mode __P((void));
60*5c51f124SMoriah Waterland extern int	in_continue_mode __P((void));
61*5c51f124SMoriah Waterland extern void	init_contfile __P((char *cn_dir));
62*5c51f124SMoriah Waterland extern void	init_dryrunfile __P((char *dr_dir));
63*5c51f124SMoriah Waterland extern void	set_dr_info __P((int type, int value));
64*5c51f124SMoriah Waterland extern int	cmd_ln_respfile __P((void));
65*5c51f124SMoriah Waterland extern int	is_a_respfile __P((void));
66*5c51f124SMoriah Waterland extern void	write_dryrun_file __P((struct cfextra **extlist));
67*5c51f124SMoriah Waterland extern boolean_t	read_continuation __P((int *error));
68*5c51f124SMoriah Waterland 
69*5c51f124SMoriah Waterland #endif	/* __DRYRUN_H__ */
70