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