Home
last modified time | relevance | path

Searched refs:path_length (Results 1 – 7 of 7) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/nftw/
Dlib.c62 size_t path_length, name_length; in get_long_name_buffer() local
65 if ((path_length = pathconf(tmp_path, _PC_PATH_MAX)) == -1) { in get_long_name_buffer()
79 if ((strlen(tmp_path) + name_length + extra) > path_length) { in get_long_name_buffer()
82 name_length, path_length); in get_long_name_buffer()
87 if ((buffer = malloc(path_length + extra)) == NULL) { in get_long_name_buffer()
88 tst_resm(TFAIL, "malloc(%zi) failed: %s", path_length + extra, in get_long_name_buffer()
Dlib64.c62 size_t path_length, name_length; in get_long_name_buffer() local
65 if ((path_length = pathconf(tmp_path, _PC_PATH_MAX)) == -1) { in get_long_name_buffer()
79 if ((strlen(tmp_path) + name_length + extra) > path_length) { in get_long_name_buffer()
82 name_length, path_length); in get_long_name_buffer()
87 if ((buffer = malloc(path_length + extra)) == NULL) { in get_long_name_buffer()
88 tst_resm(TFAIL, "malloc(%zi) failed: %s", path_length + extra, in get_long_name_buffer()
/third_party/gn/src/gn/
Dsetup.cc325 DWORD path_length = ::GetEnvironmentVariable( in FindWindowsPython() local
327 if (path_length == 0) in FindWindowsPython()
329 std::unique_ptr<char16_t[]> full_path(new char16_t[path_length]); in FindWindowsPython()
332 reinterpret_cast<LPWSTR>(full_path.get()), path_length); in FindWindowsPython()
333 CHECK_EQ(path_length, actual_path_length + 1); in FindWindowsPython()
337 std::u16string_view(full_path.get(), path_length), u";", in FindWindowsPython()
/third_party/cJSON/
DcJSON_Utils.c1119 size_t path_length = strlen((const char*)path); in compose_patch() local
1120 …unsigned char *full_path = (unsigned char*)cJSON_malloc(path_length + suffix_length + sizeof("/")); in compose_patch()
1123 encode_string_as_pointer(full_path + path_length + 1, suffix); in compose_patch()
1244 size_t path_length = strlen((const char*)path); in create_patches() local
1246 …unsigned char *new_path = (unsigned char*)cJSON_malloc(path_length + from_child_name_length + size… in create_patches()
1249 … encode_string_as_pointer(new_path + path_length + 1, (unsigned char*)from_child->string); in create_patches()
/third_party/skia/third_party/externals/brotli/
DCMakeLists.txt342 string(LENGTH "${path}" path_length)
357 if(path_length EQUAL value_length AND path STREQUAL value)
360 elseif(path_length GREATER value_length)
/third_party/node/deps/uv/src/unix/
Dfs.c319 size_t path_length; in uv__fs_mkstemp() local
322 path_length = strlen(path); in uv__fs_mkstemp()
329 if (path_length < pattern_size || in uv__fs_mkstemp()
330 strcmp(path + path_length - pattern_size, pattern)) { in uv__fs_mkstemp()
/third_party/libuv/src/unix/
Dfs.c340 size_t path_length; in uv__fs_mkstemp() local
343 path_length = strlen(path); in uv__fs_mkstemp()
350 if (path_length < pattern_size || in uv__fs_mkstemp()
351 strcmp(path + path_length - pattern_size, pattern)) { in uv__fs_mkstemp()