Lines Matching defs:new_env
1186 char **new_env, *estr;
1201 if ((new_env = malloc(sizeof (char *) * size)) == NULL)
1206 new_env[e++] = estr;
1211 new_env[e++] = estr;
1217 new_env[e++] = estr;
1221 new_env[e++] = estr;
1224 new_env[e++] = NULL;
1228 return (new_env);
1244 char **new_env;
1283 if ((new_env = malloc(sizeof (char *) * size)) == NULL)
1287 * Copy existing elements of env into new_env.
1290 if ((new_env[i] = strdup(env[i])) == NULL)
1298 new_env[e++] = estr;
1302 new_env[e++] = estr;
1312 new_env[e++] = estr;
1316 new_env[e++] = estr;
1322 new_env[e++] = estr;
1326 new_env[e++] = estr;
1329 new_env[e++] = NULL; /* add terminating NULL */
1332 return (new_env);
1533 char **new_args, char **new_env)
1651 new_env = prep_env_noninteractive(user_cmd, new_env);
1653 if (new_env == NULL) {
1673 (void) execve(new_args[0], new_args, new_env);
1737 char **new_args, **new_env;
2074 if ((new_env = prep_env()) == NULL) {
2098 new_args, new_env));
2259 (void) execve(new_args[0], new_args, new_env);