Print this page
make: remove SCCS ident stuff
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/make/bin/make/common/globals.cc
+++ new/usr/src/cmd/make/bin/make/common/globals.cc
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21 /*
22 22 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
23 23 * Use is subject to license terms.
24 24 */
25 -/*
26 - * @(#)globals.cc 1.42 06/12/12
27 - */
28 -
29 -#pragma ident "@(#)globals.cc 1.42 06/12/12"
30 25
31 26 /*
32 27 * globals.cc
33 28 *
34 29 * This declares all global variables
35 30 */
36 31
37 32 /*
38 33 * Included files
39 34 */
40 35 #include <nl_types.h>
41 36 #include <mk/defs.h>
42 37 #include <sys/stat.h>
43 38
44 39 /*
45 40 * Defined macros
46 41 */
47 42
48 43 /*
49 44 * typedefs & structs
50 45 */
51 46
52 47 /*
53 48 * Global variables used by make only
54 49 */
55 50 FILE *dependency_report_file;
56 51
57 52 /*
58 53 * Global variables used by make
59 54 */
60 55 Boolean allrules_read=false;
61 56 Name posix_name;
62 57 Name svr4_name;
63 58 Boolean sdot_target; /* used to identify s.m(/M)akefile */
64 59 Boolean all_parallel; /* TEAMWARE_MAKE_CMN */
65 60 Boolean assign_done;
66 61 int foo;
67 62 Boolean build_failed_seen;
68 63 #ifdef DISTRIBUTED
69 64 Boolean building_serial;
70 65 #endif
71 66 Name built_last_make_run;
72 67 Name c_at;
73 68 #ifdef DISTRIBUTED
74 69 Boolean called_make = false;
75 70 #endif
76 71 Boolean cleanup;
77 72 Boolean close_report;
78 73 Boolean command_changed;
79 74 Boolean commands_done;
80 75 Chain conditional_targets;
81 76 Name conditionals;
82 77 Boolean continue_after_error; /* `-k' */
83 78 Property current_line;
84 79 Name current_make_version;
85 80 Name current_target;
86 81 short debug_level;
87 82 Cmd_line default_rule;
88 83 Name default_rule_name;
89 84 Name default_target_to_build;
90 85 Name dmake_group;
91 86 Name dmake_max_jobs;
92 87 Name dmake_mode;
93 88 DMake_mode dmake_mode_type;
94 89 Name dmake_output_mode;
95 90 DMake_output_mode output_mode = txt1_mode;
96 91 Name dmake_odir;
97 92 Name dmake_rcfile;
98 93 Name done;
99 94 Name dot;
100 95 Name dot_keep_state;
101 96 Name dot_keep_state_file;
102 97 Name empty_name;
103 98 #if defined(HP_UX) || defined(linux)
104 99 int exit_status;
105 100 #endif
106 101 Boolean fatal_in_progress;
107 102 int file_number;
108 103 #if 0
109 104 Boolean filter_stderr; /* `-X' */
110 105 #endif
111 106 Name force;
112 107 Name ignore_name;
113 108 Boolean ignore_errors; /* `-i' */
114 109 Boolean ignore_errors_all; /* `-i' */
115 110 Name init;
116 111 int job_msg_id;
117 112 Boolean keep_state;
118 113 Name make_state;
119 114 #ifdef TEAMWARE_MAKE_CMN
120 115 timestruc_t make_state_before;
121 116 #endif
122 117 Dependency makefiles_used;
123 118 Name makeflags;
124 119 // Boolean make_state_locked; // Moved to lib/mksh
125 120 Name make_version;
126 121 char mbs_buffer2[(MAXPATHLEN * MB_LEN_MAX)];
127 122 char *mbs_ptr;
128 123 char *mbs_ptr2;
129 124 int mtool_msgs_fd;
130 125 Boolean depinfo_already_read = false;
131 126 #ifdef NSE
132 127 Name derived_src;
133 128 Boolean nse; /* NSE on */
134 129 Name nse_backquote_seen;
135 130 char nse_depinfo_lockfile[MAXPATHLEN];
136 131 Boolean nse_depinfo_locked;
137 132 Boolean nse_did_recursion;
138 133 Name nse_shell_var_used;
139 134 Boolean nse_watch_vars = false;
140 135 wchar_t current_makefile[MAXPATHLEN];
141 136 #endif
142 137 Boolean no_action_was_taken = true; /* true if we've not **
143 138 ** run any command */
144 139
145 140 Boolean no_parallel = false; /* TEAMWARE_MAKE_CMN */
146 141 #ifdef SGE_SUPPORT
147 142 Boolean grid = false; /* TEAMWARE_MAKE_CMN */
148 143 #endif
149 144 Name no_parallel_name;
150 145 Name not_auto;
151 146 Boolean only_parallel; /* TEAMWARE_MAKE_CMN */
152 147 Boolean parallel; /* TEAMWARE_MAKE_CMN */
153 148 Name parallel_name;
154 149 Name localhost_name;
155 150 int parallel_process_cnt;
156 151 Percent percent_list;
157 152 Dyntarget dyntarget_list;
158 153 Name plus;
159 154 Name pmake_machinesfile;
160 155 Name precious;
161 156 Name primary_makefile;
162 157 Boolean quest; /* `-q' */
163 158 short read_trace_level;
164 159 Boolean reading_dependencies = false;
165 160 Name recursive_name;
166 161 int recursion_level;
167 162 short report_dependencies_level = 0; /* -P */
168 163 Boolean report_pwd;
169 164 Boolean rewrite_statefile;
170 165 Running running_list;
171 166 char *sccs_dir_path;
172 167 Name sccs_get_name;
173 168 Name sccs_get_posix_name;
174 169 Cmd_line sccs_get_rule;
175 170 Cmd_line sccs_get_org_rule;
176 171 Cmd_line sccs_get_posix_rule;
177 172 Name get_name;
178 173 Cmd_line get_rule;
179 174 Name get_posix_name;
180 175 Cmd_line get_posix_rule;
181 176 Boolean send_mtool_msgs; /* `-K' */
182 177 Boolean all_precious;
183 178 Boolean silent_all; /* `-s' */
184 179 Boolean report_cwd; /* `-w' */
185 180 Boolean silent; /* `-s' */
186 181 Name silent_name;
187 182 char *stderr_file = NULL;
188 183 char *stdout_file = NULL;
189 184 #ifdef SGE_SUPPORT
190 185 char script_file[MAXPATHLEN] = "";
191 186 #endif
192 187 Boolean stdout_stderr_same;
193 188 Dependency suffixes;
194 189 Name suffixes_name;
195 190 Name sunpro_dependencies;
196 191 Boolean target_variants;
197 192 char *tmpdir = NOCATGETS("/tmp");
198 193 char *temp_file_directory = NOCATGETS(".");
199 194 Name temp_file_name;
200 195 short temp_file_number;
201 196 time_t timing_start;
202 197 wchar_t *top_level_target;
203 198 Boolean touch; /* `-t' */
204 199 Boolean trace_reader; /* `-D' */
205 200 Boolean build_unconditional; /* `-u' */
206 201 pathpt vroot_path = VROOT_DEFAULT;
207 202 Name wait_name;
208 203 wchar_t wcs_buffer2[MAXPATHLEN];
209 204 wchar_t *wcs_ptr;
210 205 wchar_t *wcs_ptr2;
211 206 nl_catd catd;
212 207 long int hostid;
213 208
214 209 /*
215 210 * File table of contents
216 211 */
217 212
↓ open down ↓ |
178 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX