Rizin
unix-like reverse engineering framework and cli tools
|
#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) const |
static int | check_exist_file (char *filename) const |
static void | do_banner () |
static void | do_help () |
static int | getFileCrc (const char *filenameinzip, void *buf, unsigned long size_buf, unsigned long *result_crc) |
static int | isLargeFile (const char *filename) |
int | main (int argc, argv) |
|
static |
Definition at line 154 of file minizip.c.
References benchmark::FILE, FOPEN_FUNC, and NULL.
Referenced by main().
|
static |
Definition at line 167 of file minizip.c.
References printf().
Referenced by main().
|
static |
Definition at line 141 of file minizip.c.
Referenced by main(), and unzRepair().
|
static |
Definition at line 186 of file minizip.c.
References crc32_z(), err, benchmark::FILE, FOPEN_FUNC, NULL, printf(), ZIP_ERRNO, and ZIP_OK.
Referenced by main().
Definition at line 225 of file minizip.c.
References benchmark::FILE, FOPEN_FUNC, FSEEKO_FUNC, FTELLO_FUNC, NULL, pos, printf(), and SEEK_END.
Referenced by main().
Definition at line 247 of file minizip.c.
References argv, c, check_exist_file(), DEF_MEM_LEVEL, do_banner(), do_help(), zip_fileinfo::dosDate, err, test-lz4-list::exit, zip_fileinfo::external_fa, benchmark::FILE, filetime(), fill_win32_filefunc64A(), FOPEN_FUNC, free(), getFileCrc(), i, int, zip_fileinfo::internal_fa, isLargeFile(), len, malloc(), MAX_WBITS, MAXFILENAME, NULL, p, printf(), tm_zip_s::tm_hour, tm_zip_s::tm_mday, tm_zip_s::tm_min, tm_zip_s::tm_mon, tm_zip_s::tm_sec, tm_zip_s::tm_year, zip_fileinfo::tmz_date, WRITEBUFFERSIZE, Z_DEFAULT_COMPRESSION, Z_DEFAULT_STRATEGY, Z_DEFLATED, ZIP_ERRNO, ZIP_INTERNALERROR, ZIP_OK, zipClose(), zipCloseFileInZip(), zipOpen2_64(), zipOpen64(), zipOpenNewFileInZip3_64(), and zipWriteInFileInZip().