src/share/native/java/util/zip/ZipFile.c

Print this page

        

*** 79,89 **** } } JNIEXPORT jlong JNICALL Java_java_util_zip_ZipFile_open(JNIEnv *env, jclass cls, jstring name, ! jint mode, jlong lastModified) { const char *path = JNU_GetStringPlatformChars(env, name, 0); char *msg = 0; jlong result = 0; int flag = 0; --- 79,90 ---- } } JNIEXPORT jlong JNICALL Java_java_util_zip_ZipFile_open(JNIEnv *env, jclass cls, jstring name, ! jint mode, jlong lastModified, ! jboolean usemmap) { const char *path = JNU_GetStringPlatformChars(env, name, 0); char *msg = 0; jlong result = 0; int flag = 0;
*** 107,117 **** if (zfd < 0) { throwFileNotFoundException(env, name); goto finally; } #endif ! zip = ZIP_Put_In_Cache(path, zfd, &msg, lastModified); } if (zip != 0) { result = ptr_to_jlong(zip); } else if (msg != 0) { --- 108,118 ---- if (zfd < 0) { throwFileNotFoundException(env, name); goto finally; } #endif ! zip = ZIP_Put_In_Cache0(path, zfd, &msg, lastModified, usemmap); } if (zip != 0) { result = ptr_to_jlong(zip); } else if (msg != 0) {