Home
last modified time | relevance | path

Searched refs:cwd_len (Results 1 – 8 of 8) sorted by relevance

/third_party/ninja/src/
Dincludes_normalize_test.cc120 int cwd_len = strlen(kExactlyMaxPath); in TEST() local
121 ASSERT_LE(cwd_len + 3 + 1, _MAX_PATH) in TEST()
122 kExactlyMaxPath[cwd_len] = '\\'; in TEST()
123 kExactlyMaxPath[cwd_len + 1] = 'a'; in TEST()
124 kExactlyMaxPath[cwd_len + 2] = '\\'; in TEST()
126 kExactlyMaxPath[cwd_len + 3] = 'a'; in TEST()
128 for (int i = cwd_len + 4; i < _MAX_PATH; ++i) { in TEST()
129 if (i > cwd_len + 4 && i < _MAX_PATH - 1 && i % 10 == 0) in TEST()
141 EXPECT_EQ(forward_slashes.substr(cwd_len + 1), in TEST()
/third_party/libuv/src/win/
Dprocess.c169 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()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
Dos_internal.c159 size_t len = 128, cwd_len, rel_len, ret_len; in os_rel2abs_path() local
180 cwd_len = os_strlen(cwd); in os_rel2abs_path()
182 ret_len = cwd_len + 1 + rel_len + 1; in os_rel2abs_path()
185 os_memcpy(ret, cwd, cwd_len); in os_rel2abs_path()
186 ret[cwd_len] = '/'; in os_rel2abs_path()
187 os_memcpy(ret + cwd_len + 1, rel_path, rel_len); in os_rel2abs_path()
Dos_unix.c289 size_t len = 128, cwd_len, rel_len, ret_len; in os_rel2abs_path() local
317 cwd_len = os_strlen(cwd); in os_rel2abs_path()
319 ret_len = cwd_len + 1 + rel_len + 1; in os_rel2abs_path()
322 os_memcpy(ret, cwd, cwd_len); in os_rel2abs_path()
323 ret[cwd_len] = '/'; in os_rel2abs_path()
324 os_memcpy(ret + cwd_len + 1, rel_path, rel_len); in os_rel2abs_path()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
Dos_internal.c165 size_t len = 128, cwd_len, rel_len, ret_len; in os_rel2abs_path() local
186 cwd_len = os_strlen(cwd); in os_rel2abs_path()
188 ret_len = cwd_len + 1 + rel_len + 1; in os_rel2abs_path()
191 os_memcpy(ret, cwd, cwd_len); in os_rel2abs_path()
192 ret[cwd_len] = '/'; in os_rel2abs_path()
193 os_memcpy(ret + cwd_len + 1, rel_path, rel_len); in os_rel2abs_path()
Dos_unix.c295 size_t len = 128, cwd_len, rel_len, ret_len; in os_rel2abs_path() local
323 cwd_len = os_strlen(cwd); in os_rel2abs_path()
325 ret_len = cwd_len + 1 + rel_len + 1; in os_rel2abs_path()
328 os_memcpy(ret, cwd, cwd_len); in os_rel2abs_path()
329 ret[cwd_len] = '/'; in os_rel2abs_path()
330 os_memcpy(ret + cwd_len + 1, rel_path, rel_len); in os_rel2abs_path()
/third_party/node/src/
Dnode_process_methods.cc84 size_t cwd_len = sizeof(buf); in Chdir() local
85 uv_cwd(buf, &cwd_len); in Chdir()
129 size_t cwd_len = sizeof(buf); in Cwd() local
130 int err = uv_cwd(buf, &cwd_len); in Cwd()
137 cwd_len).ToLocalChecked(); in Cwd()
/third_party/python/Python/
Dfileutils.c2046 size_t cwd_len = wcslen(cwd); in _Py_abspath()
2048 size_t len = cwd_len + 1 + path_len + 1; in _Py_abspath()
2060 memcpy(abspath, cwd, cwd_len * sizeof(wchar_t)); in _Py_abspath()
2061 abspath += cwd_len; in _Py_abspath()