Lines Matching full:us
33 (Prior to January 2000, re-export from the US was a violation of US law.)
502 unz64_s us; in unzOpenInternal() local
520 us.z_filefunc.zseek32_file = NULL; in unzOpenInternal()
521 us.z_filefunc.ztell32_file = NULL; in unzOpenInternal()
523 fill_fopen64_filefunc(&us.z_filefunc.zfile_func64); in unzOpenInternal()
525 us.z_filefunc = *pzlib_filefunc64_32_def; in unzOpenInternal()
526 us.is64bitOpenFunction = is64bitOpenFunction; in unzOpenInternal()
530 us.filestream = ZOPEN64(us.z_filefunc, in unzOpenInternal()
534 if (us.filestream==NULL) in unzOpenInternal()
537 central_pos = unz64local_SearchCentralDir64(&us.z_filefunc,us.filestream); in unzOpenInternal()
540 uLong uS; in unzOpenInternal() local
543 us.isZip64 = 1; in unzOpenInternal()
545 if (ZSEEK64(us.z_filefunc, us.filestream, in unzOpenInternal()
550 if (unz64local_getLong(&us.z_filefunc, us.filestream,&uL)!=UNZ_OK) in unzOpenInternal()
554 if (unz64local_getLong64(&us.z_filefunc, us.filestream,&uL64)!=UNZ_OK) in unzOpenInternal()
558 if (unz64local_getShort(&us.z_filefunc, us.filestream,&uS)!=UNZ_OK) in unzOpenInternal()
562 if (unz64local_getShort(&us.z_filefunc, us.filestream,&uS)!=UNZ_OK) in unzOpenInternal()
566 if (unz64local_getLong(&us.z_filefunc, us.filestream,&number_disk)!=UNZ_OK) in unzOpenInternal()
570 if (unz64local_getLong(&us.z_filefunc, us.filestream,&number_disk_with_CD)!=UNZ_OK) in unzOpenInternal()
574 if (unz64local_getLong64(&us.z_filefunc, us.filestream,&us.gi.number_entry)!=UNZ_OK) in unzOpenInternal()
578 if (unz64local_getLong64(&us.z_filefunc, us.filestream,&number_entry_CD)!=UNZ_OK) in unzOpenInternal()
581 if ((number_entry_CD!=us.gi.number_entry) || in unzOpenInternal()
587 if (unz64local_getLong64(&us.z_filefunc, us.filestream,&us.size_central_dir)!=UNZ_OK) in unzOpenInternal()
592 if (unz64local_getLong64(&us.z_filefunc, us.filestream,&us.offset_central_dir)!=UNZ_OK) in unzOpenInternal()
595 us.gi.size_comment = 0; in unzOpenInternal()
599 central_pos = unz64local_SearchCentralDir(&us.z_filefunc,us.filestream); in unzOpenInternal()
603 us.isZip64 = 0; in unzOpenInternal()
605 if (ZSEEK64(us.z_filefunc, us.filestream, in unzOpenInternal()
610 if (unz64local_getLong(&us.z_filefunc, us.filestream,&uL)!=UNZ_OK) in unzOpenInternal()
614 if (unz64local_getShort(&us.z_filefunc, us.filestream,&number_disk)!=UNZ_OK) in unzOpenInternal()
618 if (unz64local_getShort(&us.z_filefunc, us.filestream,&number_disk_with_CD)!=UNZ_OK) in unzOpenInternal()
622 if (unz64local_getShort(&us.z_filefunc, us.filestream,&uL)!=UNZ_OK) in unzOpenInternal()
624 us.gi.number_entry = uL; in unzOpenInternal()
627 if (unz64local_getShort(&us.z_filefunc, us.filestream,&uL)!=UNZ_OK) in unzOpenInternal()
631 if ((number_entry_CD!=us.gi.number_entry) || in unzOpenInternal()
637 if (unz64local_getLong(&us.z_filefunc, us.filestream,&uL)!=UNZ_OK) in unzOpenInternal()
639 us.size_central_dir = uL; in unzOpenInternal()
643 if (unz64local_getLong(&us.z_filefunc, us.filestream,&uL)!=UNZ_OK) in unzOpenInternal()
645 us.offset_central_dir = uL; in unzOpenInternal()
648 if (unz64local_getShort(&us.z_filefunc, us.filestream,&us.gi.size_comment)!=UNZ_OK) in unzOpenInternal()
652 if ((central_pos<us.offset_central_dir+us.size_central_dir) && in unzOpenInternal()
658 ZCLOSE64(us.z_filefunc, us.filestream); in unzOpenInternal()
662 us.byte_before_the_zipfile = central_pos - in unzOpenInternal()
663 (us.offset_central_dir+us.size_central_dir); in unzOpenInternal()
664 us.central_pos = central_pos; in unzOpenInternal()
665 us.pfile_in_zip_read = NULL; in unzOpenInternal()
666 us.encrypted = 0; in unzOpenInternal()
672 *s=us; in unzOpenInternal()
737 unz64_s us; in unzOpenFile() local
750 us.z_filefunc.zseek32_file = NULL; in unzOpenFile()
751 us.z_filefunc.ztell32_file = NULL; in unzOpenFile()
752 fill_fopen64_filefunc(&us.z_filefunc.zfile_func64); in unzOpenFile()
753 us.is64bitOpenFunction = 0; in unzOpenFile()
755 us.filestream = inputfile; in unzOpenFile()
757 if (us.filestream == NULL) { in unzOpenFile()
761 central_pos = unz64local_SearchCentralDir64(&us.z_filefunc, us.filestream); in unzOpenFile()
763 uLong uS; in unzOpenFile() local
766 us.isZip64 = 1; in unzOpenFile()
768 if (ZSEEK64(us.z_filefunc, us.filestream, central_pos, ZLIB_FILEFUNC_SEEK_SET) != 0) { in unzOpenFile()
773 if (unz64local_getLong(&us.z_filefunc, us.filestream, &uL) != UNZ_OK) { in unzOpenFile()
778 if (unz64local_getLong64(&us.z_filefunc, us.filestream, &uL64) != UNZ_OK) { in unzOpenFile()
783 if (unz64local_getShort(&us.z_filefunc, us.filestream, &uS) != UNZ_OK) { in unzOpenFile()
788 if (unz64local_getShort(&us.z_filefunc, us.filestream, &uS) != UNZ_OK) { in unzOpenFile()
793 if (unz64local_getLong(&us.z_filefunc, us.filestream, &number_disk) != UNZ_OK) { in unzOpenFile()
798 if (unz64local_getLong(&us.z_filefunc, us.filestream, &number_disk_with_CD) != UNZ_OK) { in unzOpenFile()
803 if (unz64local_getLong64(&us.z_filefunc, us.filestream, &us.gi.number_entry) != UNZ_OK) { in unzOpenFile()
808 if (unz64local_getLong64(&us.z_filefunc, us.filestream, &number_entry_CD) != UNZ_OK) { in unzOpenFile()
812 … if ((number_entry_CD != us.gi.number_entry) || (number_disk_with_CD != 0) || (number_disk != 0)) { in unzOpenFile()
817 if (unz64local_getLong64(&us.z_filefunc, us.filestream, &us.size_central_dir) != UNZ_OK) { in unzOpenFile()
823 if (unz64local_getLong64(&us.z_filefunc, us.filestream, &us.offset_central_dir) != UNZ_OK) { in unzOpenFile()
827 us.gi.size_comment = 0; in unzOpenFile()
830 central_pos = unz64local_SearchCentralDir(&us.z_filefunc, us.filestream); in unzOpenFile()
835 us.isZip64 = 0; in unzOpenFile()
837 if (ZSEEK64(us.z_filefunc, us.filestream, central_pos, ZLIB_FILEFUNC_SEEK_SET) != 0) { in unzOpenFile()
842 if (unz64local_getLong(&us.z_filefunc, us.filestream, &uL) != UNZ_OK) { in unzOpenFile()
847 if (unz64local_getShort(&us.z_filefunc, us.filestream, &number_disk) != UNZ_OK) { in unzOpenFile()
852 if (unz64local_getShort(&us.z_filefunc, us.filestream, &number_disk_with_CD) != UNZ_OK) { in unzOpenFile()
857 if (unz64local_getShort(&us.z_filefunc, us.filestream, &uL) != UNZ_OK) { in unzOpenFile()
860 us.gi.number_entry = uL; in unzOpenFile()
863 if (unz64local_getShort(&us.z_filefunc, us.filestream, &uL) != UNZ_OK) { in unzOpenFile()
868 … if ((number_entry_CD != us.gi.number_entry) || (number_disk_with_CD != 0) || (number_disk != 0)) { in unzOpenFile()
873 if (unz64local_getLong(&us.z_filefunc, us.filestream, &uL) != UNZ_OK) { in unzOpenFile()
876 us.size_central_dir = uL; in unzOpenFile()
879 if (unz64local_getLong(&us.z_filefunc, us.filestream, &uL) != UNZ_OK) { in unzOpenFile()
882 us.offset_central_dir = uL; in unzOpenFile()
885 if (unz64local_getShort(&us.z_filefunc, us.filestream, &us.gi.size_comment) != UNZ_OK) { in unzOpenFile()
890 if ((central_pos < us.offset_central_dir + us.size_central_dir) && (err == UNZ_OK)) { in unzOpenFile()
895 ZCLOSE64(us.z_filefunc, us.filestream); in unzOpenFile()
899 us.byte_before_the_zipfile = central_pos - (us.offset_central_dir + us.size_central_dir); in unzOpenFile()
900 us.central_pos = central_pos; in unzOpenFile()
901 us.pfile_in_zip_read = NULL; in unzOpenFile()
902 us.encrypted = 0; in unzOpenFile()
906 *s = us; in unzOpenFile()