Rizin
unix-like reverse engineering framework and cli tools
|
#include "zipint.h"
#include "zip_source_file.h"
#include "zip_source_file_stdio.h"
#include <fcntl.h>
#include <stdlib.h>
#include <sys/stat.h>
Go to the source code of this file.
Functions | |
static int | create_temp_file (zip_source_file_context_t *ctx, bool create_file) |
static zip_int64_t | _zip_stdio_op_commit_write (zip_source_file_context_t *ctx) |
static zip_int64_t | _zip_stdio_op_create_temp_output (zip_source_file_context_t *ctx) |
static bool | _zip_stdio_op_open (zip_source_file_context_t *ctx) |
static zip_int64_t | _zip_stdio_op_remove (zip_source_file_context_t *ctx) |
static void | _zip_stdio_op_rollback_write (zip_source_file_context_t *ctx) |
static char * | _zip_stdio_op_strdup (zip_source_file_context_t *ctx, const char *string) |
static zip_int64_t | _zip_stdio_op_write (zip_source_file_context_t *ctx, const void *data, zip_uint64_t len) |
ZIP_EXTERN zip_source_t * | zip_source_file (zip_t *za, const char *fname, zip_uint64_t start, zip_int64_t len) |
ZIP_EXTERN zip_source_t * | zip_source_file_create (const char *fname, zip_uint64_t start, zip_int64_t length, zip_error_t *error) |
Variables | |
static zip_source_file_operations_t | ops_stdio_named |
|
static |
Definition at line 113 of file zip_source_file_stdio_named.c.
References ctx::error, rename, ZIP_ER_RENAME, ZIP_ER_WRITE, and zip_error_set().
|
static |
Definition at line 128 of file zip_source_file_stdio_named.c.
References close, create_temp_file(), ctx::error, fd, free(), NULL, ZIP_ER_TMPOPEN, and zip_error_set().
|
static |
Definition at line 241 of file zip_source_file_stdio_named.c.
References _zip_fopen_close_on_exec(), ctx::error, NULL, ZIP_ER_OPEN, and zip_error_set().
|
static |
Definition at line 251 of file zip_source_file_stdio_named.c.
References ctx::error, ZIP_ER_REMOVE, and zip_error_set().
|
static |
Definition at line 261 of file zip_source_file_stdio_named.c.
|
static |
Definition at line 269 of file zip_source_file_stdio_named.c.
References strdup().
|
static |
Definition at line 275 of file zip_source_file_stdio_named.c.
References ctx::error, benchmark::FILE, len, ZIP_ER_WRITE, and zip_error_set().
|
static |
Definition at line 289 of file zip_source_file_stdio_named.c.
References chmod, EEXIST, test_evm::end, ENOENT, ctx::error, fchmod, fd, free(), malloc(), NULL, O_CLOEXEC, O_CREAT, O_EXCL, O_RDWR, sprintf, start, stat, value, ZIP_ER_MEMORY, ZIP_ER_TMPOPEN, zip_error_set(), and zip_random_uint32().
Referenced by _zip_stdio_op_create_temp_output().
ZIP_EXTERN zip_source_t* zip_source_file | ( | zip_t * | za, |
const char * | fname, | ||
zip_uint64_t | start, | ||
zip_int64_t | len | ||
) |
Definition at line 93 of file zip_source_file_stdio_named.c.
ZIP_EXTERN zip_source_t* zip_source_file_create | ( | const char * | fname, |
zip_uint64_t | start, | ||
zip_int64_t | length, | ||
zip_error_t * | error | ||
) |
Definition at line 102 of file zip_source_file_stdio_named.c.
Referenced by zip_source_file().
|
static |
Definition at line 71 of file zip_source_file_stdio_named.c.
Referenced by zip_source_file_create().