Rizin
unix-like reverse engineering framework and cli tools
|
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include "getopt.h"
#include "zip.h"
Go to the source code of this file.
Macros | |
#define | USAGE "usage: %s [-v] archive\n" |
Enumerations | |
enum | when { WHEN_NEVER , WHEN_OPEN , WHEN_READ , WHEN_CLOSE } |
Functions | |
static int | do_read (zip_t *z, const char *name, zip_flags_t flags, enum when when_ex, int ze_ex, int se_ex) |
int | main (int argc, char *argv[]) |
Variables | |
const char * | when_name [] = {"no", "zip_fopen", "zip_fread", "zip_fclose"} |
int | verbose |
const char * | progname |
enum when |
|
static |
Definition at line 168 of file fread.c.
References b, err, flags, n, NULL, printf(), progname, verbose, WHEN_CLOSE, when_name, WHEN_NEVER, WHEN_OPEN, WHEN_READ, zip_error_code_system(), zip_error_code_zip(), zip_error_fini(), zip_error_init(), zip_error_init_with_code(), zip_error_set(), zip_error_strerror(), zip_fclose(), zip_file_get_error(), zip_fopen(), zip_fread(), and zip_get_error().
Referenced by main().
Definition at line 57 of file fread.c.
References argv, c, do_read(), error(), test-lz4-list::exit, fail, getopt(), setup::idx, NULL, optind, progname, USAGE, verbose, WHEN_NEVER, WHEN_OPEN, WHEN_READ, zip_close(), zip_delete(), ZIP_ER_CHANGED, ZIP_ER_CRC, ZIP_ER_INVAL, ZIP_ER_NOENT, ZIP_ER_NOPASSWD, ZIP_ER_WRONGPASSWD, ZIP_ER_ZLIB, zip_error_fini(), zip_error_init_with_code(), zip_error_strerror(), zip_file_add(), ZIP_FL_COMPRESSED, ZIP_FL_UNCHANGED, zip_name_locate(), zip_open(), zip_replace(), zip_set_default_password(), zip_source_buffer(), zip_strerror(), and zip_unchange_all().