Lines Matching defs:fd
155 static int mapCentralDirectory0(int fd, const char* debugFileName,
267 if (sysMapFileSegmentInShmem(fd, centralDirOffset, centralDirSize,
288 static int mapCentralDirectory(int fd, const char* debugFileName,
294 off64_t fileLength = lseek64(fd, 0, SEEK_END);
321 int result = mapCentralDirectory0(fd, debugFileName, pArchive,
424 int fd, err;
430 fd = open(fileName, O_RDONLY | O_BINARY, 0);
431 if (fd < 0) {
437 return dexZipPrepArchive(fd, fileName, pArchive);
445 int dexZipPrepArchive(int fd, const char* debugFileName, ZipArchive* pArchive)
450 pArchive->mFd = fd;
452 if (mapCentralDirectory(fd, debugFileName, pArchive) != 0)
778 const ZipEntry entry, int fd)
802 if (sysCopyFileToFile(fd, pArchive->mFd, uncompLen) != 0)
805 if (inflateToFile(fd, pArchive->mFd, uncompLen, compLen) != 0)