Lines Matching refs:mZipFp

63     assert(mZipFp == NULL);     // no reopen  in open()
96 mZipFp = fopen(zipFileName, openflags); in open()
97 if (mZipFp == NULL) { in open()
212 fseek(mZipFp, 0, SEEK_END); in readCentralDir()
213 fileLength = ftell(mZipFp); in readCentralDir()
214 rewind(mZipFp); in readCentralDir()
238 if (fseek(mZipFp, seekStart, SEEK_SET) != 0) { in readCentralDir()
245 if (fread(buf, 1, readAmount, mZipFp) != (size_t) readAmount) { in readCentralDir()
296 if (fseek(mZipFp, mEOCD.mCentralDirOffset, SEEK_SET) != 0) { in readCentralDir()
311 result = pEntry->initFromCDE(mZipFp); in readCentralDir()
327 if (fread(checkBuf, 1, 4, mZipFp) != 4) { in readCentralDir()
376 assert(mZipFp != NULL); in addCommon()
389 if (fseek(mZipFp, mEOCD.mCentralDirOffset, SEEK_SET) != 0) { in addCommon()
407 lfhPosn = ftell(mZipFp); in addCommon()
408 pEntry->mLFH.write(mZipFp); in addCommon()
409 startPosn = ftell(mZipFp); in addCommon()
417 result = compressFpToFp(mZipFp, inputFp, data, size, &crc); in addCommon()
428 long dst = ftell(mZipFp) - startPosn; in addCommon()
439 fseek(mZipFp, startPosn, SEEK_SET); in addCommon()
446 result = copyFpToFp(mZipFp, inputFp, &crc); in addCommon()
448 result = copyDataToFp(mZipFp, data, size, &crc); in addCommon()
476 result = copyPartialFpToFp(mZipFp, inputFp, compressedLen, NULL); in addCommon()
493 endPosn = ftell(mZipFp); // seeked to end of compressed data in addCommon()
510 if (fseek(mZipFp, lfhPosn, SEEK_SET) != 0) { in addCommon()
514 pEntry->mLFH.write(mZipFp); in addCommon()
549 assert(mZipFp != NULL); in add()
552 if (fseek(mZipFp, mEOCD.mCentralDirOffset, SEEK_SET) != 0) { in add()
581 lfhPosn = ftell(mZipFp); in add()
582 pEntry->mLFH.write(mZipFp); in add()
591 if (fseek(pSourceZip->mZipFp, pSourceEntry->getFileOffset(), SEEK_SET) != 0) in add()
602 if (copyPartialFpToFp(mZipFp, pSourceZip->mZipFp, copyLen, NULL) in add()
613 endPosn = ftell(mZipFp); in add()
905 assert(mZipFp != NULL); in flush()
911 if (fseek(mZipFp, mEOCD.mCentralDirOffset, SEEK_SET) != 0) in flush()
917 pEntry->mCDE.write(mZipFp); in flush()
920 eocdPosn = ftell(mZipFp); in flush()
923 mEOCD.write(mZipFp); in flush()
930 if (ftruncate(fileno(mZipFp), ftell(mZipFp)) != 0) { in flush()
931 ALOGW("ftruncate failed %ld: %s\n", ftell(mZipFp), strerror(errno)); in flush()
1015 result = filemove(mZipFp, pEntry->getLFHOffset() - adjust, in crunchArchive()
1124 assert(mZipFp != NULL);
1127 fd = dup(fileno(mZipFp));
1158 fseek(mZipFp, 0, SEEK_SET); in uncompress()
1161 if (fseek(mZipFp, offset, SEEK_SET) != 0) { in uncompress()
1168 ssize_t amt = fread(buf, 1, unlen, mZipFp); in uncompress()
1189 if (!ZipUtils::inflateToBuffer(mZipFp, buf, unlen, clen)) { in uncompress()