Deleted Added
full compact
globals.c (161059) globals.c (161060)
1/*
1/*
2 * The new sysinstall program.
2 * $FreeBSD: head/usr.sbin/sade/globals.c 161060 2006-08-07 23:35:49Z netchild $
3 *
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
7 * $FreeBSD: head/usr.sbin/sade/globals.c 133241 2004-08-07 01:19:54Z marcel $
8 *
9 * Copyright (c) 1995
10 * Jordan Hubbard. All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright
16 * notice, this list of conditions and the following disclaimer,

--- 12 unchanged lines hidden (view full) ---

29 * OR SERVICES; LOSS OF USE, DATA, LIFE OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 */
36
4 * Copyright (c) 1995
5 * Jordan Hubbard. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer,

--- 12 unchanged lines hidden (view full) ---

24 * OR SERVICES; LOSS OF USE, DATA, LIFE OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 *
30 */
31
37#include "sysinstall.h"
32#include "sade.h"
38
39/*
40 * Various global variables and an initialization hook to set them to
41 * whatever values we feel are appropriate.
42 */
43
44int DebugFD; /* Where diagnostic output goes */
45Boolean Fake; /* Only pretend to be useful */
33
34/*
35 * Various global variables and an initialization hook to set them to
36 * whatever values we feel are appropriate.
37 */
38
39int DebugFD; /* Where diagnostic output goes */
40Boolean Fake; /* Only pretend to be useful */
46Boolean RunningAsInit; /* Are we running as init? */
47Boolean DialogActive; /* Is libdialog initialized? */
48Boolean ColorDisplay; /* Are we on a color display? */
49Boolean OnVTY; /* Are we on a VTY? */
50Boolean Restarting; /* Are we restarting sysinstall? */
51Variable *VarHead; /* The head of the variable chain */
41Boolean DialogActive; /* Is libdialog initialized? */
42Boolean ColorDisplay; /* Are we on a color display? */
43Boolean OnVTY; /* Are we on a VTY? */
44Boolean Restarting; /* Are we restarting sysinstall? */
45Variable *VarHead; /* The head of the variable chain */
52Device *mediaDevice; /* Where we're installing from */
53int BootMgr; /* Which boot manager we're using */
54int StatusLine; /* Where to stick our status messages */
55jmp_buf BailOut; /* Beam me up, scotty! The natives are pissed! */
56
57Chunk *HomeChunk;
58Chunk *RootChunk;
59Chunk *SwapChunk;
60Chunk *TmpChunk;

--- 12 unchanged lines hidden (view full) ---

73{
74 DebugFD = -1;
75 ColorDisplay = FALSE;
76 Fake = FALSE;
77 Restarting = FALSE;
78 OnVTY = FALSE;
79 DialogActive = FALSE;
80 VarHead = NULL;
46int BootMgr; /* Which boot manager we're using */
47int StatusLine; /* Where to stick our status messages */
48jmp_buf BailOut; /* Beam me up, scotty! The natives are pissed! */
49
50Chunk *HomeChunk;
51Chunk *RootChunk;
52Chunk *SwapChunk;
53Chunk *TmpChunk;

--- 12 unchanged lines hidden (view full) ---

66{
67 DebugFD = -1;
68 ColorDisplay = FALSE;
69 Fake = FALSE;
70 Restarting = FALSE;
71 OnVTY = FALSE;
72 DialogActive = FALSE;
73 VarHead = NULL;
81 mediaDevice = NULL;
82 RunningAsInit = FALSE;
83
84 HomeChunk = NULL;
85 RootChunk = NULL;
86 SwapChunk = NULL;
87 TmpChunk = NULL;
88 UsrChunk = NULL;
89 VarChunk = NULL;
90#ifdef __ia64__
91 EfiChunk = NULL;
92#endif
93}
74
75 HomeChunk = NULL;
76 RootChunk = NULL;
77 SwapChunk = NULL;
78 TmpChunk = NULL;
79 UsrChunk = NULL;
80 VarChunk = NULL;
81#ifdef __ia64__
82 EfiChunk = NULL;
83#endif
84}