Lines Matching refs:file

4  * or more contributor license agreements.  See the NOTICE file
6 * regarding copyright ownership. The ASF licenses this file
8 * "License"); you may not use this file except in compliance
39 See the accompanying file LICENSE, version 2000-Apr-09 or later
55 Roger Schlafly, described by Phil Katz in the file appnote.txt. This
56 file (appnote.txt) is distributed with the PKZIP program (even in the
117 /* unz_file_info_interntal contain internal info about a file in zipfile*/
124 /* file_in_zip_read_info_s contain internal information about a file in zipfile,
158 uLong num_file; /* number of the current file in the zipfile*/
159 uLong pos_in_central_dir; /* pos of the current file in the central dir*/
160 uLong current_file_ok; /* flag about the usability of the current file*/
167 unz_file_info cur_file_info; /* public info about the current file in zip*/
170 file if we are decompressing it */
178 for end of file.
406 Open a Zip file. path contain the full pathname (by example,
409 If the zipfile cannot be opened (file doesn't exist or in not valid), the
528 extern int ZEXPORT unzClose (file)
529 unzFile file;
532 if (file==NULL)
534 s=(unz_s*)file;
537 unzCloseCurrentFile(file);
549 extern int ZEXPORT unzGetGlobalInfo (file,pglobal_info)
550 unzFile file;
554 if (file==NULL)
556 s=(unz_s*)file;
581 Get Info about the current file in the zipfile, with internal only info
583 local int unzlocal_GetCurrentFileInfoInternal OF((unzFile file,
594 local int unzlocal_GetCurrentFileInfoInternal (file,
600 unzFile file;
617 if (file==NULL)
619 s=(unz_s*)file;
764 extern int ZEXPORT unzGetCurrentFileInfo (file,
769 unzFile file;
778 return unzlocal_GetCurrentFileInfoInternal(file,pfile_info,NULL,
785 Set the current file of the zipfile to the first file.
788 extern int ZEXPORT unzGoToFirstFile (file)
789 unzFile file;
793 if (file==NULL)
795 s=(unz_s*)file;
798 err=unzlocal_GetCurrentFileInfoInternal(file,&s->cur_file_info,
806 Set the current file of the zipfile to the next file.
808 return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest.
810 extern int ZEXPORT unzGoToNextFile (file)
811 unzFile file;
816 if (file==NULL)
818 s=(unz_s*)file;
828 err = unzlocal_GetCurrentFileInfoInternal(file,&s->cur_file_info,
837 Try locate the file szFileName in the zipfile.
841 UNZ_OK if the file is found. It becomes the current file.
842 UNZ_END_OF_LIST_OF_FILE if the file is not found
844 extern int ZEXPORT unzLocateFile (file, szFileName, iCaseSensitivity)
845 unzFile file;
852 /* We remember the 'current' position in the file so that we can jump
861 if (file==NULL)
867 s=(unz_s*)file;
877 err = unzGoToFirstFile(file);
882 err = unzGetCurrentFileInfo(file,NULL,
890 err = unzGoToNextFile(file);
894 /* We failed, so restore the state of the 'current file' to where we
912 // comprehensive file read to put the file I need in a memory.
918 uLong pos_in_zip_directory; // offset in file
919 uLong num_of_file; // # of file
923 extern int ZEXPORT unzGetFilePos(file, file_pos)
924 unzFile file;
929 if (file==NULL || file_pos==NULL)
931 s=(unz_s*)file;
941 extern int ZEXPORT unzGoToFilePos(file, file_pos)
942 unzFile file;
948 if (file==NULL || file_pos==NULL)
950 s=(unz_s*)file;
956 /* set the current file */
957 err = unzlocal_GetCurrentFileInfoInternal(file,&s->cur_file_info,
973 directory about this file
1065 Open for reading data the current file in the zipfile.
1066 If there is no error and the file is opened, the return value is UNZ_OK.
1068 extern int ZEXPORT unzOpenCurrentFile3 (file, method, level, raw, password)
1069 unzFile file;
1084 if (file==NULL)
1086 s=(unz_s*)file;
1091 unzCloseCurrentFile(file);
1186 extern int ZEXPORT unzOpenCurrentFile (file)
1187 unzFile file;
1189 return unzOpenCurrentFile3(file, NULL, NULL, 0, NULL);
1192 extern int ZEXPORT unzOpenCurrentFilePassword (file, password)
1193 unzFile file;
1196 return unzOpenCurrentFile3(file, NULL, NULL, 0, password);
1199 extern int ZEXPORT unzOpenCurrentFile2 (file,method,level,raw)
1200 unzFile file;
1205 return unzOpenCurrentFile3(file, method, level, raw, NULL);
1209 Read bytes from the current file.
1214 return 0 if the end of file was reached
1218 extern int ZEXPORT unzReadCurrentFile (file, buf, len)
1219 unzFile file;
1227 if (file==NULL)
1229 s=(unz_s*)file;
1369 extern z_off_t ZEXPORT unztell (file)
1370 unzFile file;
1374 if (file==NULL)
1376 s=(unz_s*)file;
1387 return 1 if the end of file was reached, 0 elsewhere
1389 extern int ZEXPORT unzeof (file)
1390 unzFile file;
1394 if (file==NULL)
1396 s=(unz_s*)file;
1411 Read extra field from the current file (opened by unzOpenCurrentFile)
1422 extern int ZEXPORT unzGetLocalExtrafield (file,buf,len)
1423 unzFile file;
1432 if (file==NULL)
1434 s=(unz_s*)file;
1470 Close the file in zip opened with unzipOpenCurrentFile
1471 Return UNZ_CRCERROR if all the file was read but the CRC is not good
1473 extern int ZEXPORT unzCloseCurrentFile (file)
1474 unzFile file;
1480 if (file==NULL)
1482 s=(unz_s*)file;
1516 extern int ZEXPORT unzGetGlobalComment (file, szComment, uSizeBuf)
1517 unzFile file;
1524 if (file==NULL)
1526 s=(unz_s*)file;
1548 extern uLong ZEXPORT unzGetOffset (file)
1549 unzFile file;
1553 if (file==NULL)
1555 s=(unz_s*)file;
1564 extern int ZEXPORT unzSetOffset (file, pos)
1565 unzFile file;
1571 if (file==NULL)
1573 s=(unz_s*)file;
1577 err = unzlocal_GetCurrentFileInfoInternal(file,&s->cur_file_info,