Rizin
unix-like reverse engineering framework and cli tools
|
#include <windows.h>
#include <aclapi.h>
#include <stdlib.h>
#include "zipint.h"
#include "zip_source_file.h"
Go to the source code of this file.
Classes | |
struct | zip_win32_file_operations |
Macros | |
#define | _WIN32_WINNT 0x0501 |
Typedefs | |
typedef struct zip_win32_file_operations | zip_win32_file_operations_t |
Functions | |
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) |
bool | _zip_filetime_to_time_t (FILETIME ft, time_t *t) |
int | _zip_win32_error_to_errno (DWORD win32err) |
Variables | |
zip_source_file_operations_t | _zip_source_file_win32_named_ops |
#define _WIN32_WINNT 0x0501 |
Definition at line 39 of file zip_source_file_win32.h.
typedef struct zip_win32_file_operations zip_win32_file_operations_t |
Definition at line 1 of file zip_source_file_win32.h.
Definition at line 213 of file zip_source_file_win32.c.
Referenced by _zip_stat_win32(), and _zip_win32_named_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().
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().
|
extern |
Definition at line 48 of file zip_source_file_win32_named.c.
Referenced by zip_source_win32a_create(), and zip_source_win32w_create().