Searched refs:new_environ (Results 1 – 2 of 2) sorted by relevance
135 static char** frozen_environ, **new_environ; variable189 new_environ = (char **) malloc((i + 1) * sizeof(char *)); in save_ps_args()191 if (!new_environ || !frozen_environ) in save_ps_args()195 new_environ[i] = strdup(environ[i]); in save_ps_args()196 if (!new_environ[i]) in save_ps_args()199 new_environ[i] = NULL; in save_ps_args()200 environ = new_environ; in save_ps_args()201 memcpy((char *)frozen_environ, (char *)new_environ, sizeof(char *) * (i + 1)); in save_ps_args()445 free(new_environ); in cleanup_ps_args()
252 char **new_environ; in fpm_env_init_main() local259 if ((new_environ = malloc((1U + env_nb) * sizeof (char *))) == NULL) { in fpm_env_init_main()262 new_environ[env_nb] = NULL; in fpm_env_init_main()265 new_environ[env_nb] = strdup(environ[env_nb]); in fpm_env_init_main()267 environ = new_environ; in fpm_env_init_main()
Completed in 10 milliseconds