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