globals.c (9202) | globals.c (12661) |
---|---|
1/* 2 * The new sysinstall program. 3 * 4 * This is probably the last program in the `sysinstall' line - the next 5 * generation being essentially a complete rewrite. 6 * | 1/* 2 * The new sysinstall program. 3 * 4 * This is probably the last program in the `sysinstall' line - the next 5 * generation being essentially a complete rewrite. 6 * |
7 * $Id: globals.c,v 1.9.2.2 1995/06/05 03:15:38 jkh Exp $ | 7 * $Id: globals.c,v 1.10.2.1 1995/10/21 14:06:41 jkh Exp $ |
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 --- 34 unchanged lines hidden (view full) --- 50 51int DebugFD; /* Where diagnostic output goes */ 52Boolean RunningAsInit; /* Are we running as init? */ 53Boolean DialogActive; 54Boolean ColorDisplay; 55Boolean OnVTY; 56Variable *VarHead; /* The head of the variable chain */ 57Device *mediaDevice; /* Where we're installing from */ | 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 --- 34 unchanged lines hidden (view full) --- 50 51int DebugFD; /* Where diagnostic output goes */ 52Boolean RunningAsInit; /* Are we running as init? */ 53Boolean DialogActive; 54Boolean ColorDisplay; 55Boolean OnVTY; 56Variable *VarHead; /* The head of the variable chain */ 57Device *mediaDevice; /* Where we're installing from */ |
58unsigned int OptFlags; /* Option flags */ | |
59int BootMgr; | 58int BootMgr; |
60char *InstallPrefix; /* Always install under here */ | |
61 62/* 63 * Yes, I know some of these are already automatically initialized as 64 * globals. I simply find it clearer to set everything explicitly. 65 */ 66void 67globalsInit(void) 68{ 69 DebugFD = -1; 70 ColorDisplay = FALSE; 71 OnVTY = FALSE; 72 DialogActive = FALSE; 73 VarHead = NULL; 74 mediaDevice = NULL; 75 RunningAsInit = FALSE; | 59 60/* 61 * Yes, I know some of these are already automatically initialized as 62 * globals. I simply find it clearer to set everything explicitly. 63 */ 64void 65globalsInit(void) 66{ 67 DebugFD = -1; 68 ColorDisplay = FALSE; 69 OnVTY = FALSE; 70 DialogActive = FALSE; 71 VarHead = NULL; 72 mediaDevice = NULL; 73 RunningAsInit = FALSE; |
76 OptFlags = 0; 77 InstallPrefix = NULL; | |
78} | 74} |