Rizin
unix-like reverse engineering framework and cli tools
|
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "config.h"
#include "getopt.h"
#include "zip.h"
Go to the source code of this file.
Macros | |
#define | PROGRAM "zipmerge" |
#define | USAGE "usage: %s [-DhIiSsV] target-zip zip...\n" |
#define | OPTIONS "hVDiIsS" |
#define | CONFIRM_ALL_YES 0x001 |
#define | CONFIRM_ALL_NO 0x002 |
#define | CONFIRM_SAME_YES 0x010 |
#define | CONFIRM_SAME_NO 0x020 |
Functions | |
static int | confirm_replace (zip_t *, const char *, zip_uint64_t, zip_t *, const char *, zip_uint64_t) |
static zip_t * | merge_zip (zip_t *, const char *, const char *) |
int | main (int argc, char *argv[]) |
Variables | |
char * | progname |
char | help_head [] = PROGRAM " (" PACKAGE ") by Dieter Baron and Thomas Klausner\n\n" |
char | help [] |
char | version_string [] |
int | confirm |
zip_flags_t | name_flags |
#define CONFIRM_ALL_NO 0x002 |
Definition at line 75 of file zipmerge.c.
#define CONFIRM_ALL_YES 0x001 |
Definition at line 74 of file zipmerge.c.
#define CONFIRM_SAME_NO 0x020 |
Definition at line 77 of file zipmerge.c.
#define CONFIRM_SAME_YES 0x010 |
Definition at line 76 of file zipmerge.c.
#define OPTIONS "hVDiIsS" |
Definition at line 72 of file zipmerge.c.
#define PROGRAM "zipmerge" |
Definition at line 51 of file zipmerge.c.
Definition at line 53 of file zipmerge.c.
|
static |
Definition at line 174 of file zipmerge.c.
References confirm, CONFIRM_ALL_NO, CONFIRM_ALL_YES, CONFIRM_SAME_NO, CONFIRM_SAME_YES, zip_stat::crc, setup::line, zip_stat::name, NULL, printf(), PRIu64, progname, zip_stat::size, tolower, za, ZIP_FL_UNCHANGED, zip_stat_index(), and zip_strerror().
Referenced by merge_zip().
Definition at line 87 of file zipmerge.c.
References argv, c, confirm, CONFIRM_ALL_YES, CONFIRM_SAME_NO, CONFIRM_SAME_YES, err, error(), test-lz4-list::exit, getopt(), help, help_head, i, int, malloc(), merge_zip(), n, name_flags, NULL, optind, OPTIONS, printf(), progname, USAGE, version_string, za, zip_close(), ZIP_CREATE, zip_error_fini(), zip_error_init_with_code(), zip_error_strerror(), ZIP_FL_NOCASE, ZIP_FL_NODIR, zip_open(), and zip_strerror().
Definition at line 217 of file zipmerge.c.
References confirm_replace(), err, error(), create_tags_rz::fname, i, setup::idx, name_flags, NULL, progname, source, za, zip_add(), zip_close(), zip_error_fini(), zip_error_init_with_code(), zip_error_strerror(), zip_get_name(), zip_get_num_entries(), zip_name_locate(), zip_open(), zip_replace(), zip_source_free(), zip_source_zip(), and zip_strerror().
Referenced by main().
int confirm |
Definition at line 79 of file zipmerge.c.
Referenced by confirm_replace(), and main().
char help[] | ( | void | ) |
Definition at line 57 of file zipmerge.c.
Referenced by main().
char help_head[] = PROGRAM " (" PACKAGE ") by Dieter Baron and Thomas Klausner\n\n" |
Definition at line 55 of file zipmerge.c.
Referenced by main().
zip_flags_t name_flags |
Definition at line 80 of file zipmerge.c.
Referenced by main(), and merge_zip().
char* progname |
Definition at line 49 of file zipmerge.c.
Referenced by confirm_replace(), main(), and merge_zip().
char version_string[] |
Definition at line 68 of file zipmerge.c.
Referenced by main().