Home
last modified time | relevance | path

Searched refs:path_len (Results 1 – 2 of 2) sorted by relevance

/bionic/linker/
Dlinker_main.cpp206 ssize_t path_len = readlink("/init", path, sizeof(path)); in get_executable_info() local
207 if (path_len == -1 || path_len >= static_cast<ssize_t>(sizeof(path))) { in get_executable_info()
210 result.path = std::string(path, path_len); in get_executable_info()
220 ssize_t path_len = readlink("/proc/self/exe", path, sizeof(path)); in get_executable_info() local
221 if (path_len == -1 || path_len >= static_cast<ssize_t>(sizeof(path))) { in get_executable_info()
224 result.path = std::string(path, path_len); in get_executable_info()
/bionic/libc/malloc_hooks/tests/
Dmalloc_hooks_tests.cpp132 ssize_t path_len = readlink("/proc/self/exe", path, sizeof(path)); in GetExe() local
133 ASSERT_TRUE(path_len >= 0); in GetExe()
134 *exe_name = std::string(path, path_len); in GetExe()