Lines Matching refs:FileStat
160 struct stat FileStat;
163 if (stat(pcszFile, &FileStat))
170 *ppszFile = (char *)malloc(FileStat.st_size + 1);
174 size_t cbRead = fread(*ppszFile, 1, FileStat.st_size, pFile);
175 if ( cbRead <= (size_t)FileStat.st_size
178 if (ftell(pFile) == FileStat.st_size) /* (\r\n vs \n in the DOS world) */
194 rc = printErr("Failed to allocate %lu bytes\n", (unsigned long)(FileStat.st_size + 1));
211 struct stat FileStat;
212 if (stat(pcszFilename, &FileStat))
214 if ((size_t)FileStat.st_size < cchSubContent)