Rizin
unix-like reverse engineering framework and cli tools
|
#include "zip_source_file_win32.h"
Go to the source code of this file.
Functions | |
static bool | _zip_win32_op_stat (zip_source_file_context_t *ctx, zip_source_file_stat_t *st) |
static bool | _zip_stat_win32 (zip_source_file_context_t *ctx, zip_source_file_stat_t *st, HANDLE h) |
ZIP_EXTERN zip_source_t * | zip_source_win32handle (zip_t *za, HANDLE h, zip_uint64_t start, zip_int64_t len) |
ZIP_EXTERN zip_source_t * | zip_source_win32handle_create (HANDLE h, zip_uint64_t start, zip_int64_t length, zip_error_t *error) |
void | _zip_win32_op_close (zip_source_file_context_t *ctx) |
zip_int64_t | _zip_win32_op_read (zip_source_file_context_t *ctx, void *buf, zip_uint64_t len) |
bool | _zip_win32_op_seek (zip_source_file_context_t *ctx, void *f, zip_int64_t offset, int whence) |
zip_int64_t | _zip_win32_op_tell (zip_source_file_context_t *ctx, void *f) |
int | _zip_win32_error_to_errno (DWORD win32err) |
bool | _zip_filetime_to_time_t (FILETIME ft, time_t *t) |
Variables | |
static zip_source_file_operations_t | ops_win32_read |
Definition at line 213 of file zip_source_file_win32.c.
Referenced by _zip_stat_win32(), and _zip_win32_named_op_stat().
|
static |
Definition at line 178 of file zip_source_file_win32.c.
References _zip_filetime_to_time_t(), _zip_win32_error_to_errno(), ERANGE, ctx::error, zip_source_file_stat::exists, h, zip_source_file_stat::mtime, NULL, zip_source_file_stat::regular_file, zip_source_file_stat::size, ZIP_ER_READ, and zip_error_set().
Referenced by _zip_win32_op_stat().
Definition at line 153 of file zip_source_file_win32.c.
References EACCES, EBADF, EEXIST, EINVAL, EMFILE, ENOENT, and ENOSPC.
Referenced by _zip_stat_win32(), _zip_win32_named_op_commit_write(), _zip_win32_named_op_create_temp_output(), _zip_win32_named_op_remove(), _zip_win32_named_op_stat(), _zip_win32_named_op_write(), _zip_win32_op_read(), _zip_win32_op_seek(), _zip_win32_op_tell(), and win32_named_open().
void _zip_win32_op_close | ( | zip_source_file_context_t * | ctx | ) |
Definition at line 82 of file zip_source_file_win32.c.
References HANDLE.
zip_int64_t _zip_win32_op_read | ( | zip_source_file_context_t * | ctx, |
void * | buf, | ||
zip_uint64_t | len | ||
) |
Definition at line 88 of file zip_source_file_win32.c.
References _zip_win32_error_to_errno(), DWORD, ctx::error, HANDLE, i, len, NULL, ZIP_ER_READ, and zip_error_set().
bool _zip_win32_op_seek | ( | zip_source_file_context_t * | ctx, |
void * | f, | ||
zip_int64_t | offset, | ||
int | whence | ||
) |
Definition at line 102 of file zip_source_file_win32.c.
References _zip_win32_error_to_errno(), DWORD, EINVAL, ctx::error, f, HANDLE, NULL, SEEK_CUR, SEEK_END, SEEK_SET, ZIP_ER_SEEK, and zip_error_set().
|
static |
Definition at line 132 of file zip_source_file_win32.c.
References _zip_stat_win32(), and HANDLE.
zip_int64_t _zip_win32_op_tell | ( | zip_source_file_context_t * | ctx, |
void * | f | ||
) |
Definition at line 138 of file zip_source_file_win32.c.
References _zip_win32_error_to_errno(), ctx::error, f, HANDLE, ZIP_ER_SEEK, and zip_error_set().
ZIP_EXTERN zip_source_t* zip_source_win32handle | ( | zip_t * | za, |
HANDLE | h, | ||
zip_uint64_t | start, | ||
zip_int64_t | len | ||
) |
Definition at line 61 of file zip_source_file_win32.c.
References zip::error, h, len, NULL, start, za, and zip_source_win32handle_create().
ZIP_EXTERN zip_source_t* zip_source_win32handle_create | ( | HANDLE | h, |
zip_uint64_t | start, | ||
zip_int64_t | length, | ||
zip_error_t * | error | ||
) |
Definition at line 71 of file zip_source_file_win32.c.
References error(), h, INVALID_HANDLE_VALUE, length, NULL, ops_win32_read, start, ZIP_ER_INVAL, zip_error_set(), and zip_source_file_common_new().
Referenced by zip_source_win32handle().
|
static |
Definition at line 42 of file zip_source_file_win32.c.
Referenced by zip_source_win32handle_create().