Lines Matching refs:pFile
697 FILE* pFile; in partitionRead() local
702 pFile = g_pPartitionFiles[nPartitionID]; in partitionRead()
704 if (pFile == NULL) in partitionRead()
710 if (fseek(pFile, nSectorIndex*g_nSectorSize, SEEK_SET) != 0) in partitionRead()
718 pFile) != 1) in partitionRead()
720 if (feof(pFile)) in partitionRead()
781 FILE* pFile; in partitionWrite() local
786 pFile = g_pPartitionFiles[nPartitionID]; in partitionWrite()
788 if (pFile == NULL) in partitionWrite()
794 if (fseek(pFile, nSectorIndex*g_nSectorSize, SEEK_SET) != 0) in partitionWrite()
802 pFile) != 1) in partitionWrite()
854 FILE* pFile; in partitionSetSize() local
857 pFile = g_pPartitionFiles[nPartitionID]; in partitionSetSize()
859 if (pFile==NULL) in partitionSetSize()
866 if (fseek(pFile, 0, SEEK_END) != 0) in partitionSetSize()
871 nCurrentSectorCount = ftell(pFile) / g_nSectorSize; in partitionSetSize()
884 if (fputc(0xA5, pFile)!=0xA5) in partitionSetSize()
896 result = ftruncate(fileno(pFile),nNewSectorCount * g_nSectorSize); in partitionSetSize()
902 result = _chsize(_fileno(pFile),nNewSectorCount * g_nSectorSize); in partitionSetSize()
922 FILE* pFile = g_pPartitionFiles[nPartitionID]; in partitionSync() local
924 if (pFile == NULL) in partitionSync()
932 result=fflush(pFile); in partitionSync()
941 result=fdatasync(fileno(pFile)); in partitionSync()
944 result=fsync(fileno(pFile)); in partitionSync()
947 result=_commit(_fileno(pFile)); in partitionSync()