Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <mspack.h>
Go to the source code of this file.
Classes | |
struct | m_filename |
struct | m_file |
Macros | |
#define | MTYPE_DISKFILE (0x01) |
#define | MTYPE_STDIOFH (0x02) |
#define | MTYPE_FILEDESC (0x03) |
#define | MTYPE_MEMORY (0x04) |
Variables | |
static struct mspack_system | multi_system |
static unsigned char | memory_cab [] |
Definition at line 279 of file multifh.c.
References fn, malloc(), MTYPE_DISKFILE, and NULL.
Referenced by main().
const char* create_filename_from_handle | ( | FILE * | fh | ) |
Definition at line 318 of file multifh.c.
References m_filename::data, fn, length, malloc(), MTYPE_MEMORY, and NULL.
Referenced by main().
void free_filename | ( | const char * | filename | ) |
|
static |
Definition at line 51 of file multifh.c.
References bytes, and malloc().
Referenced by m_open_file(), and m_open_mem().
|
static |
|
static |
|
static |
|
static |
Definition at line 147 of file multifh.c.
References fn, m_open_file(), m_open_mem(), MTYPE_DISKFILE, MTYPE_FILEDESC, MTYPE_MEMORY, MTYPE_STDIOFH, and NULL.
|
static |
Definition at line 94 of file multifh.c.
References fd, fh, fn, free(), m_alloc(), MSPACK_SYS_OPEN_APPEND, MSPACK_SYS_OPEN_READ, MSPACK_SYS_OPEN_UPDATE, MSPACK_SYS_OPEN_WRITE, MTYPE_DISKFILE, MTYPE_FILEDESC, MTYPE_STDIOFH, and NULL.
Referenced by m_open().
|
static |
Definition at line 171 of file multifh.c.
References bytes, count, fh, m_copy(), and MTYPE_MEMORY.
Definition at line 211 of file multifh.c.
References fh, fseeko, MSPACK_SYS_SEEK_CUR, MSPACK_SYS_SEEK_END, MSPACK_SYS_SEEK_START, MTYPE_MEMORY, SEEK_CUR, SEEK_END, and SEEK_SET.
int main | ( | void | ) |
Definition at line 369 of file multifh.c.
References cabd, mscab_decompressor::close, create_filename(), create_filename_from_descriptor(), create_filename_from_handle(), create_filename_from_memory(), err, test-lz4-list::exit, mscab_decompressor::extract, file, mscabd_cabinet::files, free_filename(), mscab_decompressor::last_error, memory_cab, mspack_create_cab_decompressor(), mspack_destroy_cab_decompressor(), MSPACK_SYS_SELFTEST, multi_system, file::next, mscab_decompressor::open, and set_filename_printable_name().
Definition at line 333 of file multifh.c.
References fn, MTYPE_DISKFILE, MTYPE_MEMORY, and name.
Referenced by main().
|
static |
Definition at line 349 of file multifh.c.
Referenced by main().
|
static |
Definition at line 249 of file multifh.c.
Referenced by main().