Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <mspack.h>
#include <sys/stat.h>
#include <error.h>
Go to the source code of this file.
Functions | |
static int | ensure_filepath (char *path) |
char * | create_output_name (char *fname) |
static int | sortfunc (const void *a, const void *b) |
int | main (int argc, char *argv[]) |
Variables | |
mode_t | user_umask |
char* create_output_name | ( | char * | fname | ) |
Definition at line 51 of file chmextract.c.
References create_tags_rz::fname, malloc(), out, and p.
Referenced by main().
|
static |
Ensures that all directory components in a filepath exist. New directory components are created, if necessary.
path | the filepath to check |
Definition at line 35 of file chmextract.c.
References mkdir, ok, p, path, S_ISDIR, stat, and user_umask.
Referenced by main().
Definition at line 76 of file chmextract.c.
References argv, calloc(), mschm_decompressor::close, create_output_name(), ensure_filepath(), mschm_decompressor::extract, f, file, mschmd_header::files, free(), i, mspack_create_chm_decompressor(), mspack_destroy_chm_decompressor(), MSPACK_SYS_SELFTEST, file::next, NULL, mschm_decompressor::open, printf(), qsort(), sortfunc(), umask, and user_umask.
mode_t user_umask |
Definition at line 25 of file chmextract.c.
Referenced by ensure_filepath(), and main().