Home
last modified time | relevance | path

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

/developtools/syscap_codec/src/
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/src/
Dhook_manager.cpp60 struct stat statBuf; in CheckProcess() local
62 if (stat(pidPath.c_str(), &statBuf) != 0) { in CheckProcess()