Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Functions
minizip.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <utime.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "zip.h"

Go to the source code of this file.

Macros

#define __USE_FILE_OFFSET64
 
#define __USE_LARGEFILE64
 
#define _LARGEFILE64_SOURCE
 
#define _FILE_OFFSET_BIT   64
 
#define FOPEN_FUNC(filename, mode)   fopen64(filename, mode)
 
#define FTELLO_FUNC(stream)   ftello64(stream)
 
#define FSEEKO_FUNC(stream, offset, origin)   fseeko64(stream, offset, origin)
 
#define WRITEBUFFERSIZE   (16384)
 
#define MAXFILENAME   (256)
 

Functions

uLong filetime (char *f, tm_zip *tmzip, uLong *dt)
 
int check_exist_file (char *filename) const
 
void do_banner ()
 
void do_help ()
 
int getFileCrc (const char *filenameinzip, void *buf, unsigned long size_buf, unsigned long *result_crc)
 
int isLargeFile (const char *filename)
 
int main (int argc, argv)
 

Macro Definition Documentation

◆ __USE_FILE_OFFSET64

#define __USE_FILE_OFFSET64

Definition at line 18 of file minizip.c.

◆ __USE_LARGEFILE64

#define __USE_LARGEFILE64

Definition at line 21 of file minizip.c.

◆ _FILE_OFFSET_BIT

#define _FILE_OFFSET_BIT   64

Definition at line 27 of file minizip.c.

◆ _LARGEFILE64_SOURCE

#define _LARGEFILE64_SOURCE

Definition at line 24 of file minizip.c.

◆ FOPEN_FUNC

#define FOPEN_FUNC (   filename,
  mode 
)    fopen64(filename, mode)

Definition at line 37 of file minizip.c.

Referenced by check_exist_file(), getFileCrc(), isLargeFile(), and main().

◆ FSEEKO_FUNC

#define FSEEKO_FUNC (   stream,
  offset,
  origin 
)    fseeko64(stream, offset, origin)

Definition at line 39 of file minizip.c.

Referenced by isLargeFile().

◆ FTELLO_FUNC

#define FTELLO_FUNC (   stream)    ftello64(stream)

Definition at line 38 of file minizip.c.

Referenced by isLargeFile().

◆ MAXFILENAME

#define MAXFILENAME   (256)

Definition at line 71 of file minizip.c.

Referenced by main().

◆ WRITEBUFFERSIZE

#define WRITEBUFFERSIZE   (16384)

Definition at line 70 of file minizip.c.

Referenced by main().

Function Documentation

◆ check_exist_file()

int check_exist_file ( char*  filename) const

Definition at line 153 of file minizip.c.

References FOPEN_FUNC, and NULL.

Referenced by main().

◆ do_banner()

void do_banner ( )

Definition at line 166 of file minizip.c.

Referenced by main().

◆ do_help()

void do_help ( )

Definition at line 172 of file minizip.c.

Referenced by main().

◆ filetime()

uLong filetime ( char *  f,
tm_zip tmzip,
uLong dt 
)

Definition at line 140 of file minizip.c.

Referenced by main(), and unzRepair().

◆ getFileCrc()

int getFileCrc ( const char *  filenameinzip,
void buf,
unsigned long  size_buf,
unsigned long result_crc 
)

Definition at line 185 of file minizip.c.

References crc32(), FOPEN_FUNC, int, NULL, ZIP_ERRNO, and ZIP_OK.

Referenced by main().

◆ isLargeFile()

int isLargeFile ( const char *  filename)

Definition at line 224 of file minizip.c.

References FOPEN_FUNC, FSEEKO_FUNC, FTELLO_FUNC, NULL, and SEEK_END.

Referenced by main().

◆ main()

int main ( int  argc,
argv   
)