Searched refs:statBuf (Results 1 - 6 of 6) sorted by relevance
/developtools/syscap_codec/src/ |
H A D | context_tool.c | 44 struct stat statBuf; in GetFileContext() local 60 ret = stat(path, &statBuf); in GetFileContext() 65 if (!(statBuf.st_mode & S_IRUSR)) { in GetFileContext() 69 contextBuffer = (char *)malloc(statBuf.st_size + 1); in GetFileContext() 71 PRINT_ERR("malloc buffer failed, size = %d, errno = %d\n", (int32_t)statBuf.st_size + 1, errno); in GetFileContext() 80 size_t retFread = fread(contextBuffer, statBuf.st_size, 1, fp); in GetFileContext() 87 contextBuffer[statBuf.st_size] = '\0'; in GetFileContext() 91 *bufferLen = statBuf.st_size + 1; in GetFileContext()
|
/developtools/profiler/device/plugins/native_daemon/native_memory_profiler_sa/src/ |
H A D | native_memory_profiler_sa_stub.cpp | 83 struct stat statBuf; in StubDumpFile() local 85 if (stat(pidPath.c_str(), &statBuf) != 0) { in StubDumpFile()
|
/developtools/packing_tool/packing_tool/frameworks/src/ |
H A D | utils.cpp | 233 struct stat statBuf {}; in IsFile() struct 234 return lstat(file.c_str(), &statBuf) == 0 ? S_ISREG(statBuf.st_mode) : false; in IsFile() 239 struct stat statBuf {}; in IsDirectory() struct 240 return lstat(dir.c_str(), &statBuf) == 0 ? S_ISDIR(statBuf.st_mode) : false; in IsDirectory()
|
/developtools/profiler/device/plugins/ffrt_profiler/service/src/ |
H A D | ffrt_profiler_manager.cpp | 64 struct stat statBuf; in CheckConfig() local 66 if (stat(pidPath.c_str(), &statBuf) != 0) { in CheckConfig()
|
/developtools/profiler/device/plugins/network_profiler/service/src/ |
H A D | network_profiler_manager.cpp | 68 struct stat statBuf; in CheckConfig() local 70 if (stat(pidPath.c_str(), &statBuf) != 0) { in CheckConfig()
|
/developtools/profiler/device/plugins/native_daemon/src/ |
H A D | hook_manager.cpp | 79 struct stat statBuf; in CheckProcess() local 81 if (stat(pidPath.c_str(), &statBuf) != 0) { in CheckProcess()
|
Completed in 5 milliseconds