|
| static int do_seekable | OF ((__GPRO__ int lastchance)) |
| static int rec_find | OF ((__GPRO__ zoff_t, char *, int)) |
| static int find_ecrec64 | OF ((__GPRO__ zoff_t searchlen)) |
| static int process_zip_cmmnt | OF ((__GPRO)) |
| int | process_zipfiles (__G) |
| void | free_G_buffers (__G) |
| static int | do_seekable (__G__ lastchance) __GDEF int lastchance |
| | if (SSTAT(G.zipfn, &G.statbuf)||(error=S_ISDIR(G.statbuf.st_mode)) !=0) |
| | if (open_input_file(__G)) |
| | if ((uO.zflag > 0) &&!uO.zipinfo_mode) |
| | if (uO.zipinfo_mode &&G.ecrec.number_this_disk !=G.ecrec.num_disk_start_cdir) |
| | if (!too_weird_to_continue) |
| | CLOSE_INFILE () |
| static int | rec_find (__G__ searchlen, signature, rec_size) __GDEF zoff_t searchlen |
| | if ((tail_len=G.ziplen % INBUFSIZ) > rec_size) |
| | for (i=1;!found &&(i<=numblks);++i) |
| | return (found ? 0 :1) |
| static int | find_ecrec64 (__G__ searchlen) __GDEF zoff_t searchlen |
| | if (ecloc64_start_offset< 0) return PK_COOL |
| | if ((G.incnt=read(G.zipfd,(char *) byterecL, ECLOC64_SIZE+4)) !=(ECLOC64_SIZE+4)) |
| | if (memcmp((char *) byterecL, end_centloc64_sig, 4)) |
| | if ((G.ecrec.number_this_disk !=0xFFFF) &&(G.ecrec.number_this_disk !=ecloc64_total_disks - 1)) |
| | if (ecrec64_start_offset >(zusz_t) ecloc64_start_offset) |
| | if ((G.incnt=read(G.zipfd,(char *) byterec, ECREC64_SIZE+4)) !=(ECREC64_SIZE+4)) |
| | if (memcmp((char *) byterec, end_central64_sig, 4)) |
| | if ((zuvl_t) makelong &[]NUMBER_THIS_DSK_REC64 !=ecrec64_start_disk) |
| | if (G.ecrec.num_disk_start_cdir==0xFFFF) |
| static int | find_ecrec (__G__ searchlen) __GDEF zoff_t searchlen |
| | if (G.ziplen<=INBUFSIZ) |
| | if (readbuf(__G__(char *) byterec, ECREC_SIZE+4)==0) |
| | if (uO.zipinfo_mode) |
| static int | process_zip_cmmnt (__G) |
| int | process_cdir_file_hdr (__G) |
| static int | get_cdir_ent (__G) |
| int | process_local_file_hdr (__G) |
| int | getZip64Data (__G__ ef_buf, ef_len) __GDEF ZCONST uch *ef_buf |
| | if (ef_len==0||ef_buf==NULL) |