Searched refs:path_len (Results 1 – 2 of 2) sorted by relevance
1116 ssize_t path_len = readlink("/proc/self/exe", path, sizeof(path)); in get_proc_self_exe() local1117 if (path_len <= 0 || path_len >= static_cast<ssize_t>(sizeof(path))) { in get_proc_self_exe()1122 return std::string(path, path_len); in get_proc_self_exe()
4143 ssize_t path_len = readlink("/proc/self/exe", path, sizeof(path)); in get_executable_path() local4144 if (path_len == -1 || path_len >= static_cast<ssize_t>(sizeof(path))) { in get_executable_path()4147 executable_path = std::string(path, path_len); in get_executable_path()