Lines Matching refs:pFile
96 FILE *pFile= fopen(pcszPath, "w");
97 if (!pFile)
100 if (fprintf(pFile, "%s := \\\n", pcszVariableName) <= 0)
102 fclose(pFile);
106 *ppFile = pFile;
115 * @param pFile The file stream of the makefile list.
118 static int addFileToMakefileList(FILE *pFile, char *pszFilename)
120 if (pFile)
126 if (fprintf(pFile, "\t%s \\\n", pszFilename) <= 0)
137 * @param pFile The file stream of the makefile list.
140 static int closeMakefileList(FILE *pFile, int rc)
142 fprintf(pFile, "\n\n");
143 if (fclose(pFile))
159 FILE *pFile;
166 pFile = fopen(pcszFile, "r");
167 if (!pFile)
174 size_t cbRead = fread(*ppszFile, 1, FileStat.st_size, pFile);
176 && (cbRead > 0 || !ferror(pFile)) )
178 if (ftell(pFile) == FileStat.st_size) /* (\r\n vs \n in the DOS world) */
184 fclose(pFile);
195 fclose(pFile);
241 FILE *pFile = fopen(pcszFilename, "w");
242 if (!pFile)
247 if (fwrite(pcszSubContent, cchSubContent, 1, pFile) != 1)
251 int rc2 = fclose(pFile);