/bionic/libc/bionic/ |
__bionic_get_shell_path.cpp | 47 char exe_path[strlen(VENDOR_PREFIX)]; local 48 ssize_t len = readlink("/proc/self/exe", exe_path, sizeof(exe_path)); 49 if (len != -1 && !strncmp(exe_path, VENDOR_PREFIX, strlen(VENDOR_PREFIX))) {
|
/external/bcc/src/cc/ |
common.cc | 53 char exe_path[4096]; local 57 res = readlink(exe_link.c_str(), exe_path, sizeof(exe_path)); 60 if (res >= sizeof(exe_path)) 61 res = sizeof(exe_path) - 1; 62 exe_path[res] = '\0'; 63 return std::string(exe_path);
|
/external/chromium-trace/catapult/systrace/atrace_helper/jni/ |
procfs_utils.cc | 30 char exe_path[64]; local 31 sprintf(exe_path, "/proc/%d/exe", pid); 32 ssize_t res = readlink(exe_path, buf, size - 1);
|
/external/v8/src/base/debug/ |
stack_trace_win.cc | 82 wchar_t exe_path[MAX_PATH]; local 83 GetExePath(exe_path); 85 std::wstring(exe_path));
|
/bionic/linker/ |
linker_main.cpp | 354 static std::string exe_path = exe_info.path; local 356 INFO("[ Linking executable \"%s\" ]", exe_path.c_str()); 360 exe_path.c_str(), &exe_info.file_stat, 369 init_link_map_head(*si, exe_path.c_str()); 407 std::vector<android_namespace_t*> namespaces = init_default_namespaces(exe_path.c_str());
|
/external/tensorflow/tensorflow/core/platform/ |
env.cc | 298 char exe_path[PATH_MAX] = {0}; local 304 CHECK(realpath(unresolved_path, exe_path)); 309 if (sysctl(mib, 4, exe_path, &exe_path_size, NULL, 0) != 0) { 318 std::copy(file_path.begin(), file_path.end(), exe_path); 340 snprintf(exe_path, sizeof(exe_path), "%s", &buf[token_pos]); 342 snprintf(exe_path, sizeof(exe_path), "%s", buf); 347 exe_path[sizeof(exe_path) - 1] = 0 [all...] |
/external/tensorflow/tensorflow/stream_executor/cuda/ |
cuda_gpu_executor.cc | 192 char exe_path[PATH_MAX] = {0}; local 198 CHECK_ERR(realpath(unresolved_path, exe_path) ? 1 : -1); 202 GetModuleFileName(hModule, exe_path, MAX_PATH); 204 CHECK_ERR(readlink("/proc/self/exe", exe_path, sizeof(exe_path) - 1)); 208 exe_path[sizeof(exe_path) - 1] = 0; 212 string ret = exe_path; 213 std::vector<string> components = port::Split(exe_path, '/'); 217 return exe_path; [all...] |
/external/tensorflow/tensorflow/stream_executor/rocm/ |
rocm_gpu_executor.cc | 206 char exe_path[PATH_MAX] = {0}; local 207 CHECK_ERR(readlink("/proc/self/exe", exe_path, sizeof(exe_path) - 1)); 209 exe_path[sizeof(exe_path) - 1] = 0; 213 string ret = exe_path; 214 std::vector<string> components = port::Split(exe_path, '/'); 218 return exe_path; [all...] |
/external/pdfium/samples/ |
pdfium_test.cc | 113 std::string exe_path; member in struct:__anon35179::Options 724 options->exe_path = args[0]; [all...] |