Lines Matching defs:uf
252 static int do_list(unzFile uf)
258 err = unzGetGlobalInfo64(uf,&gi);
272 err = unzGetCurrentFileInfo64(uf,&file_info,filename_inzip,sizeof(filename_inzip),NULL,0,NULL,0);
330 err = unzGoToNextFile(uf);
343 static int do_extract_currentfile(unzFile uf,
357 err = unzGetCurrentFileInfo64(uf,&file_info,filename_inzip,sizeof(filename_inzip),NULL,0,NULL,0);
423 err = unzOpenCurrentFilePassword(uf,password);
494 err = unzReadCurrentFile(uf,buf,size_buf);
523 err = unzCloseCurrentFile (uf);
531 unzCloseCurrentFile(uf); /* don't lose the error */
540 static int do_extract(unzFile uf, int opt_extract_without_path, int opt_overwrite, const char* password)
546 err = unzGetGlobalInfo64(uf,&gi);
554 if (do_extract_currentfile(uf,&opt_extract_without_path,
561 err = unzGoToNextFile(uf);
573 static int do_extract_onefile(unzFile uf,
579 if (unzLocateFile(uf,filename,CASESENSITIVITY)!=UNZ_OK)
585 if (do_extract_currentfile(uf,&opt_extract_without_path,
612 unzFile uf = NULL;
691 uf = unzOpen2_64(zipfilename,&ffunc);
693 uf = unzOpen64(zipfilename);
695 if (uf == NULL)
699 uf = unzOpen2_64(filename_try,&ffunc);
701 uf = unzOpen64(filename_try);
706 if (uf == NULL)
714 ret_value = do_list(uf);
729 ret_value = do_extract(uf, opt_do_extract_withoutpath, opt_overwrite, password);
733 ret_value = do_extract_onefile(uf, filename_to_extract, opt_do_extract_withoutpath, opt_overwrite, password);
737 unzClose(uf);