Lines Matching refs:new_env
1187 char **new_env, *estr; in prep_env() local
1202 if ((new_env = malloc(sizeof (char *) * size)) == NULL) in prep_env()
1207 new_env[e++] = estr; in prep_env()
1212 new_env[e++] = estr; in prep_env()
1218 new_env[e++] = estr; in prep_env()
1222 new_env[e++] = estr; in prep_env()
1225 new_env[e++] = NULL; in prep_env()
1229 return (new_env); in prep_env()
1245 char **new_env; in prep_env_noninteractive() local
1284 if ((new_env = malloc(sizeof (char *) * size)) == NULL) in prep_env_noninteractive()
1291 if ((new_env[i] = strdup(env[i])) == NULL) in prep_env_noninteractive()
1299 new_env[e++] = estr; in prep_env_noninteractive()
1303 new_env[e++] = estr; in prep_env_noninteractive()
1313 new_env[e++] = estr; in prep_env_noninteractive()
1317 new_env[e++] = estr; in prep_env_noninteractive()
1323 new_env[e++] = estr; in prep_env_noninteractive()
1327 new_env[e++] = estr; in prep_env_noninteractive()
1330 new_env[e++] = NULL; /* add terminating NULL */ in prep_env_noninteractive()
1333 return (new_env); in prep_env_noninteractive()
1534 char **new_args, char **new_env) in noninteractive_login() argument
1652 new_env = prep_env_noninteractive(user_cmd, new_env); in noninteractive_login()
1654 if (new_env == NULL) { in noninteractive_login()
1674 (void) execve(new_args[0], new_args, new_env); in noninteractive_login()
1738 char **new_args, **new_env; in main() local
2075 if ((new_env = prep_env()) == NULL) { in main()
2099 new_args, new_env)); in main()
2260 (void) execve(new_args[0], new_args, new_env); in main()