Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | zip_source_args_seek |
struct | zip_error |
struct | zip_stat |
struct | zip_buffer_fragment |
struct | zip_file_attributes |
Macros | |
#define | ZIP_EXTERN |
#define | ZIP_CREATE 1 |
#define | ZIP_EXCL 2 |
#define | ZIP_CHECKCONS 4 |
#define | ZIP_TRUNCATE 8 |
#define | ZIP_RDONLY 16 |
#define | ZIP_FL_NOCASE 1u /* ignore case on name lookup */ |
#define | ZIP_FL_NODIR 2u /* ignore directory component */ |
#define | ZIP_FL_COMPRESSED 4u /* read compressed data */ |
#define | ZIP_FL_UNCHANGED 8u /* use original data, ignoring changes */ |
#define | ZIP_FL_RECOMPRESS 16u /* force recompression of data */ |
#define | ZIP_FL_ENCRYPTED 32u /* read encrypted data (implies ZIP_FL_COMPRESSED) */ |
#define | ZIP_FL_ENC_GUESS 0u /* guess string encoding (is default) */ |
#define | ZIP_FL_ENC_RAW 64u /* get unmodified string */ |
#define | ZIP_FL_ENC_STRICT 128u /* follow specification strictly */ |
#define | ZIP_FL_LOCAL 256u /* in local header */ |
#define | ZIP_FL_CENTRAL 512u /* in central directory */ |
#define | ZIP_FL_ENC_UTF_8 2048u /* string is UTF-8 encoded */ |
#define | ZIP_FL_ENC_CP437 4096u /* string is CP437 encoded */ |
#define | ZIP_FL_OVERWRITE 8192u /* zip_file_add: if file with name exists, overwrite (replace) it */ |
#define | ZIP_AFL_RDONLY 2u /* read only -- cannot be cleared */ |
#define | ZIP_EXTRA_FIELD_ALL ZIP_UINT16_MAX |
#define | ZIP_EXTRA_FIELD_NEW ZIP_UINT16_MAX |
#define | ZIP_ER_OK 0 /* N No error */ |
#define | ZIP_ER_MULTIDISK 1 /* N Multi-disk zip archives not supported */ |
#define | ZIP_ER_RENAME 2 /* S Renaming temporary file failed */ |
#define | ZIP_ER_CLOSE 3 /* S Closing zip archive failed */ |
#define | ZIP_ER_SEEK 4 /* S Seek error */ |
#define | ZIP_ER_READ 5 /* S Read error */ |
#define | ZIP_ER_WRITE 6 /* S Write error */ |
#define | ZIP_ER_CRC 7 /* N CRC error */ |
#define | ZIP_ER_ZIPCLOSED 8 /* N Containing zip archive was closed */ |
#define | ZIP_ER_NOENT 9 /* N No such file */ |
#define | ZIP_ER_EXISTS 10 /* N File already exists */ |
#define | ZIP_ER_OPEN 11 /* S Can't open file */ |
#define | ZIP_ER_TMPOPEN 12 /* S Failure to create temporary file */ |
#define | ZIP_ER_ZLIB 13 /* Z Zlib error */ |
#define | ZIP_ER_MEMORY 14 /* N Malloc failure */ |
#define | ZIP_ER_CHANGED 15 /* N Entry has been changed */ |
#define | ZIP_ER_COMPNOTSUPP 16 /* N Compression method not supported */ |
#define | ZIP_ER_EOF 17 /* N Premature end of file */ |
#define | ZIP_ER_INVAL 18 /* N Invalid argument */ |
#define | ZIP_ER_NOZIP 19 /* N Not a zip archive */ |
#define | ZIP_ER_INTERNAL 20 /* N Internal error */ |
#define | ZIP_ER_INCONS 21 /* L Zip archive inconsistent */ |
#define | ZIP_ER_REMOVE 22 /* S Can't remove file */ |
#define | ZIP_ER_DELETED 23 /* N Entry has been deleted */ |
#define | ZIP_ER_ENCRNOTSUPP 24 /* N Encryption method not supported */ |
#define | ZIP_ER_RDONLY 25 /* N Read-only archive */ |
#define | ZIP_ER_NOPASSWD 26 /* N No password provided */ |
#define | ZIP_ER_WRONGPASSWD 27 /* N Wrong password provided */ |
#define | ZIP_ER_OPNOTSUPP 28 /* N Operation not supported */ |
#define | ZIP_ER_INUSE 29 /* N Resource still in use */ |
#define | ZIP_ER_TELL 30 /* S Tell error */ |
#define | ZIP_ER_COMPRESSED_DATA 31 /* N Compressed data invalid */ |
#define | ZIP_ER_CANCELLED 32 /* N Operation cancelled */ |
#define | ZIP_ET_NONE 0 /* sys_err unused */ |
#define | ZIP_ET_SYS 1 /* sys_err is errno */ |
#define | ZIP_ET_ZLIB 2 /* sys_err is zlib error code */ |
#define | ZIP_ET_LIBZIP 3 /* sys_err is libzip error code */ |
#define | ZIP_CM_DEFAULT -1 /* better of deflate or store */ |
#define | ZIP_CM_STORE 0 /* stored (uncompressed) */ |
#define | ZIP_CM_SHRINK 1 /* shrunk */ |
#define | ZIP_CM_REDUCE_1 2 /* reduced with factor 1 */ |
#define | ZIP_CM_REDUCE_2 3 /* reduced with factor 2 */ |
#define | ZIP_CM_REDUCE_3 4 /* reduced with factor 3 */ |
#define | ZIP_CM_REDUCE_4 5 /* reduced with factor 4 */ |
#define | ZIP_CM_IMPLODE 6 /* imploded */ |
#define | ZIP_CM_DEFLATE 8 /* deflated */ |
#define | ZIP_CM_DEFLATE64 9 /* deflate64 */ |
#define | ZIP_CM_PKWARE_IMPLODE 10 /* PKWARE imploding */ |
#define | ZIP_CM_BZIP2 12 /* compressed using BZIP2 algorithm */ |
#define | ZIP_CM_LZMA 14 /* LZMA (EFS) */ |
#define | ZIP_CM_TERSE 18 /* compressed using IBM TERSE (new) */ |
#define | ZIP_CM_LZ77 19 /* IBM LZ77 z Architecture (PFS) */ |
#define | ZIP_CM_LZMA2 33 |
#define | ZIP_CM_ZSTD 93 /* Zstandard compressed data */ |
#define | ZIP_CM_XZ 95 /* XZ compressed data */ |
#define | ZIP_CM_JPEG 96 /* Compressed Jpeg data */ |
#define | ZIP_CM_WAVPACK 97 /* WavPack compressed data */ |
#define | ZIP_CM_PPMD 98 /* PPMd version I, Rev 1 */ |
#define | ZIP_EM_NONE 0 /* not encrypted */ |
#define | ZIP_EM_TRAD_PKWARE 1 /* traditional PKWARE encryption */ |
#define | ZIP_EM_AES_128 0x0101 /* Winzip AES encryption */ |
#define | ZIP_EM_AES_192 0x0102 |
#define | ZIP_EM_AES_256 0x0103 |
#define | ZIP_EM_UNKNOWN 0xffff /* unknown algorithm */ |
#define | ZIP_OPSYS_DOS 0x00u |
#define | ZIP_OPSYS_AMIGA 0x01u |
#define | ZIP_OPSYS_OPENVMS 0x02u |
#define | ZIP_OPSYS_UNIX 0x03u |
#define | ZIP_OPSYS_VM_CMS 0x04u |
#define | ZIP_OPSYS_ATARI_ST 0x05u |
#define | ZIP_OPSYS_OS_2 0x06u |
#define | ZIP_OPSYS_MACINTOSH 0x07u |
#define | ZIP_OPSYS_Z_SYSTEM 0x08u |
#define | ZIP_OPSYS_CPM 0x09u |
#define | ZIP_OPSYS_WINDOWS_NTFS 0x0au |
#define | ZIP_OPSYS_MVS 0x0bu |
#define | ZIP_OPSYS_VSE 0x0cu |
#define | ZIP_OPSYS_ACORN_RISC 0x0du |
#define | ZIP_OPSYS_VFAT 0x0eu |
#define | ZIP_OPSYS_ALTERNATE_MVS 0x0fu |
#define | ZIP_OPSYS_BEOS 0x10u |
#define | ZIP_OPSYS_TANDEM 0x11u |
#define | ZIP_OPSYS_OS_400 0x12u |
#define | ZIP_OPSYS_OS_X 0x13u |
#define | ZIP_OPSYS_DEFAULT ZIP_OPSYS_UNIX |
#define | ZIP_SOURCE_MAKE_COMMAND_BITMASK(cmd) (((zip_int64_t)1) << (cmd)) |
#define | ZIP_SOURCE_CHECK_SUPPORTED(supported, cmd) (((supported) & ZIP_SOURCE_MAKE_COMMAND_BITMASK(cmd)) != 0) |
#define | ZIP_SOURCE_SUPPORTS_READABLE |
#define | ZIP_SOURCE_SUPPORTS_SEEKABLE |
#define | ZIP_SOURCE_SUPPORTS_WRITABLE |
#define | ZIP_SOURCE_GET_ARGS(type, data, len, error) ((len) < sizeof(type) ? zip_error_set((error), ZIP_ER_INVAL, 0), (type *)NULL : (type *)(data)) |
#define | ZIP_STAT_NAME 0x0001u |
#define | ZIP_STAT_INDEX 0x0002u |
#define | ZIP_STAT_SIZE 0x0004u |
#define | ZIP_STAT_COMP_SIZE 0x0008u |
#define | ZIP_STAT_MTIME 0x0010u |
#define | ZIP_STAT_CRC 0x0020u |
#define | ZIP_STAT_COMP_METHOD 0x0040u |
#define | ZIP_STAT_ENCRYPTION_METHOD 0x0080u |
#define | ZIP_STAT_FLAGS 0x0100u |
#define | ZIP_FILE_ATTRIBUTES_HOST_SYSTEM 0x0001u |
#define | ZIP_FILE_ATTRIBUTES_ASCII 0x0002u |
#define | ZIP_FILE_ATTRIBUTES_VERSION_NEEDED 0x0004u |
#define | ZIP_FILE_ATTRIBUTES_EXTERNAL_FILE_ATTRIBUTES 0x0008u |
#define | ZIP_FILE_ATTRIBUTES_GENERAL_PURPOSE_BIT_FLAGS 0x0010u |
Typedefs | |
typedef enum zip_source_cmd | zip_source_cmd_t |
typedef struct zip_source_args_seek | zip_source_args_seek_t |
typedef struct zip | zip_t |
typedef struct zip_error | zip_error_t |
typedef struct zip_file | zip_file_t |
typedef struct zip_file_attributes | zip_file_attributes_t |
typedef struct zip_source | zip_source_t |
typedef struct zip_stat | zip_stat_t |
typedef struct zip_buffer_fragment | zip_buffer_fragment_t |
typedef zip_uint32_t | zip_flags_t |
typedef zip_int64_t(* | zip_source_callback) (void *_Nullable, void *_Nullable, zip_uint64_t, zip_source_cmd_t) |
typedef void(* | zip_progress_callback) (zip_t *_Nonnull, double, void *_Nullable) |
typedef int(* | zip_cancel_callback) (zip_t *_Nonnull, void *_Nullable) |
typedef void(* | zip_progress_callback_t) (double) |
#define ZIP_CM_BZIP2 12 /* compressed using BZIP2 algorithm */ |
#define ZIP_CM_TERSE 18 /* compressed using IBM TERSE (new) */ |
#define ZIP_CM_WAVPACK 97 /* WavPack compressed data */ |
#define ZIP_CM_XZ 95 /* XZ compressed data */ |
#define ZIP_CM_ZSTD 93 /* Zstandard compressed data */ |
#define ZIP_EM_TRAD_PKWARE 1 /* traditional PKWARE encryption */ |
#define ZIP_ER_COMPNOTSUPP 16 /* N Compression method not supported */ |
#define ZIP_ER_COMPRESSED_DATA 31 /* N Compressed data invalid */ |
#define ZIP_ER_ENCRNOTSUPP 24 /* N Encryption method not supported */ |
#define ZIP_EXTRA_FIELD_ALL ZIP_UINT16_MAX |
#define ZIP_EXTRA_FIELD_NEW ZIP_UINT16_MAX |
#define ZIP_FL_COMPRESSED 4u /* read compressed data */ |
#define ZIP_FL_ENC_GUESS 0u /* guess string encoding (is default) */ |
#define ZIP_FL_ENC_STRICT 128u /* follow specification strictly */ |
#define ZIP_FL_ENCRYPTED 32u /* read encrypted data (implies ZIP_FL_COMPRESSED) */ |
#define ZIP_FL_RECOMPRESS 16u /* force recompression of data */ |
#define ZIP_FL_UNCHANGED 8u /* use original data, ignoring changes */ |
#define ZIP_OPSYS_DEFAULT ZIP_OPSYS_UNIX |
#define ZIP_SOURCE_CHECK_SUPPORTED | ( | supported, | |
cmd | |||
) | (((supported) & ZIP_SOURCE_MAKE_COMMAND_BITMASK(cmd)) != 0) |
#define ZIP_SOURCE_MAKE_COMMAND_BITMASK | ( | cmd | ) | (((zip_int64_t)1) << (cmd)) |
#define ZIP_SOURCE_SUPPORTS_READABLE |
#define ZIP_SOURCE_SUPPORTS_SEEKABLE |
#define ZIP_SOURCE_SUPPORTS_WRITABLE |
typedef struct zip_buffer_fragment zip_buffer_fragment_t |
typedef struct zip_error zip_error_t |
typedef struct zip_file_attributes zip_file_attributes_t |
typedef struct zip_file zip_file_t |
typedef zip_uint32_t zip_flags_t |
typedef struct zip_source_args_seek zip_source_args_seek_t |
typedef zip_int64_t(* zip_source_callback) (void *_Nullable, void *_Nullable, zip_uint64_t, zip_source_cmd_t) |
typedef enum zip_source_cmd zip_source_cmd_t |
typedef struct zip_source zip_source_t |
typedef struct zip_stat zip_stat_t |
enum zip_source_cmd |
Definition at line 219 of file zip.h.
ZIP_EXTERN zip_int64_t zip_add | ( | zip_t * | _Nonnull, |
const char * | _Nonnull, | ||
zip_source_t * | _Nonnull | ||
) |
Definition at line 47 of file zip_add.c.
References source, za, and zip_file_add().
Referenced by add(), add_file(), add_from_zip(), add_nul(), main(), merge_zip(), and rz_io_zip_flush_file().
ZIP_EXTERN zip_int64_t zip_add_dir | ( | zip_t * | _Nonnull, |
const char * | _Nonnull | ||
) |
Definition at line 42 of file zip_add_dir.c.
References za, and zip_dir_add().
Referenced by add_dir().
ZIP_EXTERN int zip_close | ( | zip_t * | _Nonnull | ) |
Definition at line 52 of file zip_close.c.
References _zip_changed(), _zip_dirent_clone(), _zip_dirent_needs_zip64(), _zip_dirent_write(), _zip_error_set_from_source(), _zip_file_get_end(), _zip_file_get_offset(), _zip_progress_end(), _zip_progress_start(), _zip_progress_subrange(), _zip_read_local_ef(), _zip_source_zip_new(), add_data(), zip_dirent::bitflags, zip_dirent::comp_size, copy_data(), zip_entry::deleted, zip_dirent::encryption_method, ENOENT, zip::entry, zip::error, error(), free(), i, zip_filelist::idx, malloc(), zip::nentry, NULL, off, zip_dirent::offset, zip::open_flags, zip_entry::orig, zip::progress, SEEK_SET, zip::src, write_cdir(), write_data_descriptor(), za, ZIP_DIRENT_COMP_METHOD, ZIP_DIRENT_ENCRYPTION_METHOD, zip_discard(), ZIP_EM_TRAD_PKWARE, ZIP_ENTRY_CHANGED, ZIP_ENTRY_DATA_CHANGED, ZIP_ENTRY_HAS_CHANGES, ZIP_ER_CANCELLED, ZIP_ER_INTERNAL, ZIP_ER_MEMORY, ZIP_ER_REMOVE, zip_error_code_system(), zip_error_code_zip(), zip_error_set(), ZIP_FL_LOCAL, ZIP_FL_UNCHANGED, ZIP_GPBF_DATA_DESCRIPTOR, ZIP_MIN, zip_source_begin_write(), ZIP_SOURCE_BEGIN_WRITE_CLONING, zip_source_begin_write_cloning(), zip_source_commit_write(), zip_source_error(), zip_source_free(), ZIP_SOURCE_MAKE_COMMAND_BITMASK, zip_source_remove(), zip_source_rollback_write(), zip_source_seek(), zip_source_supports(), zip_source_tell_write(), ZIP_TRUNCATE, and ZIP_UINT64_MAX.
Referenced by add_from_zip(), compare_zip(), LLVMFuzzerTestOneInput(), main(), merge_zip(), rz_io_zip_alloc_zipfileobj(), rz_io_zip_flush_file(), rz_io_zip_get_by_file_idx(), rz_io_zip_get_files(), rz_io_zip_slurp_file(), and zin_close().
ZIP_EXTERN int zip_compression_method_supported | ( | zip_int32_t | method, |
int | compress | ||
) |
Definition at line 112 of file zip_source_compress.c.
References _zip_get_compression_algorithm(), compress(), context::method, NULL, and ZIP_CM_STORE.
Referenced by usage(), and zip_set_file_compression().
ZIP_EXTERN int zip_delete | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx | ||
) |
Definition at line 39 of file zip_delete.c.
References _zip_get_name(), _zip_hash_delete(), _zip_unchange(), zip_entry::deleted, zip::entry, zip::error, setup::idx, name, zip::names, zip::nentry, NULL, za, ZIP_ER_INVAL, ZIP_ER_RDONLY, zip_error_set(), and ZIP_IS_RDONLY.
Referenced by delete(), main(), and zip_dir_add().
ZIP_EXTERN zip_int64_t zip_dir_add | ( | zip_t * | _Nonnull, |
const char * | _Nonnull, | ||
zip_flags_t | flags | ||
) |
Definition at line 44 of file zip_dir_add.c.
References _zip_file_replace(), zip::error, flags, free(), setup::idx, len, malloc(), NULL, s, source, za, zip_delete(), ZIP_ER_INVAL, ZIP_ER_MEMORY, ZIP_ER_RDONLY, zip_error_set(), ZIP_EXT_ATTRIB_DEFAULT_DIR, zip_file_set_external_attributes(), ZIP_IS_RDONLY, ZIP_OPSYS_DEFAULT, zip_source_buffer(), zip_source_free(), and ZIP_UINT64_MAX.
Referenced by zip_add_dir().
ZIP_EXTERN void zip_discard | ( | zip_t * | _Nonnull | ) |
Definition at line 45 of file zip_discard.c.
References _zip_entry_finalize(), _zip_hash_free(), _zip_progress_free(), _zip_source_invalidate(), _zip_string_free(), zip::comment_changes, zip::comment_orig, zip::default_password, zip::entry, zip::error, free(), i, zip::names, zip::nentry, zip::nopen_source, NULL, zip::open_source, zip::progress, zip::src, za, zip_error_fini(), zip_source_close(), and zip_source_free().
Referenced by _zip_open(), main(), and zip_close().
ZIP_EXTERN int zip_encryption_method_supported | ( | zip_uint16_t | method, |
int | encode | ||
) |
Definition at line 57 of file zip_get_encryption_implementation.c.
References _zip_get_encryption_implementation(), encode(), NULL, ZIP_CODEC_DECODE, ZIP_CODEC_ENCODE, and ZIP_EM_NONE.
Referenced by usage().
ZIP_EXTERN void zip_error_clear | ( | zip_t * | _Nonnull | ) |
Definition at line 39 of file zip_error_clear.c.
References _zip_error_clear(), zip::error, NULL, and za.
ZIP_EXTERN int zip_error_code_system | ( | const zip_error_t * | _Nonnull | ) |
Definition at line 40 of file zip_error.c.
References error().
Referenced by _zip_checkcons(), _zip_file_exists(), _zip_find_central_dir(), _zip_read_cdir(), _zip_set_open_error(), do_read(), read_file(), zip_close(), and zip_error_to_data().
ZIP_EXTERN int zip_error_code_zip | ( | const zip_error_t * | _Nonnull | ) |
Definition at line 46 of file zip_error.c.
References error().
Referenced by _zip_checkcons(), _zip_dirent_read(), _zip_file_exists(), _zip_find_central_dir(), _zip_read_cdir(), _zip_set_open_error(), _zip_source_invalidate(), compress_read(), do_read(), read_file(), write_memory_src_to_file(), zip_close(), and zip_error_to_data().
ZIP_EXTERN void zip_error_fini | ( | zip_error_t * | _Nonnull | ) |
Definition at line 52 of file zip_error.c.
References err, free(), and NULL.
Referenced by add_from_zip(), context_free(), context_new(), do_read(), hole_free(), list_zip(), LLVMFuzzerTestOneInput(), main(), merge_zip(), open_compressed(), open_file(), trad_pkware_free(), windows_open(), winzip_aes_free(), zip_discard(), zip_error_strerror(), zip_fclose(), zip_fdopen(), and zip_open().
ZIP_EXTERN void zip_error_get | ( | zip_t * | _Nonnull, |
int * | _Nullable, | ||
int * | _Nullable | ||
) |
Definition at line 40 of file zip_error_get.c.
References _zip_error_get(), zip::error, and za.
ZIP_EXTERN int zip_error_get_sys_type | ( | int | ze | ) |
Definition at line 39 of file zip_error_get_sys_type.c.
References _zip_err_str, _zip_err_str_count, and _zip_err_info::type.
Referenced by main().
ZIP_EXTERN void zip_error_init | ( | zip_error_t * | _Nonnull | ) |
Definition at line 59 of file zip_error.c.
References err, NULL, and ZIP_ER_OK.
Referenced by _zip_file_new(), _zip_new(), _zip_source_new(), _zip_source_window_new(), context_new(), do_read(), hole_new(), LLVMFuzzerTestOneInput(), main(), open_compressed(), open_file(), source_nul(), trad_pkware_new(), windows_open(), winzip_aes_new(), zip_error_init_with_code(), zip_fdopen(), zip_open(), zip_source_buffer_fragment_with_attributes_create(), zip_source_crc_create(), and zip_source_file_common_new().
ZIP_EXTERN void zip_error_init_with_code | ( | zip_error_t * | _Nonnull, |
int | ze | ||
) |
Definition at line 66 of file zip_error.c.
References error(), zip_error_init(), zip_error_system_type(), ZIP_ET_LIBZIP, and ZIP_ET_SYS.
Referenced by add_from_zip(), cat(), do_read(), list_zip(), main(), and merge_zip().
ZIP_EXTERN void zip_error_set | ( | zip_error_t * | _Nullable, |
int | ze, | ||
int | se | ||
) |
Definition at line 126 of file zip_error.c.
References err.
Referenced by _zip_add_entry(), _zip_buffer_new_from_source(), _zip_cdir_grow(), _zip_cdir_new(), _zip_cdir_write(), _zip_checkcons(), _zip_cp437_to_utf8(), _zip_crypto_aes_new(), _zip_crypto_hmac_new(), _zip_dirent_process_winzip_aes(), _zip_dirent_read(), _zip_dirent_size(), _zip_dirent_write(), _zip_ef_clone(), _zip_ef_get_by_id(), _zip_ef_parse(), _zip_ef_utf8(), _zip_ef_write(), _zip_file_extra_field_prepare_for_change(), _zip_file_get_end(), _zip_file_get_offset(), _zip_file_new(), _zip_file_replace(), _zip_find_central_dir(), _zip_get_dirent(), _zip_hash_add(), _zip_hash_delete(), _zip_hash_lookup(), _zip_hash_new(), _zip_memdup(), _zip_name_locate(), _zip_new(), _zip_open(), _zip_progress_new(), _zip_read(), _zip_read_cdir(), _zip_read_data(), _zip_read_eocd(), _zip_read_eocd64(), _zip_read_local_ef(), _zip_register_source(), _zip_set_name(), _zip_source_call(), _zip_source_invalidate(), _zip_source_new(), _zip_source_window_new(), _zip_source_zip_new(), _zip_stat_win32(), _zip_stdio_op_commit_write(), _zip_stdio_op_create_temp_output(), _zip_stdio_op_open(), _zip_stdio_op_read(), _zip_stdio_op_remove(), _zip_stdio_op_seek(), _zip_stdio_op_stat(), _zip_stdio_op_tell(), _zip_stdio_op_write(), _zip_string_new(), _zip_unchange(), _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(), _zip_winzip_aes_new(), _zip_write(), add_data(), allocate(), buffer_clone(), buffer_from_file(), buffer_grow_fragments(), buffer_new(), buffer_read_file(), buffer_to_file(), buffer_write(), compress_callback(), compress_read(), compression_source_new(), copy_data(), copy_source(), crc_read(), create_temp_file(), decrypt_header(), do_read(), encrypt_header(), end(), hash_resize(), hole_new(), input(), pkware_decrypt(), pkware_encrypt(), process(), read_data(), read_file(), read_from_file(), read_hole(), read_to_memory(), source_hole_cb(), source_nul(), source_nul_cb(), start(), trad_pkware_new(), verify_hmac(), win32_named_open(), window_read(), winzip_aes_decrypt(), winzip_aes_encrypt(), winzip_aes_new(), write_data_descriptor(), zip_close(), zip_delete(), zip_dir_add(), zip_file_add(), zip_file_extra_field_delete(), zip_file_extra_field_delete_by_id(), zip_file_extra_field_get(), zip_file_extra_field_get_by_id(), zip_file_extra_field_set(), zip_file_extra_fields_count(), zip_file_extra_fields_count_by_id(), zip_file_rename(), zip_file_replace(), zip_file_set_comment(), zip_file_set_encryption(), zip_file_set_external_attributes(), zip_file_set_mtime(), zip_fread(), zip_get_num_files(), zip_open_from_source(), zip_set_archive_comment(), zip_set_archive_flag(), zip_set_default_password(), zip_set_file_comment(), zip_set_file_compression(), zip_source_begin_write(), zip_source_begin_write_cloning(), zip_source_buffer_fragment_with_attributes_create(), zip_source_buffer_with_attributes_create(), zip_source_close(), zip_source_commit_write(), zip_source_crc_create(), zip_source_file_common_new(), zip_source_file_create(), zip_source_filep_create(), zip_source_get_file_attributes(), zip_source_open(), zip_source_pkware_decode(), zip_source_pkware_encode(), zip_source_read(), zip_source_seek(), zip_source_seek_compute_offset(), zip_source_seek_write(), zip_source_stat(), zip_source_tell(), zip_source_tell_write(), zip_source_win32a_create(), zip_source_win32handle_create(), zip_source_win32w_create(), zip_source_winzip_aes_decode(), zip_source_winzip_aes_encode(), zip_source_write(), zip_source_zip_create(), and zip_stat_index().
ZIP_EXTERN const char* _Nonnull zip_error_strerror | ( | zip_error_t * | _Nonnull | ) |
Definition at line 43 of file zip_error_strerror.c.
References _zip_err_details, _zip_err_details_count, _zip_err_str, _zip_err_str_count, setup::description, _zip_err_info::description, err, error(), GET_ERROR_FROM_DETAIL, GET_INDEX_FROM_DETAIL, malloc(), MAX_DETAIL_INDEX, NULL, s, snprintf, sprintf, type, _zip_err_info::type, zError(), ZIP_DETAIL_ET_ENTRY, ZIP_ER_MEMORY, zip_error_fini(), ZIP_ET_LIBZIP, ZIP_ET_SYS, and ZIP_ET_ZLIB.
Referenced by add_from_zip(), cat(), copy_source(), do_read(), list_zip(), main(), merge_zip(), open_compressed(), open_file(), windows_open(), write_memory_src_to_file(), zip_file_strerror(), and zip_strerror().
ZIP_EXTERN int zip_error_system_type | ( | const zip_error_t * | _Nonnull | ) |
Definition at line 83 of file zip_error.c.
References _zip_err_str, _zip_err_str_count, error(), _zip_err_info::type, and ZIP_ET_NONE.
Referenced by _zip_error_get(), _zip_set_open_error(), and zip_error_init_with_code().
ZIP_EXTERN zip_int64_t zip_error_to_data | ( | const zip_error_t * | _Nonnull, |
void * | _Nonnull, | ||
zip_uint64_t | length | ||
) |
Definition at line 141 of file zip_error.c.
References e, error(), int, length, zip_error_code_system(), and zip_error_code_zip().
Referenced by compress_callback(), crc_read(), pkware_decrypt(), pkware_encrypt(), read_data(), read_file(), source_hole_cb(), source_nul_cb(), window_read(), winzip_aes_decrypt(), and winzip_aes_encrypt().
ZIP_EXTERN int zip_error_to_str | ( | char * | _Nonnull, |
zip_uint64_t | len, | ||
int | ze, | ||
int | se | ||
) |
Definition at line 44 of file zip_error_to_str.c.
References _zip_err_str, _zip_err_str_count, _zip_err_info::description, len, NULL, snprintf, type, zError(), ZIP_ET_SYS, and ZIP_ET_ZLIB.
ZIP_EXTERN int zip_fclose | ( | zip_file_t * | _Nonnull | ) |
Definition at line 41 of file zip_fclose.c.
References zip_file::error, free(), zip_file::src, zip_error::zip_err, zip_error_fini(), and zip_source_free().
Referenced by cat(), do_read(), LLVMFuzzerTestOneInput(), main(), rz_io_zip_slurp_file(), and test_file().
Definition at line 42 of file zip_fdopen.c.
References _zip_set_open_error(), close, dup, error(), fd, benchmark::FILE, NULL, src, za, ZIP_CHECKCONS, ZIP_ER_INVAL, ZIP_ER_OPEN, zip_error_fini(), zip_error_init(), zip_open_from_source(), ZIP_RDONLY, zip_source_filep_create(), and zip_source_free().
Referenced by read_from_file().
ZIP_EXTERN zip_int64_t zip_file_add | ( | zip_t * | _Nonnull, |
const char * | _Nonnull, | ||
zip_source_t * | _Nonnull, | ||
zip_flags_t | flags | ||
) |
Definition at line 45 of file zip_file_add.c.
References _zip_file_replace(), zip::error, flags, NULL, source, za, ZIP_ER_INVAL, zip_error_set(), and ZIP_UINT64_MAX.
ZIP_EXTERN void zip_file_attributes_init | ( | zip_file_attributes_t * | _Nonnull | ) |
Definition at line 37 of file zip_source_get_file_attributes.c.
References zip_file_attributes::valid, and zip_file_attributes::version.
Referenced by _zip_file_attributes_from_dirent(), _zip_source_window_new(), zip_source_buffer_fragment_with_attributes_create(), zip_source_file_common_new(), and zip_source_get_file_attributes().
ZIP_EXTERN void zip_file_error_clear | ( | zip_file_t * | _Nonnull | ) |
Definition at line 39 of file zip_file_error_clear.c.
References _zip_error_clear(), zip_file::error, and NULL.
ZIP_EXTERN void zip_file_error_get | ( | zip_file_t * | _Nonnull, |
int * | _Nullable, | ||
int * | _Nullable | ||
) |
Definition at line 39 of file zip_file_error_get.c.
References _zip_error_get(), and zip_file::error.
ZIP_EXTERN int zip_file_extra_field_delete | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx, | ||
zip_uint16_t | ef_idx, | ||
zip_flags_t | flags | ||
) |
Definition at line 39 of file zip_extra_field_api.c.
References _zip_ef_delete_by_id(), _zip_file_extra_field_prepare_for_change(), _zip_get_dirent(), zip_entry::changes, zip::entry, zip::error, zip_dirent::extra_fields, flags, setup::idx, NULL, za, ZIP_EF_BOTH, ZIP_ER_INVAL, ZIP_ER_RDONLY, zip_error_set(), ZIP_EXTRA_FIELD_ALL, and ZIP_IS_RDONLY.
Referenced by delete_extra().
ZIP_EXTERN int zip_file_extra_field_delete_by_id | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx, | ||
zip_uint16_t | ef_id, | ||
zip_uint16_t | ef_idx, | ||
zip_flags_t | flags | ||
) |
Definition at line 71 of file zip_extra_field_api.c.
References _zip_ef_delete_by_id(), _zip_file_extra_field_prepare_for_change(), _zip_get_dirent(), zip_entry::changes, zip::entry, zip::error, zip_dirent::extra_fields, flags, setup::idx, NULL, za, ZIP_EF_BOTH, ZIP_ER_INVAL, ZIP_ER_RDONLY, zip_error_set(), ZIP_EXTRA_FIELD_ALL, and ZIP_IS_RDONLY.
Referenced by delete_extra_by_id().
ZIP_EXTERN const zip_uint8_t* _Nullable zip_file_extra_field_get | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx, | ||
zip_uint16_t | ef_idx, | ||
zip_uint16_t * | _Nullable, | ||
zip_uint16_t * | _Nullable, | ||
zip_flags_t | flags | ||
) |
Definition at line 103 of file zip_extra_field_api.c.
References _zip_get_dirent(), _zip_read_local_ef(), ef::data, ef, zip::error, zip_dirent::extra_fields, flags, ef::flags, i, ef::id, setup::idx, NULL, ef::size, za, ZIP_EF_BOTH, ZIP_ER_INVAL, ZIP_ER_NOENT, zip_error_set(), and ZIP_FL_LOCAL.
Referenced by ef_read(), and get_extra().
ZIP_EXTERN const zip_uint8_t* _Nullable zip_file_extra_field_get_by_id | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx, | ||
zip_uint16_t | ef_id, | ||
zip_uint16_t | ef_idx, | ||
zip_uint16_t * | _Nullable, | ||
zip_flags_t | flags | ||
) |
Definition at line 147 of file zip_extra_field_api.c.
References _zip_ef_get_by_id(), _zip_get_dirent(), _zip_read_local_ef(), zip::error, zip_dirent::extra_fields, flags, setup::idx, NULL, za, ZIP_EF_BOTH, ZIP_ER_INVAL, zip_error_set(), and ZIP_FL_LOCAL.
Referenced by get_extra_by_id().
ZIP_EXTERN int zip_file_extra_field_set | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx, | ||
zip_uint16_t | ef_id, | ||
zip_uint16_t | ef_idx, | ||
const zip_uint8_t * | _Nullable, | ||
zip_uint16_t | len, | ||
zip_flags_t | flags | ||
) |
Definition at line 221 of file zip_extra_field_api.c.
References _zip_ef_free(), _zip_ef_new(), _zip_ef_size(), _zip_file_extra_field_prepare_for_change(), _zip_get_dirent(), zip_entry::changes, test_evm::cs, ef, zip::entry, zip::error, zip_dirent::extra_fields, flags, ef::flags, found, i, ef::id, setup::idx, len, zip_extra_field::next, NULL, ef::size, za, ZIP_EF_BOTH, ZIP_EF_CENTRAL, ZIP_EF_IS_INTERNAL, ZIP_EF_LOCAL, ZIP_ER_INVAL, ZIP_ER_MEMORY, ZIP_ER_RDONLY, zip_error_set(), ZIP_EXTRA_FIELD_NEW, ZIP_IS_RDONLY, and ZIP_UINT16_MAX.
Referenced by set_extra().
ZIP_EXTERN zip_int16_t zip_file_extra_fields_count | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx, | ||
zip_flags_t | flags | ||
) |
Definition at line 167 of file zip_extra_field_api.c.
References _zip_get_dirent(), _zip_read_local_ef(), ef, zip::error, zip_dirent::extra_fields, flags, ef::flags, setup::idx, n, NULL, za, ZIP_EF_BOTH, ZIP_ER_INVAL, zip_error_set(), and ZIP_FL_LOCAL.
Referenced by count_extra(), and ef_read().
ZIP_EXTERN zip_int16_t zip_file_extra_fields_count_by_id | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx, | ||
zip_uint16_t | ef_id, | ||
zip_flags_t | flags | ||
) |
Definition at line 194 of file zip_extra_field_api.c.
References _zip_get_dirent(), _zip_read_local_ef(), ef, zip::error, zip_dirent::extra_fields, flags, ef::flags, ef::id, setup::idx, n, NULL, za, ZIP_EF_BOTH, ZIP_ER_INVAL, zip_error_set(), and ZIP_FL_LOCAL.
Referenced by count_extra_by_id().
ZIP_EXTERN const char* _Nullable zip_file_get_comment | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx, | ||
zip_uint32_t * | _Nullable, | ||
zip_flags_t | flags | ||
) |
Definition at line 40 of file zip_file_get_comment.c.
References _zip_get_dirent(), _zip_string_get(), zip_dirent::comment, zip::error, flags, setup::idx, len, NULL, cmd_descs_generate::str, and za.
Referenced by list_zip(), and zip_get_file_comment().
ZIP_EXTERN zip_error_t* _Nonnull zip_file_get_error | ( | zip_file_t * | _Nonnull | ) |
Definition at line 52 of file zip_error_get.c.
References f.
ZIP_EXTERN int zip_file_get_external_attributes | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx, | ||
zip_flags_t | flags, | ||
zip_uint8_t * | _Nullable, | ||
zip_uint32_t * | _Nullable | ||
) |
Definition at line 37 of file zip_file_get_external_attributes.c.
References _zip_get_dirent(), zip_dirent::ext_attrib, flags, setup::idx, NULL, zip_dirent::version_madeby, and za.
ZIP_EXTERN int zip_file_is_seekable | ( | zip_file_t * | _Nonnull | ) |
Definition at line 55 of file zip_fseek.c.
References zip_file::src, ZIP_SOURCE_CHECK_SUPPORTED, ZIP_SOURCE_SEEK, and zip_source_supports().
Referenced by is_seekable().
ZIP_EXTERN int zip_file_rename | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx, | ||
const char * | _Nonnull, | ||
zip_flags_t | flags | ||
) |
Definition at line 41 of file zip_file_rename.c.
References _zip_set_name(), zip::error, flags, setup::idx, zip::nentry, NULL, za, ZIP_ER_INVAL, ZIP_ER_RDONLY, zip_error_set(), zip_get_name(), ZIP_IS_RDONLY, and ZIP_UINT16_MAX.
Referenced by zip_rename().
ZIP_EXTERN int zip_file_replace | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx, | ||
zip_source_t * | _Nonnull, | ||
zip_flags_t | flags | ||
) |
Definition at line 39 of file zip_file_replace.c.
References _zip_file_replace(), zip::error, flags, setup::idx, zip::nentry, NULL, source, za, ZIP_ER_INVAL, and zip_error_set().
Referenced by replace_file_contents(), and zip_replace().
ZIP_EXTERN int zip_file_set_comment | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx, | ||
const char * | _Nullable, | ||
zip_uint16_t | len, | ||
zip_flags_t | flags | ||
) |
Definition at line 41 of file zip_file_set_comment.c.
References _zip_dirent_clone(), _zip_dirent_free(), _zip_get_dirent(), _zip_guess_encoding(), _zip_string_equal(), _zip_string_free(), _zip_string_new(), e, zip_string::encoding, zip::entry, zip::error, flags, setup::idx, len, NULL, za, ZIP_DIRENT_COMMENT, ZIP_ENCODING_UNKNOWN, ZIP_ENCODING_UTF8_GUESSED, ZIP_ENCODING_UTF8_KNOWN, ZIP_ER_INVAL, ZIP_ER_MEMORY, ZIP_ER_RDONLY, zip_error_set(), ZIP_FL_ENC_GUESS, ZIP_FL_ENCODING_ALL, and ZIP_IS_RDONLY.
Referenced by set_file_comment(), and zip_set_file_comment().
ZIP_EXTERN int zip_file_set_dostime | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx, | ||
zip_uint16_t | dtime, | ||
zip_uint16_t | ddate, | ||
zip_flags_t | flags | ||
) |
Definition at line 37 of file zip_file_set_mtime.c.
References _zip_d2u_time(), flags, setup::idx, za, and zip_file_set_mtime().
Referenced by set_file_dostime().
ZIP_EXTERN int zip_file_set_encryption | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx, | ||
zip_uint16_t | method, | ||
const char * | _Nullable | ||
) |
Definition at line 41 of file zip_file_set_encryption.c.
References _zip_crypto_clear, _zip_dirent_clone(), _zip_dirent_free(), _zip_get_encryption_implementation(), e, zip::entry, zip::error, free(), setup::idx, zip::nentry, NULL, strdup(), za, ZIP_CODEC_ENCODE, ZIP_DIRENT_ENCRYPTION_METHOD, ZIP_DIRENT_PASSWORD, ZIP_EM_NONE, ZIP_ER_ENCRNOTSUPP, ZIP_ER_INVAL, ZIP_ER_MEMORY, ZIP_ER_RDONLY, zip_error_set(), and ZIP_IS_RDONLY.
Referenced by set_file_encryption().
ZIP_EXTERN int zip_file_set_external_attributes | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx, | ||
zip_flags_t | flags, | ||
zip_uint8_t | opsys, | ||
zip_uint32_t | attributes | ||
) |
Definition at line 37 of file zip_file_set_external_attributes.c.
References _zip_dirent_clone(), _zip_dirent_free(), _zip_get_dirent(), e, zip::entry, zip::error, setup::idx, NULL, za, ZIP_DIRENT_ATTRIBUTES, ZIP_ER_MEMORY, ZIP_ER_RDONLY, zip_error_set(), ZIP_EXT_ATTRIB_DEFAULT, ZIP_IS_RDONLY, and ZIP_OPSYS_DEFAULT.
Referenced by zip_dir_add().
ZIP_EXTERN int zip_file_set_mtime | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx, | ||
time_t | mtime, | ||
zip_flags_t | flags | ||
) |
Definition at line 44 of file zip_file_set_mtime.c.
References _zip_dirent_clone(), _zip_get_dirent(), e, zip::entry, zip::error, setup::idx, NULL, za, ZIP_DIRENT_ENCRYPTION_METHOD, ZIP_DIRENT_LAST_MOD, ZIP_EM_TRAD_PKWARE, ZIP_ENTRY_CHANGED, ZIP_ENTRY_DATA_CHANGED, ZIP_ER_MEMORY, ZIP_ER_OPNOTSUPP, ZIP_ER_RDONLY, zip_error_set(), and ZIP_IS_RDONLY.
Referenced by set_file_mtime(), set_file_mtime_all(), and zip_file_set_dostime().
ZIP_EXTERN const char* _Nonnull zip_file_strerror | ( | zip_file_t * | _Nonnull | ) |
Definition at line 39 of file zip_file_strerror.c.
References zip_file::error, and zip_error_strerror().
Referenced by cat(), and test_file().
ZIP_EXTERN zip_file_t* _Nullable zip_fopen | ( | zip_t * | _Nonnull, |
const char * | _Nonnull, | ||
zip_flags_t | flags | ||
) |
Definition at line 39 of file zip_fopen.c.
References zip::default_password, flags, create_tags_rz::fname, setup::idx, NULL, za, zip_fopen_index_encrypted(), and zip_name_locate().
ZIP_EXTERN zip_file_t* _Nullable zip_fopen_encrypted | ( | zip_t * | _Nonnull, |
const char * | _Nonnull, | ||
zip_flags_t | flags, | ||
const char * | _Nullable | ||
) |
Definition at line 39 of file zip_fopen_encrypted.c.
References flags, create_tags_rz::fname, setup::idx, NULL, za, zip_fopen_index_encrypted(), and zip_name_locate().
ZIP_EXTERN zip_file_t* _Nullable zip_fopen_index | ( | zip_t * | _Nonnull, |
zip_uint64_t | index, | ||
zip_flags_t | flags | ||
) |
Definition at line 39 of file zip_fopen_index.c.
References zip::default_password, flags, za, and zip_fopen_index_encrypted().
Referenced by cat(), is_seekable(), LLVMFuzzerTestOneInput(), main(), rz_io_zip_slurp_file(), seek(), and test_file().
ZIP_EXTERN zip_file_t* _Nullable zip_fopen_index_encrypted | ( | zip_t * | _Nonnull, |
zip_uint64_t | index, | ||
zip_flags_t | flags, | ||
const char * | _Nullable | ||
) |
Definition at line 44 of file zip_fopen_index_encrypted.c.
References _zip_error_set_from_source(), _zip_file_new(), _zip_source_zip_new(), zip::error, flags, NULL, zip_file::src, src, za, zip_source_free(), and zip_source_open().
Referenced by zip_fopen(), zip_fopen_encrypted(), and zip_fopen_index().
ZIP_EXTERN zip_int64_t zip_fread | ( | zip_file_t * | _Nonnull, |
void * | _Nonnull, | ||
zip_uint64_t | toread | ||
) |
Definition at line 39 of file zip_fread.c.
References _zip_error_set_from_source(), zip_file::eof, zip_file::error, n, outbuf, zip_file::src, ZIP_ER_INVAL, zip_error::zip_err, zip_error_set(), ZIP_INT64_MAX, and zip_source_read().
Referenced by cat(), do_read(), LLVMFuzzerTestOneInput(), main(), rz_io_zip_slurp_file(), and test_file().
ZIP_EXTERN zip_int8_t zip_fseek | ( | zip_file_t * | _Nonnull, |
zip_int64_t | offset, | ||
int | whence | ||
) |
Definition at line 38 of file zip_fseek.c.
References _zip_error_set_from_source(), zip_file::error, zip_file::src, zip_error::zip_err, and zip_source_seek().
ZIP_EXTERN zip_int64_t zip_ftell | ( | zip_file_t * | _Nonnull | ) |
Definition at line 38 of file zip_ftell.c.
References _zip_error_set_from_source(), zip_file::error, zip_file::src, zip_error::zip_err, and zip_source_tell().
ZIP_EXTERN const char* _Nullable zip_get_archive_comment | ( | zip_t * | _Nonnull, |
int * | _Nullable, | ||
zip_flags_t | flags | ||
) |
Definition at line 41 of file zip_get_archive_comment.c.
References _zip_string_get(), zip::comment_changes, zip::comment_orig, zip::error, flags, int, len, NULL, cmd_descs_generate::str, za, and ZIP_FL_UNCHANGED.
Referenced by get_archive_comment(), and list_zip().
ZIP_EXTERN int zip_get_archive_flag | ( | zip_t * | _Nonnull, |
zip_flags_t | flag, | ||
zip_flags_t | flags | ||
) |
Definition at line 39 of file zip_get_archive_flag.c.
References zip::ch_flags, flags, zip::flags, za, and ZIP_FL_UNCHANGED.
ZIP_EXTERN zip_error_t* _Nonnull zip_get_error | ( | zip_t * | _Nonnull | ) |
Definition at line 46 of file zip_error_get.c.
References zip::error, and za.
Referenced by do_read(), and source_nul().
ZIP_EXTERN const char* _Nullable zip_get_file_comment | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx, | ||
int * | _Nullable, | ||
int | flags | ||
) |
Definition at line 40 of file zip_get_file_comment.c.
References flags, setup::idx, int, len, NULL, s, za, and zip_file_get_comment().
Referenced by get_file_comment().
ZIP_EXTERN const char* _Nullable zip_get_name | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx, | ||
zip_flags_t | flags | ||
) |
Definition at line 41 of file zip_get_name.c.
References _zip_get_name(), zip::error, flags, setup::idx, and za.
Referenced by get_file_comment(), merge_zip(), zip_file_rename(), and zip_stat_index().
ZIP_EXTERN zip_int64_t zip_get_num_entries | ( | zip_t * | _Nonnull, |
zip_flags_t | flags | ||
) |
Definition at line 39 of file zip_get_num_entries.c.
References zip::entry, flags, n, zip::nentry, NULL, zip_entry::orig, za, and ZIP_FL_UNCHANGED.
Referenced by get_num_entries(), list_zip(), LLVMFuzzerTestOneInput(), main(), merge_zip(), and set_file_mtime_all().
ZIP_EXTERN int zip_get_num_files | ( | zip_t * | _Nonnull | ) |
Definition at line 41 of file zip_get_num_files.c.
References zip::error, INT_MAX, zip::nentry, NULL, za, ZIP_ER_OPNOTSUPP, and zip_error_set().
Referenced by rz_io_zip_alloc_zipfileobj(), rz_io_zip_get_by_file_idx(), and rz_io_zip_get_files().
ZIP_EXTERN const char* _Nonnull zip_libzip_version | ( | void | ) |
Definition at line 39 of file zip_libzip_version.c.
References LIBZIP_VERSION.
ZIP_EXTERN zip_int64_t zip_name_locate | ( | zip_t * | _Nonnull, |
const char * | _Nonnull, | ||
zip_flags_t | flags | ||
) |
Definition at line 44 of file zip_name_locate.c.
References _zip_name_locate(), zip::error, flags, create_tags_rz::fname, and za.
Referenced by main(), merge_zip(), name_locate(), rz_io_zip_flush_file(), zip_fopen(), zip_fopen_encrypted(), and zip_stat().
Definition at line 54 of file zip_open.c.
References _zip_set_open_error(), error(), fn, NULL, src, za, zip_error_fini(), zip_error_init(), zip_open_from_source(), zip_source_file_create(), and zip_source_free().
Referenced by add_from_zip(), list_zip(), main(), merge_zip(), read_from_file(), and rz_io_zip_open_archive().
ZIP_EXTERN zip_t* _Nullable zip_open_from_source | ( | zip_source_t * | _Nonnull, |
int | _flags, | ||
zip_error_t * | _Nullable | ||
) |
Definition at line 79 of file zip_open.c.
References _zip_allocate_new(), _zip_error_set_from_source(), _zip_file_exists(), _zip_open(), error(), EXISTS_ERROR, EXISTS_NOT, flags, int, NULL, src, za, ZIP_CREATE, ZIP_ER_EXISTS, ZIP_ER_INVAL, ZIP_ER_NOENT, ZIP_ER_OPNOTSUPP, ZIP_ER_RDONLY, zip_error_set(), ZIP_EXCL, ZIP_RDONLY, zip_source_close(), zip_source_open(), zip_source_supports(), ZIP_SOURCE_SUPPORTS_SEEKABLE, ZIP_SOURCE_SUPPORTS_WRITABLE, and ZIP_TRUNCATE.
Referenced by LLVMFuzzerTestOneInput(), main(), read_from_file(), read_hole(), read_to_memory(), windows_open(), zip_fdopen(), and zip_open().
ZIP_EXTERN int zip_register_cancel_callback_with_state | ( | zip_t * | _Nonnull, |
zip_cancel_callback | _Nullable, | ||
void(*)(void *_Nullable) | _Nullable, | ||
void * | _Nullable | ||
) |
Referenced by cancel().
ZIP_EXTERN void zip_register_progress_callback | ( | zip_t * | _Nonnull, |
zip_progress_callback_t | _Nullable | ||
) |
Definition at line 277 of file zip_progress.c.
References _zip_legacy_progress_callback(), legacy_ud::callback, free(), malloc(), NULL, progress_callback(), za, and zip_register_progress_callback_with_state().
ZIP_EXTERN int zip_register_progress_callback_with_state | ( | zip_t * | _Nonnull, |
double | , | ||
zip_progress_callback | _Nullable, | ||
void(*)(void *_Nullable) | _Nullable, | ||
void * | _Nullable | ||
) |
Referenced by print_progress().
ZIP_EXTERN int zip_rename | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx, | ||
const char * | _Nonnull | ||
) |
Definition at line 40 of file zip_rename.c.
References setup::idx, za, and zip_file_rename().
Referenced by zrename().
ZIP_EXTERN int zip_replace | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx, | ||
zip_source_t * | _Nonnull | ||
) |
Definition at line 40 of file zip_replace.c.
References setup::idx, source, za, and zip_file_replace().
Referenced by main(), merge_zip(), and rz_io_zip_flush_file().
ZIP_EXTERN int zip_set_archive_comment | ( | zip_t * | _Nonnull, |
const char * | _Nullable, | ||
zip_uint16_t | len | ||
) |
Definition at line 41 of file zip_set_archive_comment.c.
References _zip_guess_encoding(), _zip_string_equal(), _zip_string_free(), _zip_string_new(), zip::comment_changed, zip::comment_changes, zip::comment_orig, zip::error, len, NULL, za, ZIP_ENCODING_CP437, ZIP_ENCODING_UNKNOWN, ZIP_ER_INVAL, ZIP_ER_RDONLY, zip_error_set(), ZIP_FL_ENC_GUESS, and ZIP_IS_RDONLY.
Referenced by set_archive_comment().
ZIP_EXTERN int zip_set_archive_flag | ( | zip_t * | _Nonnull, |
zip_flags_t | flag, | ||
int | value | ||
) |
Definition at line 39 of file zip_set_archive_flag.c.
References _zip_changed(), zip::ch_flags, zip::error, NULL, value, za, ZIP_AFL_RDONLY, ZIP_ER_CHANGED, ZIP_ER_RDONLY, zip_error_set(), and ZIP_IS_RDONLY.
ZIP_EXTERN int zip_set_default_password | ( | zip_t * | _Nonnull, |
const char * | _Nullable | ||
) |
Definition at line 42 of file zip_set_default_password.c.
References zip::default_password, zip::error, free(), NULL, strdup(), za, ZIP_ER_MEMORY, and zip_error_set().
Referenced by main(), and set_password().
ZIP_EXTERN int zip_set_file_comment | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx, | ||
const char * | _Nullable, | ||
int | len | ||
) |
Definition at line 40 of file zip_set_file_comment.c.
References zip::error, setup::idx, len, za, ZIP_ER_INVAL, zip_error_set(), zip_file_set_comment(), and ZIP_UINT16_MAX.
ZIP_EXTERN int zip_set_file_compression | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx, | ||
zip_int32_t | method, | ||
zip_uint32_t | flags | ||
) |
Definition at line 39 of file zip_set_file_compression.c.
References _zip_dirent_clone(), _zip_dirent_free(), e, zip::entry, zip::error, flags, setup::idx, zip::nentry, NULL, za, ZIP_CM_DEFAULT, zip_compression_method_supported(), ZIP_DIRENT_COMP_METHOD, ZIP_ER_COMPNOTSUPP, ZIP_ER_INVAL, ZIP_ER_MEMORY, ZIP_ER_RDONLY, zip_error_set(), and ZIP_IS_RDONLY.
Referenced by set_file_compression().
ZIP_EXTERN int zip_source_begin_write | ( | zip_source_t * | _Nonnull | ) |
Definition at line 39 of file zip_source_begin_write.c.
References _zip_source_call(), NULL, src, ZIP_ER_INVAL, zip_error_set(), ZIP_SOURCE_BEGIN_WRITE, ZIP_SOURCE_IS_OPEN_WRITING, and ZIP_SOURCE_WRITE_OPEN.
Referenced by copy_source(), and zip_close().
ZIP_EXTERN int zip_source_begin_write_cloning | ( | zip_source_t * | _Nonnull, |
zip_uint64_t | offset | ||
) |
Definition at line 39 of file zip_source_begin_write_cloning.c.
References _zip_source_call(), NULL, src, ZIP_ER_INVAL, zip_error_set(), ZIP_SOURCE_BEGIN_WRITE_CLONING, ZIP_SOURCE_IS_OPEN_WRITING, and ZIP_SOURCE_WRITE_OPEN.
Referenced by zip_close().
ZIP_EXTERN zip_source_t* _Nullable zip_source_buffer | ( | zip_t * | _Nonnull, |
const void * | _Nullable, | ||
zip_uint64_t | len, | ||
int | freep | ||
) |
Definition at line 88 of file zip_source_buffer.c.
References zip::error, len, NULL, za, and zip_source_buffer_with_attributes_create().
Referenced by add(), main(), replace_file_contents(), rz_io_zip_flush_file(), and zip_dir_add().
ZIP_EXTERN zip_source_t* _Nullable zip_source_buffer_create | ( | const void * | _Nullable, |
zip_uint64_t | len, | ||
int | freep, | ||
zip_error_t * | _Nullable | ||
) |
Definition at line 97 of file zip_source_buffer.c.
References error(), len, NULL, and zip_source_buffer_with_attributes_create().
Referenced by LLVMFuzzerTestOneInput(), main(), and read_to_memory().
ZIP_EXTERN zip_source_t* _Nullable zip_source_buffer_fragment | ( | zip_t * | _Nonnull, |
const zip_buffer_fragment_t * | _Nonnull, | ||
zip_uint64_t | nfragments, | ||
int | freep | ||
) |
Definition at line 123 of file zip_source_buffer.c.
References zip::error, NULL, za, and zip_source_buffer_fragment_with_attributes_create().
ZIP_EXTERN zip_source_t* _Nullable zip_source_buffer_fragment_create | ( | const zip_buffer_fragment_t * | _Nullable, |
zip_uint64_t | nfragments, | ||
int | freep, | ||
zip_error_t * | _Nullable | ||
) |
Definition at line 133 of file zip_source_buffer.c.
References error(), NULL, and zip_source_buffer_fragment_with_attributes_create().
Referenced by read_to_memory().
ZIP_EXTERN int zip_source_close | ( | zip_source_t * | _Nonnull | ) |
Definition at line 39 of file zip_source_close.c.
References _zip_source_call(), NULL, src, ZIP_ER_INTERNAL, ZIP_ER_INVAL, zip_error_set(), ZIP_SOURCE_CLOSE, zip_source_close(), ZIP_SOURCE_IS_LAYERED, and ZIP_SOURCE_IS_OPEN_READING.
Referenced by copy_source(), main(), write_memory_src_to_file(), zip_discard(), zip_open_from_source(), zip_source_close(), zip_source_commit_write(), zip_source_free(), zip_source_open(), and zip_source_remove().
ZIP_EXTERN int zip_source_commit_write | ( | zip_source_t * | _Nonnull | ) |
Definition at line 39 of file zip_source_commit_write.c.
References _zip_source_call(), NULL, src, ZIP_ER_INUSE, ZIP_ER_INVAL, zip_error_set(), zip_source_close(), ZIP_SOURCE_COMMIT_WRITE, ZIP_SOURCE_IS_OPEN_READING, ZIP_SOURCE_IS_OPEN_WRITING, ZIP_SOURCE_WRITE_CLOSED, and ZIP_SOURCE_WRITE_FAILED.
Referenced by copy_source(), and zip_close().
ZIP_EXTERN zip_error_t* _Nonnull zip_source_error | ( | zip_source_t * | _Nonnull | ) |
Definition at line 39 of file zip_source_error.c.
References src.
Referenced by _zip_error_set_from_source(), _zip_file_exists(), _zip_find_central_dir(), _zip_source_had_error(), copy_source(), main(), write_memory_src_to_file(), and zip_close().
ZIP_EXTERN zip_source_t* _Nullable zip_source_file | ( | zip_t * | _Nonnull, |
const char * | _Nonnull, | ||
zip_uint64_t | start, | ||
zip_int64_t | len | ||
) |
Definition at line 93 of file zip_source_file_stdio_named.c.
References zip::error, create_tags_rz::fname, len, NULL, start, za, and zip_source_file_create().
Referenced by add_file().
ZIP_EXTERN zip_source_t* _Nullable zip_source_file_create | ( | const char * | _Nonnull, |
zip_uint64_t | start, | ||
zip_int64_t | length, | ||
zip_error_t * | _Nullable | ||
) |
Definition at line 102 of file zip_source_file_stdio_named.c.
References error(), create_tags_rz::fname, free(), length, malloc(), NULL, ops_stdio_named, source, start, ZIP_ER_INVAL, ZIP_ER_MEMORY, zip_error_set(), zip_source_file_common_new(), and zip_source_win32w_create().
Referenced by open_file(), read_from_file(), zip_open(), and zip_source_file().
ZIP_EXTERN zip_source_t* _Nullable zip_source_filep | ( | zip_t * | _Nonnull, |
FILE * | _Nonnull, | ||
zip_uint64_t | start, | ||
zip_int64_t | len | ||
) |
Definition at line 70 of file zip_source_file_stdio.c.
References zip::error, len, NULL, start, za, and zip_source_filep_create().
Referenced by add_file(), and main().
ZIP_EXTERN zip_source_t* _Nullable zip_source_filep_create | ( | FILE * | _Nonnull, |
zip_uint64_t | start, | ||
zip_int64_t | length, | ||
zip_error_t * | _Nullable | ||
) |
Definition at line 80 of file zip_source_file_stdio.c.
References error(), length, NULL, ops_stdio_read, start, ZIP_ER_INVAL, zip_error_set(), and zip_source_file_common_new().
Referenced by zip_fdopen(), and zip_source_filep().
ZIP_EXTERN void zip_source_free | ( | zip_source_t * | _Nullable | ) |
Definition at line 41 of file zip_source_free.c.
References _zip_deregister_source(), _zip_source_call(), free(), NULL, src, zip_source_close(), ZIP_SOURCE_FREE, zip_source_free(), ZIP_SOURCE_IS_OPEN_READING, ZIP_SOURCE_IS_OPEN_WRITING, and zip_source_rollback_write().
Referenced by _zip_source_zip_new(), _zip_unchange_data(), add(), add_data(), add_file(), add_from_zip(), add_nul(), LLVMFuzzerTestOneInput(), main(), merge_zip(), read_from_file(), read_hole(), read_to_memory(), replace_file_contents(), rz_io_zip_flush_file(), windows_open(), zip_close(), zip_dir_add(), zip_discard(), zip_fclose(), zip_fdopen(), zip_fopen_index_encrypted(), zip_open(), zip_source_free(), and ziptool_post_close().
ZIP_EXTERN zip_source_t* _Nullable zip_source_function | ( | zip_t * | _Nonnull, |
zip_source_callback | _Nonnull, | ||
void * | _Nullable | ||
) |
Definition at line 41 of file zip_source_function.c.
References zip::error, NULL, za, and zip_source_function_create().
Referenced by source_nul().
ZIP_EXTERN zip_source_t* _Nullable zip_source_function_create | ( | zip_source_callback | _Nonnull, |
void * | _Nullable, | ||
zip_error_t * | _Nullable | ||
) |
Definition at line 51 of file zip_source_function.c.
References _zip_source_new(), zip_source::cb, error(), zip_source::f, NULL, zip_source::supports, zip_source::ud, zip_source_make_command_bitmap(), ZIP_SOURCE_SUPPORTS, and ZIP_SOURCE_SUPPORTS_READABLE.
Referenced by source_hole_create(), zip_source_buffer_fragment_with_attributes_create(), zip_source_file_common_new(), and zip_source_function().
ZIP_EXTERN int zip_source_get_file_attributes | ( | zip_source_t * | _Nonnull, |
zip_file_attributes_t * | _Nonnull | ||
) |
Definition at line 43 of file zip_source_get_file_attributes.c.
References _zip_error_set_from_source(), _zip_source_call(), zip_file_attributes::ascii, zip_file_attributes::external_file_attributes, zip_file_attributes::general_purpose_bit_flags, zip_file_attributes::general_purpose_bit_mask, zip_file_attributes::host_system, NULL, src, zip_file_attributes::valid, zip_file_attributes::version_needed, ZIP_ER_INVAL, zip_error_set(), ZIP_FILE_ATTRIBUTES_ASCII, ZIP_FILE_ATTRIBUTES_EXTERNAL_FILE_ATTRIBUTES, ZIP_FILE_ATTRIBUTES_GENERAL_PURPOSE_BIT_FLAGS, ZIP_FILE_ATTRIBUTES_HOST_SYSTEM, zip_file_attributes_init(), ZIP_FILE_ATTRIBUTES_VERSION_NEEDED, ZIP_MAX, ZIP_SOURCE_GET_FILE_ATTRIBUTES, zip_source_get_file_attributes(), ZIP_SOURCE_IS_LAYERED, and ZIP_SOURCE_MAKE_COMMAND_BITMASK.
Referenced by add_data(), compress_callback(), and zip_source_get_file_attributes().
ZIP_EXTERN int zip_source_is_deleted | ( | zip_source_t * | _Nonnull | ) |
Definition at line 39 of file zip_source_is_deleted.c.
References src, and ZIP_SOURCE_WRITE_REMOVED.
Referenced by main().
ZIP_EXTERN void zip_source_keep | ( | zip_source_t * | _Nonnull | ) |
Definition at line 70 of file zip_source_function.c.
References src.
Referenced by _zip_open(), add_data(), main(), read_to_memory(), and zip_source_layered_create().
ZIP_EXTERN zip_int64_t zip_source_make_command_bitmap | ( | zip_source_cmd_t | cmd0, |
... | |||
) |
Definition at line 47 of file zip_source_supports.c.
References cmd, and ZIP_SOURCE_MAKE_COMMAND_BITMASK.
Referenced by _zip_source_window_new(), compress_callback(), crc_read(), pkware_decrypt(), pkware_encrypt(), read_data(), source_hole_cb(), source_nul_cb(), winzip_aes_decrypt(), winzip_aes_encrypt(), zip_source_file_common_new(), and zip_source_function_create().
ZIP_EXTERN int zip_source_open | ( | zip_source_t * | _Nonnull | ) |
Definition at line 38 of file zip_source_open.c.
References _zip_error_clear(), _zip_error_set_from_source(), _zip_source_call(), NULL, src, ZIP_ER_DELETED, ZIP_ER_INUSE, zip_error_set(), zip_source_close(), ZIP_SOURCE_IS_LAYERED, ZIP_SOURCE_IS_OPEN_READING, ZIP_SOURCE_MAKE_COMMAND_BITMASK, ZIP_SOURCE_OPEN, zip_source_open(), ZIP_SOURCE_SEEK, zip_source_supports(), and ZIP_SOURCE_WRITE_REMOVED.
Referenced by copy_source(), main(), write_memory_src_to_file(), zip_fopen_index_encrypted(), zip_open_from_source(), and zip_source_open().
ZIP_EXTERN zip_int64_t zip_source_read | ( | zip_source_t * | _Nonnull, |
void * | _Nonnull, | ||
zip_uint64_t | len | ||
) |
Definition at line 39 of file zip_source_read.c.
References _zip_source_call(), _zip_source_eof(), len, n, NULL, src, ZIP_ER_INVAL, zip_error_set(), ZIP_INT64_MAX, ZIP_SOURCE_IS_OPEN_READING, ZIP_SOURCE_READ, and ZIP_UINT64_MAX.
Referenced by _zip_file_get_end(), _zip_read(), compress_read(), copy_source(), crc_read(), decrypt_header(), main(), pkware_decrypt(), pkware_encrypt(), verify_hmac(), window_read(), winzip_aes_decrypt(), winzip_aes_encrypt(), write_memory_src_to_file(), and zip_fread().
ZIP_EXTERN void zip_source_rollback_write | ( | zip_source_t * | _Nonnull | ) |
Definition at line 39 of file zip_source_rollback_write.c.
References _zip_source_call(), NULL, src, ZIP_SOURCE_ROLLBACK_WRITE, ZIP_SOURCE_WRITE_CLOSED, ZIP_SOURCE_WRITE_FAILED, and ZIP_SOURCE_WRITE_OPEN.
Referenced by copy_source(), zip_close(), zip_source_free(), and zip_source_remove().
ZIP_EXTERN int zip_source_seek | ( | zip_source_t * | _Nonnull, |
zip_int64_t | offset, | ||
int | whence | ||
) |
Definition at line 39 of file zip_source_seek.c.
References _zip_source_call(), args, SEEK_CUR, SEEK_END, SEEK_SET, src, ZIP_ER_INVAL, zip_error_set(), ZIP_SOURCE_IS_OPEN_READING, and ZIP_SOURCE_SEEK.
Referenced by _zip_checkcons(), _zip_dirent_size(), _zip_file_get_end(), _zip_file_get_offset(), _zip_find_central_dir(), _zip_read_cdir(), _zip_read_eocd64(), _zip_read_local_ef(), crc_read(), window_read(), zip_close(), and zip_fseek().
ZIP_EXTERN zip_int64_t zip_source_seek_compute_offset | ( | zip_uint64_t | offset, |
zip_uint64_t | length, | ||
void * | _Nonnull, | ||
zip_uint64_t | data_length, | ||
zip_error_t * | _Nullable | ||
) |
Definition at line 63 of file zip_source_seek.c.
References args, error(), length, NULL, SEEK_CUR, SEEK_END, SEEK_SET, ZIP_ER_INVAL, zip_error_set(), and ZIP_SOURCE_GET_ARGS.
Referenced by buffer_seek(), read_file(), and window_read().
ZIP_EXTERN int zip_source_seek_write | ( | zip_source_t * | _Nonnull, |
zip_int64_t | offset, | ||
int | whence | ||
) |
Definition at line 39 of file zip_source_seek_write.c.
References _zip_source_call(), args, SEEK_CUR, SEEK_END, SEEK_SET, src, ZIP_ER_INVAL, zip_error_set(), ZIP_SOURCE_IS_OPEN_WRITING, and ZIP_SOURCE_SEEK_WRITE.
Referenced by add_data().
ZIP_EXTERN int zip_source_stat | ( | zip_source_t * | _Nonnull, |
zip_stat_t * | _Nonnull | ||
) |
Definition at line 39 of file zip_source_stat.c.
References _zip_error_set_from_source(), _zip_source_call(), NULL, src, ZIP_ER_INVAL, zip_error_set(), ZIP_SOURCE_IS_LAYERED, ZIP_SOURCE_STAT, zip_source_stat(), and zip_stat_init().
Referenced by _zip_file_exists(), _zip_open(), add_data(), compress_callback(), crc_read(), decrypt_header(), encrypt_header(), main(), write_memory_src_to_file(), zip_source_stat(), zip_source_winzip_aes_decode(), and zip_stat_index().
ZIP_EXTERN zip_int64_t zip_source_tell | ( | zip_source_t * | _Nonnull | ) |
Definition at line 39 of file zip_source_tell.c.
References _zip_source_call(), EOVERFLOW, NULL, src, ZIP_ER_INVAL, ZIP_ER_TELL, zip_error_set(), ZIP_INT64_MAX, ZIP_SOURCE_IS_OPEN_READING, ZIP_SOURCE_MAKE_COMMAND_BITMASK, ZIP_SOURCE_SEEK, and ZIP_SOURCE_TELL.
Referenced by _zip_find_central_dir(), _zip_read_cdir(), crc_read(), window_read(), and zip_ftell().
ZIP_EXTERN zip_int64_t zip_source_tell_write | ( | zip_source_t * | _Nonnull | ) |
Definition at line 39 of file zip_source_tell_write.c.
References _zip_source_call(), NULL, src, ZIP_ER_INVAL, zip_error_set(), ZIP_SOURCE_IS_OPEN_WRITING, and ZIP_SOURCE_TELL_WRITE.
Referenced by _zip_cdir_write(), add_data(), write_cdir(), and zip_close().
ZIP_EXTERN zip_source_t* _Nullable zip_source_window_create | ( | zip_source_t * | _Nonnull, |
zip_uint64_t | start, | ||
zip_int64_t | len, | ||
zip_error_t * | _Nullable | ||
) |
Definition at line 62 of file zip_source_window.c.
References _zip_source_window_new(), error(), len, NULL, src, and start.
Referenced by _zip_source_zip_new().
ZIP_EXTERN zip_int64_t zip_source_write | ( | zip_source_t * | _Nonnull, |
const void * | _Nullable, | ||
zip_uint64_t | length | ||
) |
Definition at line 39 of file zip_source_write.c.
References _zip_source_call(), length, src, ZIP_ER_INVAL, zip_error_set(), ZIP_INT64_MAX, ZIP_SOURCE_IS_OPEN_WRITING, and ZIP_SOURCE_WRITE.
Referenced by _zip_write(), and copy_source().
ZIP_EXTERN zip_source_t* _Nullable zip_source_zip | ( | zip_t * | _Nonnull, |
zip_t * | _Nonnull, | ||
zip_uint64_t | srcidx, | ||
zip_flags_t | flags, | ||
zip_uint64_t | start, | ||
zip_int64_t | len | ||
) |
Definition at line 57 of file zip_source_zip.c.
References zip::error, flags, len, start, za, and zip_source_zip_create().
Referenced by add_from_zip(), and merge_zip().
ZIP_EXTERN zip_source_t* _Nullable zip_source_zip_create | ( | zip_t * | _Nonnull, |
zip_uint64_t | srcidx, | ||
zip_flags_t | flags, | ||
zip_uint64_t | start, | ||
zip_int64_t | len, | ||
zip_error_t * | _Nullable | ||
) |
Definition at line 39 of file zip_source_zip.c.
References _zip_source_zip_new(), error(), flags, len, NULL, start, ZIP_ER_INVAL, zip_error_set(), and ZIP_FL_COMPRESSED.
Referenced by zip_source_zip().
ZIP_EXTERN int zip_stat | ( | zip_t * | _Nonnull, |
const char * | _Nonnull, | ||
zip_flags_t | flags, | ||
zip_stat_t * | _Nonnull | ||
) |
Definition at line 39 of file zip_stat.c.
References flags, create_tags_rz::fname, setup::idx, za, zip_name_locate(), and zip_stat_index().
ZIP_EXTERN int zip_stat_index | ( | zip_t * | _Nonnull, |
zip_uint64_t | index, | ||
zip_flags_t | flags, | ||
zip_stat_t * | _Nonnull | ||
) |
Definition at line 39 of file zip_stat_index.c.
References _zip_get_dirent(), zip_stat::comp_method, zip_dirent::comp_method, zip_stat::comp_size, zip_dirent::comp_size, zip_stat::crc, zip_dirent::crc, zip_dirent::crc_valid, zip_stat::encryption_method, zip_dirent::encryption_method, zip::entry, zip::error, flags, zip_stat::index, zip_dirent::last_mod, zip_stat::mtime, name, zip_stat::name, NULL, zip_stat::size, zip_dirent::uncomp_size, zip_stat::valid, za, ZIP_DIRENT_LAST_MOD, ZIP_ENTRY_DATA_CHANGED, ZIP_ER_CHANGED, zip_error_set(), ZIP_FL_UNCHANGED, zip_get_name(), zip_source_stat(), ZIP_STAT_COMP_METHOD, ZIP_STAT_COMP_SIZE, ZIP_STAT_CRC, ZIP_STAT_ENCRYPTION_METHOD, ZIP_STAT_INDEX, zip_stat_init(), ZIP_STAT_MTIME, ZIP_STAT_NAME, and ZIP_STAT_SIZE.
Referenced by _zip_source_zip_new(), confirm_replace(), list_zip(), rz_io_zip_alloc_zipfileobj(), rz_io_zip_get_by_file_idx(), rz_io_zip_get_files(), rz_io_zip_slurp_file(), zip_stat(), and zstat().
ZIP_EXTERN void zip_stat_init | ( | zip_stat_t * | _Nonnull | ) |
Definition at line 40 of file zip_stat_init.c.
References zip_stat::comp_method, zip_stat::comp_size, zip_stat::crc, zip_stat::encryption_method, zip_stat::index, zip_stat::mtime, zip_stat::name, NULL, zip_stat::size, zip_stat::valid, ZIP_CM_STORE, ZIP_EM_NONE, and ZIP_UINT64_MAX.
Referenced by _zip_file_exists(), _zip_open(), _zip_source_window_new(), add_data(), read_data(), rz_io_zip_alloc_zipfileobj(), rz_io_zip_get_by_file_idx(), rz_io_zip_get_files(), rz_io_zip_slurp_file(), zip_source_file_common_new(), zip_source_stat(), and zip_stat_index().
ZIP_EXTERN const char* _Nonnull zip_strerror | ( | zip_t * | _Nonnull | ) |
Definition at line 39 of file zip_strerror.c.
References zip::error, za, and zip_error_strerror().
Referenced by add(), add_dir(), add_file(), add_from_zip(), add_nul(), cat(), confirm_replace(), count_extra(), count_extra_by_id(), delete(), delete_extra(), delete_extra_by_id(), get_extra(), get_extra_by_id(), get_file_comment(), is_seekable(), main(), merge_zip(), replace_file_contents(), seek(), set_archive_comment(), set_extra(), set_file_comment(), set_file_compression(), set_file_dostime(), set_file_encryption(), set_file_mtime(), set_file_mtime_all(), test_file(), unchange_all(), unchange_one(), zin_close(), zrename(), and zstat().
ZIP_EXTERN int zip_unchange | ( | zip_t * | _Nonnull, |
zip_uint64_t | idx | ||
) |
Definition at line 41 of file zip_unchange.c.
References _zip_unchange(), setup::idx, and za.
Referenced by unchange_one().
ZIP_EXTERN int zip_unchange_all | ( | zip_t * | _Nonnull | ) |
Definition at line 39 of file zip_unchange_all.c.
References _zip_hash_revert(), _zip_unchange(), zip::error, i, zip::names, zip::nentry, za, and zip_unchange_archive().
Referenced by main(), and unchange_all().
ZIP_EXTERN int zip_unchange_archive | ( | zip_t * | _Nonnull | ) |
Definition at line 41 of file zip_unchange_archive.c.
References _zip_string_free(), zip::ch_flags, zip::comment_changed, zip::comment_changes, zip::flags, NULL, and za.
Referenced by zip_unchange_all().