Lines Matching defs:fd
144 static int mapCentralDirectory0(int fd, const char* debugFileName,
149 if (lseek(fd, searchStart, SEEK_SET) != searchStart) {
153 ssize_t actual = TEMP_FAILURE_RETRY(read(fd, scanBuf, readAmount));
207 if (sysMapFileSegmentInShmem(fd, dirOffset, dirSize,
228 static int mapCentralDirectory(int fd, const char* debugFileName,
234 off_t fileLength = lseek(fd, 0, SEEK_END);
261 int result = mapCentralDirectory0(fd, debugFileName, pArchive,
349 int fd, err;
355 fd = open(fileName, O_RDONLY | O_BINARY, 0);
356 if (fd < 0) {
362 return dexZipPrepArchive(fd, fileName, pArchive);
370 int dexZipPrepArchive(int fd, const char* debugFileName, ZipArchive* pArchive)
375 pArchive->mFd = fd;
377 if (mapCentralDirectory(fd, debugFileName, pArchive) != 0)
697 const ZipEntry entry, int fd)
721 if (sysCopyFileToFile(fd, pArchive->mFd, uncompLen) != 0)
724 if (inflateToFile(fd, pArchive->mFd, uncompLen, compLen) != 0)