Home
last modified time | relevance | path

Searched refs:zfd (Results 1 – 3 of 3) sorted by relevance

/libcore/ojluni/src/main/native/
Dzip_util.c180 ZFILE_Close(ZFILE zfd) { in ZFILE_Close() argument
182 CloseHandle((HANDLE) zfd); in ZFILE_Close()
184 close(zfd); in ZFILE_Close()
191 ZFILE_read(ZFILE zfd, char *buf, jint nbytes, jlong offset) { in ZFILE_read() argument
193 return (int) IO_Read(zfd, buf, nbytes); in ZFILE_read()
196 return pread64(zfd, buf, nbytes, offset); in ZFILE_read()
229 readFullyAt(ZFILE zfd, void *buf, jlong len, jlong offset) { in readFullyAt() argument
237 jint n = ZFILE_read(zfd, bp, count, offset); in readFullyAt()
264 zip->zfd = -1; in allocZip()
298 if (zip->zfd != -1) ZFILE_Close(zip->zfd); in freeZip()
[all …]
DZipFile.c98 ZFILE zfd = 0; in ZipFile_open() local
100 zfd = winFileHandleOpen(env, name, flag); in ZipFile_open()
101 if (zfd == -1) { in ZipFile_open()
106 zfd = JVM_Open(path, flag, 0); in ZipFile_open()
107 if (zfd < 0) { in ZipFile_open()
113 zip = ZIP_Put_In_Cache0(env, thiz, path, zfd, &msg, lastModified, usemmap); in ZipFile_open()
157 return zip->zfd; in ZipFile_getFileDescriptor()
Dzip_util.h223 ZFILE zfd; /* open file descriptor */ member
266 ZIP_Put_In_Cache(JNIEnv *env, jobject thiz, const char *name, ZFILE zfd, char **pmsg, jlong lastMod…
269 ZIP_Put_In_Cache0(JNIEnv *env, jobject thiz, const char *name, ZFILE zfd, char **pmsg, jlong lastMo…