46 #define S_IWUSR _S_IWRITE
103 if ((
i = fread(
buf, 1, (
size_t)
len,
ctx->f)) == 0) {
116 #if ZIP_FSEEK_MAX > ZIP_INT64_MAX
163 ctx->attributes.external_file_attributes = (((
zip_uint32_t)
sb.st_mode) << 16) | ((
sb.st_mode & S_IWUSR) ? 0 : 1);
204 if ((fp = fdopen(
fd, writeable ?
"r+b" :
"rb")) ==
NULL) {
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 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 fstat
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 length
ZIP_EXTERN void zip_error_set(zip_error_t *_Nullable, int, int)
#define ZIP_FILE_ATTRIBUTES_HOST_SYSTEM
#define ZIP_FILE_ATTRIBUTES_EXTERNAL_FILE_ATTRIBUTES
static struct sockaddr static addrlen static backlog const void static flags void flags
void error(const char *msg)
static const z80_opcode fd[]
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)
void _zip_stdio_op_close(zip_source_file_context_t *ctx)
ZIP_EXTERN zip_source_t * zip_source_filep(zip_t *za, FILE *file, zip_uint64_t start, zip_int64_t len)
ZIP_EXTERN zip_source_t * zip_source_filep_create(FILE *file, zip_uint64_t start, zip_int64_t length, zip_error_t *error)
zip_int64_t _zip_stdio_op_read(zip_source_file_context_t *ctx, void *buf, zip_uint64_t len)
zip_int64_t _zip_stdio_op_tell(zip_source_file_context_t *ctx, void *f)
bool _zip_stdio_op_stat(zip_source_file_context_t *ctx, zip_source_file_stat_t *st)
FILE * _zip_fopen_close_on_exec(const char *name, bool writeable)
bool _zip_stdio_op_seek(zip_source_file_context_t *ctx, void *f, zip_int64_t offset, int whence)
static zip_source_file_operations_t ops_stdio_read