Lines Matching defs:uf
231 static int do_list(unzFile uf) {
236 err = unzGetGlobalInfo64(uf,&gi);
248 err = unzGetCurrentFileInfo64(uf,&file_info,filename_inzip,sizeof(filename_inzip),NULL,0,NULL,0);
294 err = unzGoToNextFile(uf);
307 static int do_extract_currentfile(unzFile uf, const int* popt_extract_without_path, int* popt_overwrite, const char* password) {
317 err = unzGetCurrentFileInfo64(uf,&file_info,filename_inzip,sizeof(filename_inzip),NULL,0,NULL,0);
373 err = unzOpenCurrentFilePassword(uf,password);
438 err = unzReadCurrentFile(uf,buf,size_buf);
463 err = unzCloseCurrentFile (uf);
470 unzCloseCurrentFile(uf); /* don't lose the error */
478 static int do_extract(unzFile uf, int opt_extract_without_path, int opt_overwrite, const char* password) {
483 err = unzGetGlobalInfo64(uf,&gi);
489 if (do_extract_currentfile(uf,&opt_extract_without_path,
496 err = unzGoToNextFile(uf);
508 static int do_extract_onefile(unzFile uf, const char* filename, int opt_extract_without_path, int opt_overwrite, const char* password) {
509 if (unzLocateFile(uf,filename,CASESENSITIVITY)!=UNZ_OK)
515 if (do_extract_currentfile(uf,&opt_extract_without_path,
537 unzFile uf=NULL;
602 uf = unzOpen2_64(zipfilename,&ffunc);
604 uf = unzOpen64(zipfilename);
606 if (uf==NULL)
610 uf = unzOpen2_64(filename_try,&ffunc);
612 uf = unzOpen64(filename_try);
617 if (uf==NULL)
625 ret_value = do_list(uf);
639 ret_value = do_extract(uf, opt_do_extract_withoutpath, opt_overwrite, password);
641 ret_value = do_extract_onefile(uf, filename_to_extract, opt_do_extract_withoutpath, opt_overwrite, password);
644 unzClose(uf);