Lines Matching refs:pFile
87 FILE *pFile; member
231 …EAS_HW_DATA_HANDLE hwInstData, EAS_FILE_LOCATOR locator, EAS_FILE_HANDLE *pFile, EAS_FILE_MODE mod… in EAS_HWOpenFile() argument
237 *pFile = NULL; in EAS_HWOpenFile()
248 if (file->pFile == NULL) in EAS_HWOpenFile()
252 file->pFile = fopen((const char*) locator->path, "rb"); in EAS_HWOpenFile()
253 if (file->pFile == NULL) in EAS_HWOpenFile()
266 *pFile = file; in EAS_HWOpenFile()
287 if (fseek(file->pFile, file->filePos, SEEK_SET) != 0) in EAS_HWFillBuffer()
291 file->bytesInBuffer = (EAS_I32) fread(file->buffer, 1, EAS_FILE_BUFFER_SIZE, file->pFile); in EAS_HWFillBuffer()
316 if (file->pFile == NULL) in EAS_HWReadFile()
353 if (fseek(file->pFile, file->filePos, SEEK_SET) != 0) in EAS_HWReadFile()
358 temp = (EAS_I32) fread(p, 1, (size_t) bytesLeft, file->pFile); in EAS_HWReadFile()
399 if (file->pFile == NULL) in EAS_HWGetByte()
497 if (file->pFile == NULL) in EAS_HWFilePos()
518 if (file->pFile == NULL) in EAS_HWFileSeek()
559 if (file->pFile == NULL) in EAS_HWFileSeekOfs()
592 if (file->pFile == NULL) in EAS_HWFileLength()
595 if ((pos = ftell(file->pFile)) == -1L) in EAS_HWFileLength()
597 if (fseek(file->pFile, 0L, SEEK_END) != 0) in EAS_HWFileLength()
599 if ((*pLength = ftell(file->pFile)) == -1L) in EAS_HWFileLength()
601 if (fseek(file->pFile, pos, SEEK_SET) != 0) in EAS_HWFileLength()
621 if (file->pFile == NULL) in EAS_HWDupHandle()
629 if (dupfile->pFile == NULL) in EAS_HWDupHandle()
634 dupfile->pFile = file->pFile; in EAS_HWDupHandle()
667 if (file1->pFile == NULL) in EAS_HWCloseFile()
678 if ((file1 != file2) && (file2->pFile == file1->pFile)) in EAS_HWCloseFile()
684 file1->pFile = NULL; in EAS_HWCloseFile()
702 file1->pFile = NULL; in EAS_HWCloseFile()
707 if (fclose(file1->pFile) != 0) in EAS_HWCloseFile()
711 file1->pFile = NULL; in EAS_HWCloseFile()