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.
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.
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]
22 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
30 * This declares all global variables
36 #include <mksh/globals.h>
49 char char_semantics
[CHAR_SEMANTICS_ENTRIES
];
50 wchar_t char_semantics_char
[] = {
79 Macro_list cond_macro_list
;
80 Boolean conditional_macro_used
;
81 Boolean do_not_exec_rule
; /* `-n' */
82 Boolean dollarget_seen
;
83 Boolean dollarless_flag
;
84 Name dollarless_value
;
87 wchar_t *file_being_read
;
88 /* Variable gnu_style=true if env. var. SUN_MAKE_COMPAT_MODE=GNU (RFE 4866328) */
89 Boolean gnu_style
= false;
94 char *make_state_lockfile
;
95 Boolean make_word_mentioned
;
96 Makefile_type makefile_type
= reading_nothing
;
97 char mbs_buffer
[(MAXPATHLEN
* MB_LEN_MAX
)];
102 Boolean query_mentioned
;
103 Boolean reading_environment
;
105 Boolean svr4
= false;
110 Boolean vpath_defined
;
112 wchar_t wcs_buffer
[MAXPATHLEN
];
113 Boolean working_on_targets
;
114 Boolean out_err_same
;
115 pid_t childPid
= -1; // This variable is used for killing child's process
116 // Such as qrsh, running command, etc.
119 * timestamps defined in defs.h
121 const timestruc_t file_no_time
= { -1, 0 };
122 const timestruc_t file_doesnt_exist
= { 0, 0 };
123 const timestruc_t file_is_dir
= { 1, 0 };
124 const timestruc_t file_min_time
= { 2, 0 };
125 const timestruc_t file_max_time
= { INT_MAX
, 0 };