14 #define _CRT_SECURE_NO_WARNINGS
17#if (defined(__APPLE__))
20 #define ftello64 ftello
21 #define fseeko64 fseeko
43 if (offsetTruncated !=
offset)
57 if ((tell_uLong) == ((
uLong)-1))
93 const char* mode_fopen = NULL;
103 if ((
filename!=NULL) && (mode_fopen != NULL))
111 const char* mode_fopen = NULL;
121 if ((
filename!=NULL) && (mode_fopen != NULL))
122 file = fopen64((
const char*)
filename, mode_fopen);
144 ret = ftell((FILE *)
stream);
152 ret = ftello64((FILE *)
stream);
163 fseek_origin = SEEK_CUR;
166 fseek_origin = SEEK_END;
169 fseek_origin = SEEK_SET;
186 fseek_origin = SEEK_CUR;
189 fseek_origin = SEEK_END;
192 fseek_origin = SEEK_SET;
208 ret = fclose((FILE *)
stream);
215 ret = ferror((FILE *)
stream);
229 pzlib_filefunc_def->opaque = NULL;
241 pzlib_filefunc_def->
opaque = NULL;
static long ZCALLBACK fseek_file_func(voidpf opaque, voidpf stream, uLong offset, int origin)
static ZPOS64_T ZCALLBACK ftell64_file_func(voidpf opaque, voidpf stream)
void fill_zlib_filefunc64_32_def_from_filefunc32(zlib_filefunc64_32_def *p_filefunc64_32, const zlib_filefunc_def *p_filefunc32)
static long ZCALLBACK fseek64_file_func(voidpf opaque, voidpf stream, ZPOS64_T offset, int origin)
static voidpf ZCALLBACK fopen_file_func OF((voidpf opaque, const char *filename, int mode))
static int ZCALLBACK ferror_file_func(voidpf opaque, voidpf stream)
static uLong ZCALLBACK fwrite_file_func(voidpf opaque, voidpf stream, const void *buf, uLong size)
long call_zseek64(const zlib_filefunc64_32_def *pfilefunc, voidpf filestream, ZPOS64_T offset, int origin)
void fill_fopen64_filefunc(zlib_filefunc64_def *pzlib_filefunc_def)
void fill_fopen_filefunc(zlib_filefunc_def *pzlib_filefunc_def)
voidpf call_zopen64(const zlib_filefunc64_32_def *pfilefunc, const void *filename, int mode)
ZPOS64_T call_ztell64(const zlib_filefunc64_32_def *pfilefunc, voidpf filestream)
static voidpf ZCALLBACK fopen64_file_func(voidpf opaque, const void *filename, int mode)
static voidpf ZCALLBACK fopen_file_func(voidpf opaque, const char *filename, int mode)
static long ZCALLBACK ftell_file_func(voidpf opaque, voidpf stream)
static uLong ZCALLBACK fread_file_func(voidpf opaque, voidpf stream, void *buf, uLong size)
static int ZCALLBACK fclose_file_func(voidpf opaque, voidpf stream)
#define ZLIB_FILEFUNC_MODE_READWRITEFILTER
#define ZLIB_FILEFUNC_MODE_EXISTING
#define ZLIB_FILEFUNC_SEEK_CUR
#define ZLIB_FILEFUNC_SEEK_SET
#define ZLIB_FILEFUNC_MODE_CREATE
#define ZLIB_FILEFUNC_SEEK_END
#define ZLIB_FILEFUNC_MODE_READ
unsigned long long int ZPOS64_T
seek_file_func zseek32_file
zlib_filefunc64_def zfile_func64
open_file_func zopen32_file
tell_file_func ztell32_file
write_file_func zwrite_file
open64_file_func zopen64_file
read_file_func zread_file
tell64_file_func ztell64_file
close_file_func zclose_file
seek64_file_func zseek64_file
testerror_file_func zerror_file
seek_file_func zseek_file
open_file_func zopen_file
testerror_file_func zerror_file
write_file_func zwrite_file
read_file_func zread_file
close_file_func zclose_file
tell_file_func ztell_file