Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "zipint.h"
#include "zip_source_file.h"
Go to the source code of this file.
Functions | |
static zip_int64_t | read_file (void *state, void *data, zip_uint64_t len, zip_source_cmd_t cmd) |
static void | zip_source_file_stat_init (zip_source_file_stat_t *st) |
zip_source_t * | zip_source_file_common_new (const char *fname, void *file, zip_uint64_t start, zip_int64_t len, const zip_stat_t *st, zip_source_file_operations_t *ops, void *ops_userdata, zip_error_t *error) |
|
static |
Definition at line 204 of file zip_source_file_common.c.
References args, cmd, EOVERFLOW, ctx::error, free(), i, len, memcpy(), n, NULL, SEEK_SET, ZIP_ER_INTERNAL, ZIP_ER_INVAL, ZIP_ER_OPNOTSUPP, ZIP_ER_READ, ZIP_ER_SEEK, zip_error_code_system(), zip_error_code_zip(), zip_error_set(), zip_error_to_data(), ZIP_INT64_MAX, ZIP_MIN, ZIP_SOURCE_ACCEPT_EMPTY, ZIP_SOURCE_BEGIN_WRITE, ZIP_SOURCE_BEGIN_WRITE_CLONING, ZIP_SOURCE_CLOSE, ZIP_SOURCE_COMMIT_WRITE, ZIP_SOURCE_ERROR, ZIP_SOURCE_FREE, ZIP_SOURCE_GET_ARGS, ZIP_SOURCE_GET_FILE_ATTRIBUTES, ZIP_SOURCE_OPEN, ZIP_SOURCE_READ, ZIP_SOURCE_REMOVE, ZIP_SOURCE_ROLLBACK_WRITE, ZIP_SOURCE_SEEK, zip_source_seek_compute_offset(), ZIP_SOURCE_SEEK_WRITE, ZIP_SOURCE_STAT, ZIP_SOURCE_SUPPORTS, ZIP_SOURCE_TELL, ZIP_SOURCE_TELL_WRITE, and ZIP_SOURCE_WRITE.
Referenced by zip_source_file_common_new().
zip_source_t* zip_source_file_common_new | ( | const char * | fname, |
void * | file, | ||
zip_uint64_t | start, | ||
zip_int64_t | len, | ||
const zip_stat_t * | st, | ||
zip_source_file_operations_t * | ops, | ||
void * | ops_userdata, | ||
zip_error_t * | error | ||
) |
Definition at line 53 of file zip_source_file_common.c.
References _zip_error_copy(), ENOENT, ctx::error, error(), file, create_tags_rz::fname, free(), len, malloc(), memcpy(), NULL, ops, read_file(), sb, start, ZIP_ER_INTERNAL, ZIP_ER_INVAL, ZIP_ER_MEMORY, ZIP_ER_READ, zip_error_init(), zip_error_set(), zip_file_attributes_init(), ZIP_INT64_MAX, ZIP_SOURCE_ACCEPT_EMPTY, ZIP_SOURCE_BEGIN_WRITE, ZIP_SOURCE_BEGIN_WRITE_CLONING, zip_source_file_stat_init(), zip_source_function_create(), ZIP_SOURCE_GET_FILE_ATTRIBUTES, zip_source_make_command_bitmap(), ZIP_SOURCE_MAKE_COMMAND_BITMASK, ZIP_SOURCE_SUPPORTS, ZIP_SOURCE_SUPPORTS_READABLE, ZIP_SOURCE_SUPPORTS_SEEKABLE, ZIP_SOURCE_SUPPORTS_WRITABLE, ZIP_SOURCE_TELL, zip_stat_init(), ZIP_STAT_MTIME, ZIP_STAT_NAME, and ZIP_STAT_SIZE.
Referenced by zip_source_file_create(), zip_source_filep_create(), zip_source_win32a_create(), zip_source_win32handle_create(), and zip_source_win32w_create().
|
static |
Definition at line 45 of file zip_source_file_common.c.
References zip_source_file_stat::exists, zip_source_file_stat::mtime, NULL, zip_source_file_stat::regular_file, zip_source_file_stat::size, and time.
Referenced by zip_source_file_common_new().