99 ctx->ops_userdata = ops_userdata;
158 ctx->st.mtime =
sb.mtime;
161 if (
sb.regular_file) {
164 if (
ctx->start +
ctx->len >
sb.size) {
187 if (
ops->create_temp_output_cloning !=
NULL) {
221 return ctx->ops->create_temp_output(
ctx);
229 return ctx->ops->create_temp_output_cloning(
ctx,
len);
261 if (
len <
sizeof(
ctx->attributes)) {
265 memcpy(data, &
ctx->attributes,
sizeof(
ctx->attributes));
266 return sizeof(
ctx->attributes);
270 if (
ctx->ops->open(
ctx) ==
false) {
275 if (
ctx->start > 0) {
305 return ctx->ops->remove(
ctx);
308 ctx->ops->rollback_write(
ctx);
317 if (new_offset < 0) {
350 if (
len <
sizeof(
ctx->st))
359 return sizeof(
ctx->st);
363 return ctx->supports;
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void start
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags cmd
RZ_API void Ht_() free(HtName_(Ht) *ht)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
ZIP_EXTERN void zip_error_set(zip_error_t *_Nullable, int, int)
#define ZIP_SOURCE_SUPPORTS_SEEKABLE
#define ZIP_SOURCE_SUPPORTS_READABLE
ZIP_EXTERN void zip_file_attributes_init(zip_file_attributes_t *_Nonnull)
#define ZIP_SOURCE_SUPPORTS_WRITABLE
ZIP_EXTERN int zip_error_code_system(const zip_error_t *_Nonnull)
ZIP_EXTERN zip_int64_t zip_source_seek_compute_offset(zip_uint64_t, zip_uint64_t, void *_Nonnull, zip_uint64_t, zip_error_t *_Nullable)
ZIP_EXTERN void zip_stat_init(zip_stat_t *_Nonnull)
ZIP_EXTERN void zip_error_init(zip_error_t *_Nonnull)
enum zip_source_cmd zip_source_cmd_t
#define ZIP_SOURCE_MAKE_COMMAND_BITMASK(cmd)
@ ZIP_SOURCE_GET_FILE_ATTRIBUTES
@ ZIP_SOURCE_ACCEPT_EMPTY
@ ZIP_SOURCE_BEGIN_WRITE_CLONING
@ ZIP_SOURCE_ROLLBACK_WRITE
@ ZIP_SOURCE_COMMIT_WRITE
ZIP_EXTERN zip_source_t *_Nullable zip_source_function_create(zip_source_callback _Nonnull, void *_Nullable, zip_error_t *_Nullable)
ZIP_EXTERN zip_int64_t zip_source_make_command_bitmap(zip_source_cmd_t,...)
ZIP_EXTERN int zip_error_code_zip(const zip_error_t *_Nonnull)
ZIP_EXTERN zip_int64_t zip_error_to_data(const zip_error_t *_Nonnull, void *_Nonnull, zip_uint64_t)
#define ZIP_SOURCE_GET_ARGS(type, data, len, error)
void * malloc(size_t size)
static static fork const void static count static fd const char const char static newpath char char char static envp time
void error(const char *msg)
void _zip_error_copy(zip_error_t *dst, const zip_error_t *src)
static zip_int64_t read_file(void *state, void *data, zip_uint64_t len, zip_source_cmd_t cmd)
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 void zip_source_file_stat_init(zip_source_file_stat_t *st)