Lines Matching defs:file

8  * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
55 /* USE_MMAP means mmap the CEN & ENDHDR part of the zip file. */
60 #define MAXREFS 0xFFFF /* max number of open zip file references */
82 * respect to file access needs.
86 * Opens the named file for reading, returning a ZFILE.
151 * only on Solaris. Continue reading jar file in this case is the best
152 * thing to do since zip file reading is relatively fast and it is very onerous
162 * Initialize zip file support. Return 0 if successful otherwise -1
216 * Allocates a new zip file object for the specified file name.
217 * Returns the zip file object or NULL if not enough memory.
238 * Frees all native resources owned by the specified zip file object.
270 /* ENDSIG matched, however the size of file comment in it does not
289 * the END header will be read and placed in endbuf. Returns the file
309 /* Pretend there are some NUL bytes before start of file */
356 * Returns the file position of the ZIP64 END header, otherwise returns
522 * from BEG to END. Might return a bogus answer if the zip file is
539 * Reads zip file central directory. Returns the file position of first
593 /* Get position of first local file (LOC) header, taking into
594 * account that there may be a stub prefixed to the zip file. */
602 /* On Solaris & Linux prior to JDK 6, we used to mmap the whole jar file to
603 * read the jar file contents. However, this greatly increased the perceived
606 * file while calling 'read' to read the rest of jar file. Here are a list of
635 jio_fprintf(stderr, "mmap failed for CEN and END part of zip file\n");
650 /* Initialize zip file data structures based on the total number
679 /* This will only happen if the zip file has an incorrect
764 * Opens a zip file with the specified mode. Returns the jzfile object
789 * Returns the jzfile corresponding to the given file name from the cache of
790 * zip files, or NULL if the file is not in the cache. If the name is longer
812 *pmsg = strdup("zip file name too long");
834 * Reads data from the given file descriptor to create a jzfile, puts the
885 if (len == 0) { /* zip file is empty */
887 *pmsg = strdup("zip file is empty");
900 /* An error occurred while trying to read the zip file */
918 * Opens a zip file for reading. Returns the jzfile object or NULL
926 jzfile *file = ZIP_Open_Generic(name, pmsg, O_RDONLY, 0);
927 if (file == NULL && pmsg != NULL && *pmsg != NULL) {
929 *pmsg = "Zip file open error";
931 return file;
935 * Closes the specified zip file object.
946 /* No other references so close the file and remove from list */
1277 * Returns the n'th (starting at zero) zip file entry, or NULL if the
1294 * Locks the specified zip file for reading.
1303 * Unlocks the specified zip file.
1312 * Returns the offset of the entry data within the zip file.
1319 /* The Zip file spec explicitly allows the LOC extra data size to
1331 zip->msg = "error reading zip file";
1345 * file had been previously locked with ZIP_Lock(). Returns the
1384 /* Get file offset to start reading data */
1391 zip->msg = "ZIP_Read: corrupt zip file: invalid entry size";
1396 zip->msg = "ZIP_Read: error reading zip file";
1447 *msg = "inflateFully: Unexpected end of file";
1492 * Reads a zip file entry into the specified byte array