Home
last modified time | relevance | path

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

/frameworks/libs/binary_translation/kernel_api/
Dmain_executable_real_path_emulation.cc34 struct stat cur_stat; in TryReadLinkToMainExecutableRealPath() local
36 if (lstat(pathname, &cur_stat) == 0 && lstat("/proc/self/exe", &exe_stat) == 0 && in TryReadLinkToMainExecutableRealPath()
37 cur_stat.st_ino == exe_stat.st_ino && cur_stat.st_dev == exe_stat.st_dev) { in TryReadLinkToMainExecutableRealPath()
Dopen_emulation.cc183 struct stat cur_stat; in IsProcSelfMaps() local
187 return stat(path, &cur_stat) == 0 && stat(PROC_SELF_MAPS, &proc_stat) == 0 && in IsProcSelfMaps()
188 !(S_ISLNK(cur_stat.st_mode) && (flags & AT_SYMLINK_NOFOLLOW)) && in IsProcSelfMaps()
189 cur_stat.st_ino == proc_stat.st_ino && cur_stat.st_dev == proc_stat.st_dev; in IsProcSelfMaps()
201 struct stat cur_stat; in TryTranslateProcCpuinfoPath() local
204 if (stat(path, &cur_stat) == -1 || stat("/proc/cpuinfo", &cpuinfo_stat) == -1) { in TryTranslateProcCpuinfoPath()
208 if (S_ISLNK(cur_stat.st_mode) && (flags & AT_SYMLINK_NOFOLLOW)) { in TryTranslateProcCpuinfoPath()
212 if ((cur_stat.st_ino == cpuinfo_stat.st_ino) && (cur_stat.st_dev == cpuinfo_stat.st_dev)) { in TryTranslateProcCpuinfoPath()