Home
last modified time | relevance | path

Searched refs:statBuf (Results 1 - 6 of 6) sorted by relevance

/developtools/syscap_codec/src/
H A Dcontext_tool.c44 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 Dnative_memory_profiler_sa_stub.cpp83 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 Dutils.cpp233 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 Dffrt_profiler_manager.cpp64 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 Dnetwork_profiler_manager.cpp68 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 Dhook_manager.cpp79 struct stat statBuf; in CheckProcess() local
81 if (stat(pidPath.c_str(), &statBuf) != 0) { in CheckProcess()

Completed in 5 milliseconds