Searched refs:script_env (Results 1 – 3 of 3) sorted by relevance
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | main.c | 163 char **script_env; /* Env. variable values for scripts */ variable 319 script_env = NULL; 1970 if (script_env != NULL) { 1971 while (*script_env != NULL) { 1972 if (putenv(*script_env) == -1) 1973 warn("unable to set %s for %s: %m", *script_env, program); 1974 script_env++; 2098 (void) execve(prog, args, script_env); 2286 if (script_env != NULL) { 2287 for (i = 0; (p = script_env[i]) != NULL; ++i) { [all …]
|
H A D | pppd.h | 205 extern char **script_env; /* Environment variables for scripts */
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | rcm_script.c | 184 static char *script_env[MAX_ENV_PARAMS]; variable 479 script_env[j++] = rcmscript_strdup("PATH=/usr/sbin:/usr/bin"); in build_env() 485 script_env[j] = (char *)rcmscript_malloc(len); in build_env() 487 (void) snprintf(script_env[j++], len, "%s=%s", in build_env() 493 script_env[j] = (char *)rcmscript_malloc(len); in build_env() 502 (void) snprintf(script_env[j++], len, "RCM_ENV_DEBUG_LEVEL=%d", d); in build_env() 504 script_env[j] = NULL; in build_env() 1511 if (do_cmd(rsi, argv, script_env, &errmsg) == 0) { in do_script_info() 1632 if (do_cmd(rsi, argv, script_env, error) == 0) { in script_get_info() 1770 if (do_cmd(rsi, argv, script_env, &errmsg) == 0) { in script_register_interest() [all …]
|