Classes | Defines | Typedefs | Functions | Variables
unzip.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "zlib.h"
#include "unzip.h"
#include <errno.h>
Include dependency graph for unzip.c:

Go to the source code of this file.

Classes

struct  file_in_zip64_read_info_s
struct  unz64_s
struct  unz_file_info64_internal_s

Defines

#define ALLOC(size)   (malloc(size))
#define BUFREADCOMMENT   (0x400)
#define CASESENSITIVITYDEFAULT_NO
#define CASESENSITIVITYDEFAULTVALUE   2
#define local   static
#define NOUNCRYPT
#define SIZECENTRALDIRITEM   (0x2e)
#define SIZEZIPLOCALHEADER   (0x1e)
#define STRCMPCASENOSENTIVEFUNCTION   strcmpcasenosensitive_internal
#define TRYFREE(p)   {if (p) free(p);}
#define UNZ_BUFSIZE   (16384)
#define UNZ_MAXFILENAMEINZIP   (256)

Typedefs

typedef struct
unz_file_info64_internal_s 
unz_file_info64_internal

Functions

local int unz64local_getByte OF ((const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, int *pi))
local int unz64local_getShort OF ((const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, uLong *pX))
local int unz64local_getLong64 OF ((const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, ZPOS64_T *pX))
local ZPOS64_T
unz64local_SearchCentralDir 
OF ((const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream))
local int
unz64local_GetCurrentFileInfoInternal 
OF ((unzFile file, unz_file_info64 *pfile_info, unz_file_info64_internal *pfile_info_internal, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize))
local int strcmpcasenosensitive_internal (const char *fileName1, const char *fileName2)
local int unz64local_CheckCurrentFileCoherencyHeader (unz64_s *s, uInt *piSizeVar, ZPOS64_T *poffset_local_extrafield, uInt *psize_local_extrafield)
local void unz64local_DosDateToTmuDate (ZPOS64_T ulDosDate, tm_unz *ptm)
local int unz64local_getByte (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, int *pi)
local int unz64local_GetCurrentFileInfoInternal (unzFile file, unz_file_info64 *pfile_info, unz_file_info64_internal *pfile_info_internal, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize)
local int unz64local_getLong (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, uLong *pX)
local int unz64local_getLong64 (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, ZPOS64_T *pX)
local int unz64local_getShort (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, uLong *pX)
local ZPOS64_T unz64local_SearchCentralDir (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream)
local ZPOS64_T unz64local_SearchCentralDir64 (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream)
int ZEXPORT unzClose (unzFile file)
int ZEXPORT unzCloseCurrentFile (unzFile file)
int ZEXPORT unzeof (unzFile file)
int ZEXPORT unzGetCurrentFileInfo (unzFile file, unz_file_info *pfile_info, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize)
int ZEXPORT unzGetCurrentFileInfo64 (unzFile file, unz_file_info64 *pfile_info, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize)
ZPOS64_T ZEXPORT unzGetCurrentFileZStreamPos64 (unzFile file)
int ZEXPORT unzGetFilePos (unzFile file, unz_file_pos *file_pos)
int ZEXPORT unzGetFilePos64 (unzFile file, unz64_file_pos *file_pos)
int ZEXPORT unzGetGlobalComment (unzFile file, char *szComment, uLong uSizeBuf)
int ZEXPORT unzGetGlobalInfo (unzFile file, unz_global_info *pglobal_info32)
int ZEXPORT unzGetGlobalInfo64 (unzFile file, unz_global_info64 *pglobal_info)
int ZEXPORT unzGetLocalExtrafield (unzFile file, voidp buf, unsigned len)
uLong ZEXPORT unzGetOffset (unzFile file)
ZPOS64_T ZEXPORT unzGetOffset64 (unzFile file)
int ZEXPORT unzGoToFilePos (unzFile file, unz_file_pos *file_pos)
int ZEXPORT unzGoToFilePos64 (unzFile file, const unz64_file_pos *file_pos)
int ZEXPORT unzGoToFirstFile (unzFile file)
int ZEXPORT unzGoToNextFile (unzFile file)
int ZEXPORT unzLocateFile (unzFile file, const char *szFileName, int iCaseSensitivity)
unzFile ZEXPORT unzOpen (const char *path)
unzFile ZEXPORT unzOpen2 (const char *path, zlib_filefunc_def *pzlib_filefunc32_def)
unzFile ZEXPORT unzOpen2_64 (const void *path, zlib_filefunc64_def *pzlib_filefunc_def)
unzFile ZEXPORT unzOpen64 (const void *path)
int ZEXPORT unzOpenCurrentFile (unzFile file)
int ZEXPORT unzOpenCurrentFile2 (unzFile file, int *method, int *level, int raw)
int ZEXPORT unzOpenCurrentFile3 (unzFile file, int *method, int *level, int raw, const char *password)
int ZEXPORT unzOpenCurrentFilePassword (unzFile file, const char *password)
local unzFile unzOpenInternal (const void *path, zlib_filefunc64_32_def *pzlib_filefunc64_32_def, int is64bitOpenFunction)
int ZEXPORT unzReadCurrentFile (unzFile file, voidp buf, unsigned len)
int ZEXPORT unzSetOffset (unzFile file, uLong pos)
int ZEXPORT unzSetOffset64 (unzFile file, ZPOS64_T pos)
int ZEXPORT unzStringFileNameCompare (const char *fileName1, const char *fileName2, int iCaseSensitivity)
z_off_t ZEXPORT unztell (unzFile file)
ZPOS64_T ZEXPORT unztell64 (unzFile file)

Variables

const char unz_copyright [] = " unzip 1.01 Copyright 1998-2004 Gilles Vollant - http://www.winimage.com/zLibDll"

Define Documentation

#define ALLOC (   size)    (malloc(size))

Definition at line 112 of file unzip.c.

#define BUFREADCOMMENT   (0x400)

Definition at line 405 of file unzip.c.

Definition at line 98 of file unzip.c.

Definition at line 372 of file unzip.c.

#define local   static

Definition at line 91 of file unzip.c.

#define NOUNCRYPT

Definition at line 72 of file unzip.c.

#define SIZECENTRALDIRITEM   (0x2e)

Definition at line 118 of file unzip.c.

#define SIZEZIPLOCALHEADER   (0x1e)

Definition at line 119 of file unzip.c.

Definition at line 378 of file unzip.c.

#define TRYFREE (   p)    {if (p) free(p);}

Definition at line 115 of file unzip.c.

#define UNZ_BUFSIZE   (16384)

Definition at line 104 of file unzip.c.

#define UNZ_MAXFILENAMEINZIP   (256)

Definition at line 108 of file unzip.c.


Typedef Documentation


Function Documentation

local int unz64local_getByte OF ( (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, int *pi)  )
local int zip64local_getLong OF ( (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, uLong *pX)  )
local int unz64local_getLong64 OF ( (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, ZPOS64_T *pX)  )
local ZPOS64_T zip64local_SearchCentralDir64 OF ( (const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream)  )
local int unz64local_GetCurrentFileInfoInternal OF ( (unzFile file, unz_file_info64 *pfile_info, unz_file_info64_internal *pfile_info_internal, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize)  )
local int strcmpcasenosensitive_internal ( const char *  fileName1,
const char *  fileName2 
)

Definition at line 349 of file unzip.c.

local int unz64local_CheckCurrentFileCoherencyHeader ( unz64_s s,
uInt *  piSizeVar,
ZPOS64_T poffset_local_extrafield,
uInt *  psize_local_extrafield 
)

Definition at line 1385 of file unzip.c.

local void unz64local_DosDateToTmuDate ( ZPOS64_T  ulDosDate,
tm_unz ptm 
)

Definition at line 852 of file unzip.c.

local int unz64local_getByte ( const zlib_filefunc64_32_def pzlib_filefunc_def,
voidpf  filestream,
int pi 
)

Definition at line 212 of file unzip.c.

local int unz64local_GetCurrentFileInfoInternal ( unzFile  file,
unz_file_info64 pfile_info,
unz_file_info64_internal pfile_info_internal,
char *  szFileName,
uLong  fileNameBufferSize,
void *  extraField,
uLong  extraFieldBufferSize,
char *  szComment,
uLong  commentBufferSize 
)

Definition at line 879 of file unzip.c.

local int unz64local_getLong ( const zlib_filefunc64_32_def pzlib_filefunc_def,
voidpf  filestream,
uLong pX 
)

Definition at line 266 of file unzip.c.

local int unz64local_getLong64 ( const zlib_filefunc64_32_def pzlib_filefunc_def,
voidpf  filestream,
ZPOS64_T pX 
)

Definition at line 302 of file unzip.c.

local int unz64local_getShort ( const zlib_filefunc64_32_def pzlib_filefunc_def,
voidpf  filestream,
uLong pX 
)

Definition at line 239 of file unzip.c.

local ZPOS64_T unz64local_SearchCentralDir ( const zlib_filefunc64_32_def pzlib_filefunc_def,
voidpf  filestream 
)

Definition at line 413 of file unzip.c.

local ZPOS64_T unz64local_SearchCentralDir64 ( const zlib_filefunc64_32_def pzlib_filefunc_def,
voidpf  filestream 
)

Definition at line 478 of file unzip.c.

int ZEXPORT unzClose ( unzFile  file)

Definition at line 808 of file unzip.c.

int ZEXPORT unzCloseCurrentFile ( unzFile  file)

Definition at line 2004 of file unzip.c.

int ZEXPORT unzeof ( unzFile  file)

Definition at line 1924 of file unzip.c.

int ZEXPORT unzGetCurrentFileInfo ( unzFile  file,
unz_file_info pfile_info,
char *  szFileName,
uLong  fileNameBufferSize,
void *  extraField,
uLong  extraFieldBufferSize,
char *  szComment,
uLong  commentBufferSize 
)

Definition at line 1136 of file unzip.c.

int ZEXPORT unzGetCurrentFileInfo64 ( unzFile  file,
unz_file_info64 pfile_info,
char *  szFileName,
uLong  fileNameBufferSize,
void *  extraField,
uLong  extraFieldBufferSize,
char *  szComment,
uLong  commentBufferSize 
)

Definition at line 1124 of file unzip.c.

Addition for GDAL : START

Definition at line 1658 of file unzip.c.

int ZEXPORT unzGetFilePos ( unzFile  file,
unz_file_pos file_pos 
)

Definition at line 1324 of file unzip.c.

int ZEXPORT unzGetFilePos64 ( unzFile  file,
unz64_file_pos file_pos 
)

Definition at line 1308 of file unzip.c.

int ZEXPORT unzGetGlobalComment ( unzFile  file,
char *  szComment,
uLong  uSizeBuf 
)

Definition at line 2051 of file unzip.c.

int ZEXPORT unzGetGlobalInfo ( unzFile  file,
unz_global_info pglobal_info32 
)

Definition at line 838 of file unzip.c.

int ZEXPORT unzGetGlobalInfo64 ( unzFile  file,
unz_global_info64 pglobal_info 
)

Definition at line 828 of file unzip.c.

int ZEXPORT unzGetLocalExtrafield ( unzFile  file,
voidp  buf,
unsigned  len 
)

Definition at line 1956 of file unzip.c.

uLong ZEXPORT unzGetOffset ( unzFile  file)

Definition at line 2094 of file unzip.c.

ZPOS64_T ZEXPORT unzGetOffset64 ( unzFile  file)

Definition at line 2079 of file unzip.c.

int ZEXPORT unzGoToFilePos ( unzFile  file,
unz_file_pos file_pos 
)

Definition at line 1360 of file unzip.c.

int ZEXPORT unzGoToFilePos64 ( unzFile  file,
const unz64_file_pos file_pos 
)

Definition at line 1338 of file unzip.c.

int ZEXPORT unzGoToFirstFile ( unzFile  file)

Definition at line 1178 of file unzip.c.

int ZEXPORT unzGoToNextFile ( unzFile  file)

Definition at line 1199 of file unzip.c.

int ZEXPORT unzLocateFile ( unzFile  file,
const char *  szFileName,
int  iCaseSensitivity 
)

Definition at line 1232 of file unzip.c.

unzFile ZEXPORT unzOpen ( const char *  path)

Definition at line 793 of file unzip.c.

unzFile ZEXPORT unzOpen2 ( const char *  path,
zlib_filefunc_def pzlib_filefunc32_def 
)

Definition at line 765 of file unzip.c.

unzFile ZEXPORT unzOpen2_64 ( const void *  path,
zlib_filefunc64_def pzlib_filefunc_def 
)

Definition at line 778 of file unzip.c.

unzFile ZEXPORT unzOpen64 ( const void *  path)

Definition at line 798 of file unzip.c.

int ZEXPORT unzOpenCurrentFile ( unzFile  file)

Definition at line 1641 of file unzip.c.

int ZEXPORT unzOpenCurrentFile2 ( unzFile  file,
int method,
int level,
int  raw 
)

Definition at line 1651 of file unzip.c.

int ZEXPORT unzOpenCurrentFile3 ( unzFile  file,
int method,
int level,
int  raw,
const char *  password 
)

Definition at line 1472 of file unzip.c.

int ZEXPORT unzOpenCurrentFilePassword ( unzFile  file,
const char *  password 
)

Definition at line 1646 of file unzip.c.

local unzFile unzOpenInternal ( const void *  path,
zlib_filefunc64_32_def pzlib_filefunc64_32_def,
int  is64bitOpenFunction 
)

Definition at line 584 of file unzip.c.

int ZEXPORT unzReadCurrentFile ( unzFile  file,
voidp  buf,
unsigned  len 
)

Addition for GDAL : END

Definition at line 1684 of file unzip.c.

int ZEXPORT unzSetOffset ( unzFile  file,
uLong  pos 
)

Definition at line 2122 of file unzip.c.

int ZEXPORT unzSetOffset64 ( unzFile  file,
ZPOS64_T  pos 
)

Definition at line 2104 of file unzip.c.

int ZEXPORT unzStringFileNameCompare ( const char *  fileName1,
const char *  fileName2,
int  iCaseSensitivity 
)

Definition at line 390 of file unzip.c.

z_off_t ZEXPORT unztell ( unzFile  file)

Definition at line 1889 of file unzip.c.

ZPOS64_T ZEXPORT unztell64 ( unzFile  file)

Definition at line 1904 of file unzip.c.


Variable Documentation

const char unz_copyright[] = " unzip 1.01 Copyright 1998-2004 Gilles Vollant - http://www.winimage.com/zLibDll"

Definition at line 122 of file unzip.c.



re_object_recorder
Author(s): Andreas Koch
autogenerated on Sun Jan 5 2014 11:39:13