53 #include "oops/instanceRefKlass.hpp"
54 #include "oops/method.inline.hpp"
55 #include "oops/objArrayOop.inline.hpp"
56 #include "oops/oop.inline.hpp"
57 #include "oops/symbol.hpp"
58 #include "prims/jvm_misc.hpp"
59 #include "runtime/arguments.hpp"
60 #include "runtime/compilationPolicy.hpp"
61 #include "runtime/handles.inline.hpp"
62 #include "runtime/init.hpp"
63 #include "runtime/interfaceSupport.inline.hpp"
64 #include "runtime/java.hpp"
65 #include "runtime/javaCalls.hpp"
66 #include "runtime/os.inline.hpp"
67 #include "runtime/threadCritical.hpp"
68 #include "runtime/timer.hpp"
69 #include "runtime/vm_version.hpp"
70 #include "services/management.hpp"
71 #include "services/threadService.hpp"
72 #include "utilities/classpathStream.hpp"
73 #include "utilities/events.hpp"
74 #include "utilities/hashtable.inline.hpp"
75 #include "utilities/macros.hpp"
76
77 // Entry points in zip.dll for loading zip/jar file entries
78
79 typedef void * * (*ZipOpen_t)(const char *name, char **pmsg);
80 typedef void (*ZipClose_t)(jzfile *zip);
81 typedef jzentry* (*FindEntry_t)(jzfile *zip, const char *name, jint *sizeP, jint *nameLen);
82 typedef jboolean (*ReadEntry_t)(jzfile *zip, jzentry *entry, unsigned char *buf, char *namebuf);
83 typedef jzentry* (*GetNextEntry_t)(jzfile *zip, jint n);
84 typedef jboolean (*ZipInflateFully_t)(void *inBuf, jlong inLen, void *outBuf, jlong outLen, char **pmsg);
85 typedef jint (*Crc32_t)(jint crc, const jbyte *buf, jint len);
86
87 static ZipOpen_t ZipOpen = NULL;
88 static ZipClose_t ZipClose = NULL;
89 static FindEntry_t FindEntry = NULL;
90 static ReadEntry_t ReadEntry = NULL;
91 static GetNextEntry_t GetNextEntry = NULL;
92 static canonicalize_fn_t CanonicalizeEntry = NULL;
93 static ZipInflateFully_t ZipInflateFully = NULL;
|
53 #include "oops/instanceRefKlass.hpp"
54 #include "oops/method.inline.hpp"
55 #include "oops/objArrayOop.inline.hpp"
56 #include "oops/oop.inline.hpp"
57 #include "oops/symbol.hpp"
58 #include "prims/jvm_misc.hpp"
59 #include "runtime/arguments.hpp"
60 #include "runtime/compilationPolicy.hpp"
61 #include "runtime/handles.inline.hpp"
62 #include "runtime/init.hpp"
63 #include "runtime/interfaceSupport.inline.hpp"
64 #include "runtime/java.hpp"
65 #include "runtime/javaCalls.hpp"
66 #include "runtime/os.inline.hpp"
67 #include "runtime/threadCritical.hpp"
68 #include "runtime/timer.hpp"
69 #include "runtime/vm_version.hpp"
70 #include "services/management.hpp"
71 #include "services/threadService.hpp"
72 #include "utilities/classpathStream.hpp"
73 #include "utilities/events.inline.hpp"
74 #include "utilities/hashtable.inline.hpp"
75 #include "utilities/macros.hpp"
76
77 // Entry points in zip.dll for loading zip/jar file entries
78
79 typedef void * * (*ZipOpen_t)(const char *name, char **pmsg);
80 typedef void (*ZipClose_t)(jzfile *zip);
81 typedef jzentry* (*FindEntry_t)(jzfile *zip, const char *name, jint *sizeP, jint *nameLen);
82 typedef jboolean (*ReadEntry_t)(jzfile *zip, jzentry *entry, unsigned char *buf, char *namebuf);
83 typedef jzentry* (*GetNextEntry_t)(jzfile *zip, jint n);
84 typedef jboolean (*ZipInflateFully_t)(void *inBuf, jlong inLen, void *outBuf, jlong outLen, char **pmsg);
85 typedef jint (*Crc32_t)(jint crc, const jbyte *buf, jint len);
86
87 static ZipOpen_t ZipOpen = NULL;
88 static ZipClose_t ZipClose = NULL;
89 static FindEntry_t FindEntry = NULL;
90 static ReadEntry_t ReadEntry = NULL;
91 static GetNextEntry_t GetNextEntry = NULL;
92 static canonicalize_fn_t CanonicalizeEntry = NULL;
93 static ZipInflateFully_t ZipInflateFully = NULL;
|