Lines Matching refs:env
648 char** env; in make_program_env() local
661 for (env = env_block; *env; env++) { in make_program_env()
663 if (strchr(*env, '=')) { in make_program_env()
664 len = uv_wtf8_length_as_utf16(*env); in make_program_env()
683 for (env = env_block; *env; env++) { in make_program_env()
685 if (strchr(*env, '=')) { in make_program_env()
686 len = uv_wtf8_length_as_utf16(*env); in make_program_env()
689 uv_wtf8_to_utf16(*env, ptr, len); in make_program_env()
785 static WCHAR* find_path(WCHAR *env) { in find_path() argument
786 for (; env != NULL && *env != 0; env += wcslen(env) + 1) { in find_path()
787 if ((env[0] == L'P' || env[0] == L'p') && in find_path()
788 (env[1] == L'A' || env[1] == L'a') && in find_path()
789 (env[2] == L'T' || env[2] == L't') && in find_path()
790 (env[3] == L'H' || env[3] == L'h') && in find_path()
791 (env[4] == L'=')) { in find_path()
792 return &env[5]; in find_path()
898 *env = NULL, *cwd = NULL; in uv_spawn() local
938 if (options->env) { in uv_spawn()
939 err = make_program_env(options->env, &env); in uv_spawn()
974 path = find_path(env); in uv_spawn()
1063 env, in uv_spawn()
1145 uv__free(env); in uv_spawn()