Lines Matching refs:FILE
5 * you may not use this file except in compliance with the License.
57 * Open a file and parse its guts.
81 ALOGD("File %s does not exist", zipFileName);
86 /* open the file */
116 * the file if it's brand new and nothing was added, but that's
192 * central directory at the end of the file.
244 /* read the last part of the file into the buffer */
246 ALOGD("short file? wanted %ld\n", readAmount);
286 * start of the file.
293 * The only thing we really need right now is the file comment, which
347 * Add a new file to the archive.
350 * the data into the file at the appropriate position. The "appropriate
355 * in a temp file and then overwrite the original after everything was
365 FILE* inputFp = NULL;
457 // currently seeked to end of file
471 ALOGD("this isn't a deflated gzip file?");
491 * Update file offsets.
533 * Add an entry by copying it from another zip file. If "padding" is
612 * Update file offsets.
643 * On exit, "srcFp" will be seeked to the end of the file, and "dstFp"
646 status_t ZipFile::copyFpToFp(FILE* dstFp, FILE* srcFp, unsigned long* pCRC32)
676 status_t ZipFile::copyDataToFp(FILE* dstFp,
698 * On exit, "srcFp" will be seeked to the end of the file, and "dstFp"
701 status_t ZipFile::copyPartialFpToFp(FILE* dstFp, FILE* srcFp, long length,
740 * On exit, "srcFp" will be seeked to the end of the file, and "dstFp"
743 status_t ZipFile::compressFpToFp(FILE* dstFp, FILE* srcFp,
874 * We will eventually need to crunch the file down, but if several files
882 * not some stray ZipEntry from a different file.
931 * of wasted space at the end of the file. Remove it now.
947 * Because we're not using a temp file, we do the operation inside the
948 * current file.
982 * file offsets, so we need to find the next non-directory
995 * any actual file contents, so there's no need to
1021 /* this is why you use a temp file */
1047 * Works like memmove(), but on pieces of a file.
1049 status_t ZipFile::filemove(FILE* fp, off_t dst, off_t src, size_t n)
1057 /* shift stuff toward start of file; must read from start */
1090 /* shift stuff toward end of file; must read from end */
1100 * Get the modification time from a file descriptor.
1117 * Get a copy of the Zip file descriptor.
1119 * We don't allow this if the file was opened read-write because we tend
1120 * to leave the file contents in an uncertain state between calls to
1121 * flush(). The duplicated file descriptor should only be valid for reads.
1226 /* looks like ZIP file got truncated */
1262 status_t ZipFile::EndOfCentralDir::write(FILE* fp)