Lines Matching refs:mZipFp

63     assert(mZipFp == NULL);     // no reopen
96 mZipFp = fopen(zipFileName, openflags);
97 if (mZipFp == NULL) {
212 fseek(mZipFp, 0, SEEK_END);
213 fileLength = ftell(mZipFp);
214 rewind(mZipFp);
238 if (fseek(mZipFp, seekStart, SEEK_SET) != 0) {
245 if (fread(buf, 1, readAmount, mZipFp) != (size_t) readAmount) {
296 if (fseek(mZipFp, mEOCD.mCentralDirOffset, SEEK_SET) != 0) {
311 result = pEntry->initFromCDE(mZipFp);
327 if (fread(checkBuf, 1, 4, mZipFp) != 4) {
376 assert(mZipFp != NULL);
389 if (fseek(mZipFp, mEOCD.mCentralDirOffset, SEEK_SET) != 0) {
407 lfhPosn = ftell(mZipFp);
408 pEntry->mLFH.write(mZipFp);
409 startPosn = ftell(mZipFp);
417 result = compressFpToFp(mZipFp, inputFp, data, size, &crc);
428 long dst = ftell(mZipFp) - startPosn;
439 fseek(mZipFp, startPosn, SEEK_SET);
446 result = copyFpToFp(mZipFp, inputFp, &crc);
448 result = copyDataToFp(mZipFp, data, size, &crc);
476 result = copyPartialFpToFp(mZipFp, inputFp, compressedLen, NULL);
493 endPosn = ftell(mZipFp); // seeked to end of compressed data
500 modWhen = getModTime(inputFp ? fileno(inputFp) : fileno(mZipFp));
511 if (fseek(mZipFp, lfhPosn, SEEK_SET) != 0) {
515 pEntry->mLFH.write(mZipFp);
550 assert(mZipFp != NULL);
553 if (fseek(mZipFp, mEOCD.mCentralDirOffset, SEEK_SET) != 0) {
582 lfhPosn = ftell(mZipFp);
583 pEntry->mLFH.write(mZipFp);
592 if (fseek(pSourceZip->mZipFp, pSourceEntry->getFileOffset(), SEEK_SET) != 0)
603 if (copyPartialFpToFp(mZipFp, pSourceZip->mZipFp, copyLen, NULL)
614 endPosn = ftell(mZipFp);
908 assert(mZipFp != NULL);
914 if (fseek(mZipFp, mEOCD.mCentralDirOffset, SEEK_SET) != 0)
920 pEntry->mCDE.write(mZipFp);
923 eocdPosn = ftell(mZipFp);
926 mEOCD.write(mZipFp);
933 if (ftruncate(fileno(mZipFp), ftell(mZipFp)) != 0) {
934 ALOGW("ftruncate failed %ld: %s\n", ftell(mZipFp), strerror(errno));
1018 result = filemove(mZipFp, pEntry->getLFHOffset() - adjust,
1127 assert(mZipFp != NULL);
1130 fd = dup(fileno(mZipFp));
1161 fseek(mZipFp, 0, SEEK_SET);
1164 if (fseek(mZipFp, offset, SEEK_SET) != 0) {
1171 ssize_t amt = fread(buf, 1, unlen, mZipFp);
1192 if (!ZipUtils::inflateToBuffer(mZipFp, buf, unlen, clen)) {