Lines Matching refs:varstr

777 	char *varstr;        /* points to "name=" portion */  member
2099 free(cur_var->varstr); in hush_exit()
2240 if (strncmp(cur->varstr, name, len) == 0 && cur->varstr[len] == '=') in get_ptr_to_local_var()
2264 return (*vpp)->varstr + len + 1; in get_local_var_value()
2335 if (strncmp(cur->varstr, str, name_len) != 0) { in set_local_var()
2376 cur->varstr, cur->var_nest_level, str, local_lvl in set_local_var()
2384 cur->varstr, cur->var_nest_level, str, local_lvl in set_local_var()
2387 free_me = cur->varstr; /* then free it later */ in set_local_var()
2393 if (strcmp(cur->varstr + name_len, eq_sign + 1) == 0) { in set_local_var()
2405 strcpy(cur->varstr, str); in set_local_var()
2418 free_me = cur->varstr; in set_local_var()
2430 cur->varstr = str; in set_local_var()
2445 debug_printf_env("%s: putenv '%s'/%u\n", __func__, cur->varstr, cur->var_nest_level); in set_local_var()
2446 retval = putenv(cur->varstr); in set_local_var()
2454 handle_changed_special_names(cur->varstr, name_len - 1); in set_local_var()
2479 if (strncmp(cur->varstr, name, name_len) == 0 in unset_local_var_len()
2480 && cur->varstr[name_len] == '=' in unset_local_var_len()
2488 debug_printf_env("%s: unsetenv '%s'\n", __func__, cur->varstr); in unset_local_var_len()
2489 bb_unsetenv(cur->varstr); in unset_local_var_len()
2491 free(cur->varstr); in unset_local_var_len()
2524 debug_printf_env("%s: restoring exported '%s'/%u\n", __func__, var->varstr, var->var_nest_level); in add_vars()
2525 putenv(var->varstr); in add_vars()
2527 debug_printf_env("%s: restoring variable '%s'/%u\n", __func__, var->varstr, var->var_nest_level); in add_vars()
7431 if (strcmp(cur->varstr, hush_version_str) == 0) in re_execute_shell()
7435 *pp++ = cur->varstr; in re_execute_shell()
7438 *pp++ = cur->varstr; in re_execute_shell()
8191 debug_printf_env("unexporting nested '%s'/%u\n", cur->varstr, cur->var_nest_level); in remove_nested_vars()
8192 bb_unsetenv(cur->varstr); in remove_nested_vars()
8198 debug_printf_env("freeing nested '%s'/%u\n", cur->varstr, cur->var_nest_level); in remove_nested_vars()
8199 free(cur->varstr); in remove_nested_vars()
10238 shell_ver->varstr = xstrdup(hush_version_str); in hush_main()
10250 cur_var->varstr = *e; in hush_main()
10257 debug_printf_env("putenv '%s'\n", shell_ver->varstr); in hush_main()
10258 putenv(shell_ver->varstr); in hush_main()
11117 debug_printf_env("%s: putenv '%s'\n", __func__, var->varstr); in helper_export_local()
11118 putenv(var->varstr); in helper_export_local()
11246 printf("readonly %s\n", e->varstr); in builtin_readonly()
11325 puts(e->varstr); in builtin_set()