Lines Matching defs:env
670 char** env;
682 for (env = env_block; *env; env++) {
684 if (strchr(*env, '=')) {
685 len = uv_wtf8_length_as_utf16(*env);
702 for (env = env_block; *env; env++) {
704 if (strchr(*env, '=')) {
705 len = uv_wtf8_length_as_utf16(*env);
708 uv_wtf8_to_utf16(*env, ptr, len);
802 * If found, a pointer into `env` is returned. If not found, NULL is returned.
804 static WCHAR* find_path(WCHAR *env) {
805 for (; env != NULL && *env != 0; env += wcslen(env) + 1) {
806 if ((env[0] == L'P' || env[0] == L'p') &&
807 (env[1] == L'A' || env[1] == L'a') &&
808 (env[2] == L'T' || env[2] == L't') &&
809 (env[3] == L'H' || env[3] == L'h') &&
810 (env[4] == L'=')) {
811 return &env[5];
917 *env = NULL, *cwd = NULL;
957 if (options->env) {
958 err = make_program_env(options->env, &env);
993 path = find_path(env);
1082 env,
1164 uv__free(env);