Lines Matching defs:zip

76 // Entry points in zip.dll for loading zip/jar file entries
79 typedef void (JNICALL *ZipClose_t)(jzfile *zip);
80 typedef jzentry* (JNICALL *FindEntry_t)(jzfile *zip, const char *name, jint *sizeP, jint *nameLen);
81 typedef jboolean (JNICALL *ReadEntry_t)(jzfile *zip, jzentry *entry, unsigned char *buf, char *namebuf);
82 typedef jboolean (JNICALL *ReadMappedEntry_t)(jzfile *zip, jzentry *entry, unsigned char **buf, char *namebuf);
83 typedef jzentry* (JNICALL *GetNextEntry_t)(jzfile *zip, jint n);
230 ClassPathZipEntry::ClassPathZipEntry(jzfile* zip, const char* zip_name) : ClassPathEntry() {
231 _zip = zip;
247 // check whether zip archive contains name
275 // invoke function for each entry in the zip file
475 // Regular file, should be a zip file
484 jzfile* zip;
489 zip = (*ZipOpen)(canonical_path, &error_msg);
491 if (zip != NULL && error_msg == NULL) {
492 *new_entry = new ClassPathZipEntry(zip, path);
520 // Create a class path zip entry for a given path (return NULL if not found
521 // or zip/JAR file cannot be opened)
533 jzfile* zip;
539 zip = (*ZipOpen)(canonical_path, &error_msg);
541 if (zip != NULL && error_msg == NULL) {
543 return new ClassPathZipEntry(zip, canonical_path);
555 // assume zip entries have been canonicalized
603 assert(ZipOpen == NULL, "should not load zip library twice");
606 // Load zip library
609 os::dll_build_name(path, sizeof(path), Arguments::get_dll_dir(), "zip");
614 // Lookup zip entry points
1017 // lookup zip library entry points
1095 // in all classes found. Currently, only zip/jar archives are searched.
1104 // We need to iterate over the contents of a zip/jar file, so we replicate the
1121 char *comment; /* optional zip file comment */
1127 char *name; /* zip file name */
1131 char *comment; /* zip file comment */
1132 char *msg; /* zip error message */
1137 real_jzfile13 *next; /* next zip file in search list */
1153 char *comment; /* optional zip file comment */
1160 char *name; /* zip file name */
1164 char *comment; /* zip file comment */
1165 char *msg; /* zip error message */
1166 real_jzentry12 *entries; /* array of zip entries */
1170 jzfile *next; /* next zip file in search list */
1175 // For now we only compile all methods in all classes in zip/jar files
1207 real_jzfile13* zip = (real_jzfile13*) _zip;
1208 tty->print_cr("CompileTheWorld : Compiling all classes in %s", zip->name);
1210 // Iterate over all entries in zip file
1221 real_jzfile12* zip = (real_jzfile12*) _zip;
1222 tty->print_cr("CompileTheWorld : Compiling all classes in %s", zip->name);
1224 // Iterate over all entries in zip file
1242 real_jzfile13* zip = (real_jzfile13*) _zip;
1243 int len = (int)strlen(zip->name);
1244 // Check whether zip name ends in "rt.jar"
1247 return (len >= 6) && (strcasecmp(zip->name + len - 6, "rt.jar") == 0);
1252 real_jzfile12* zip = (real_jzfile12*) _zip;
1253 int len = (int)strlen(zip->name);
1254 // Check whether zip name ends in "rt.jar"
1257 return (len >= 6) && (strcasecmp(zip->name + len - 6, "rt.jar") == 0);