Visualization Library 2.0.0-b5
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
#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 "unzip.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 | CASESENSITIVITY (0) |
#define | WRITEBUFFERSIZE (8192) |
#define | MAXFILENAME (256) |
Functions | |
void | change_file_date (char *filename, uLong dosdate, tm_unz tmu_date) const |
int | mymkdir (char *dirname) const |
int | makedir (char *newdir) |
void | do_banner () |
void | do_help () |
void | Display64BitsSize (ZPOS64_T n, int size_char) |
int | do_list (unzFile uf) |
int | do_extract_currentfile (unzFile uf, const int *popt_extract_without_path, int *popt_overwrite, const char *password) |
int | do_extract (unzFile uf, int opt_extract_without_path, int opt_overwrite, const char *password) |
int | do_extract_onefile (unzFile uf, const char *filename, int opt_extract_without_path, int opt_overwrite, const char *password) |
int | main (int argc, argv) |
#define CASESENSITIVITY (0) |
Definition at line 60 of file miniunz.c.
Referenced by do_extract_onefile().
Definition at line 36 of file miniunz.c.
Referenced by do_extract_currentfile().
#define WRITEBUFFERSIZE (8192) |
Definition at line 61 of file miniunz.c.
Referenced by do_extract_currentfile().
Definition at line 83 of file miniunz.c.
References NULL, tm_unz_s::tm_hour, tm_unz_s::tm_mday, tm_unz_s::tm_min, tm_unz_s::tm_mon, tm_unz_s::tm_sec, and tm_unz_s::tm_year.
Referenced by do_extract_currentfile().
int do_extract | ( | unzFile | uf, |
int | opt_extract_without_path, | ||
int | opt_overwrite, | ||
const char* | password | ||
) |
Definition at line 475 of file miniunz.c.
References do_extract_currentfile(), i, NULL, unz_global_info64_s::number_entry, password, UNZ_OK, unzGetGlobalInfo64(), and unzGoToNextFile().
Referenced by main().
int do_extract_currentfile | ( | unzFile | uf, |
const int* | popt_extract_without_path, | ||
int* | popt_overwrite, | ||
const char* | password | ||
) |
Definition at line 312 of file miniunz.c.
References change_file_date(), unz_file_info64_s::dosDate, EXIT_FAILURE, FOPEN_FUNC, free(), makedir(), malloc(), mymkdir(), NULL, password, skip(), unz_file_info64_s::tmu_date, UNZ_ERRNO, UNZ_INTERNALERROR, UNZ_OK, unzCloseCurrentFile(), unzGetCurrentFileInfo64(), unzOpenCurrentFilePassword(), unzReadCurrentFile(), and WRITEBUFFERSIZE.
Referenced by do_extract(), and do_extract_onefile().
int do_extract_onefile | ( | unzFile | uf, |
const char* | filename, | ||
int | opt_extract_without_path, | ||
int | opt_overwrite, | ||
const char* | password | ||
) |
Definition at line 511 of file miniunz.c.
References CASESENSITIVITY, do_extract_currentfile(), password, UNZ_OK, and unzLocateFile().
Referenced by main().
Definition at line 234 of file miniunz.c.
References unz_file_info64_s::compressed_size, unz_file_info64_s::compression_method, unz_file_info64_s::crc, Display64BitsSize(), unz_file_info64_s::flag, i, NULL, unz_global_info64_s::number_entry, tm_unz_s::tm_hour, tm_unz_s::tm_mday, tm_unz_s::tm_min, tm_unz_s::tm_mon, tm_unz_s::tm_year, unz_file_info64_s::tmu_date, unz_file_info64_s::uncompressed_size, UNZ_OK, unzGetCurrentFileInfo64(), unzGetGlobalInfo64(), unzGoToNextFile(), Z_BZIP2ED, and Z_DEFLATED.
Referenced by main().
Definition at line 534 of file miniunz.c.
References do_banner(), do_extract(), do_extract_onefile(), do_help(), do_list(), fill_win32_filefunc64A(), i, MAXFILENAME, NULL, password, unzClose(), unzOpen2_64(), and unzOpen64().
int makedir | ( | char * | newdir | ) |
Definition at line 138 of file miniunz.c.
References free(), int, malloc(), mymkdir(), NULL, and UNZ_INTERNALERROR.
Referenced by do_extract_currentfile().
int mymkdir | ( | char* | dirname | ) | const |
Definition at line 124 of file miniunz.c.
Referenced by do_extract_currentfile(), and makedir().
Visualization Library 2.0.0-b5 Reference Documentation
Updated on Mon Feb 10 2020 02:44:58.
© Copyright Michele Bosi. All rights reserved.