Lines Matching refs:cwd_len
169 size_t cwd_len) { in search_path_join_test() argument
176 cwd_len = 0; in search_path_join_test()
179 cwd_len = 2; in search_path_join_test()
186 if (cwd_len < 2 || _wcsnicmp(cwd, dir, 2) != 0) { in search_path_join_test()
187 cwd_len = 0; in search_path_join_test()
196 cwd_len = 0; in search_path_join_test()
201 (cwd_len + 1 + dir_len + 1 + name_len + 1 + ext_len + 1)); in search_path_join_test()
204 wcsncpy(result_pos, cwd, cwd_len); in search_path_join_test()
205 result_pos += cwd_len; in search_path_join_test()
208 if (cwd_len && wcsrchr(L"\\/:", result_pos[-1]) == NULL) { in search_path_join_test()
262 size_t cwd_len, in path_search_walk_ext() argument
271 cwd, cwd_len); in path_search_walk_ext()
281 cwd, cwd_len); in path_search_walk_ext()
290 cwd, cwd_len); in path_search_walk_ext()
354 size_t cwd_len = wcslen(cwd); in search_path() local
384 cwd, cwd_len, in search_path()
393 cwd, cwd_len, in search_path()
442 cwd, cwd_len, in search_path()
997 DWORD cwd_len, r; in uv_spawn() local
999 cwd_len = GetCurrentDirectoryW(0, NULL); in uv_spawn()
1000 if (!cwd_len) { in uv_spawn()
1005 cwd = (WCHAR*) uv__malloc(cwd_len * sizeof(WCHAR)); in uv_spawn()
1011 r = GetCurrentDirectoryW(cwd_len, cwd); in uv_spawn()
1012 if (r == 0 || r >= cwd_len) { in uv_spawn()