Lines Matching defs:stream
20 #define FTELLO_FUNC(stream) ftello(stream)
21 #define FSEEKO_FUNC(stream, offset, origin) fseeko(stream, offset, origin)
24 #define FTELLO_FUNC(stream) ftello64(stream)
25 #define FSEEKO_FUNC(stream, offset, origin) fseeko64(stream, offset, origin)
123 static uLong ZCALLBACK fread_file_func(voidpf opaque, voidpf stream, void* buf, uLong size) {
126 ret = (uLong)fread(buf, 1, (size_t)size, (FILE *)stream);
130 static uLong ZCALLBACK fwrite_file_func(voidpf opaque, voidpf stream, const void* buf, uLong size) {
133 ret = (uLong)fwrite(buf, 1, (size_t)size, (FILE *)stream);
137 static long ZCALLBACK ftell_file_func(voidpf opaque, voidpf stream) {
140 ret = ftell((FILE *)stream);
145 static ZPOS64_T ZCALLBACK ftell64_file_func(voidpf opaque, voidpf stream) {
148 ret = (ZPOS64_T)FTELLO_FUNC((FILE *)stream);
152 static long ZCALLBACK fseek_file_func(voidpf opaque, voidpf stream, uLong offset, int origin) {
170 if (fseek((FILE *)stream, (long)offset, fseek_origin) != 0)
175 static long ZCALLBACK fseek64_file_func(voidpf opaque, voidpf stream, ZPOS64_T offset, int origin) {
194 if(FSEEKO_FUNC((FILE *)stream, (z_off64_t)offset, fseek_origin) != 0)
201 static int ZCALLBACK fclose_file_func(voidpf opaque, voidpf stream) {
204 ret = fclose((FILE *)stream);
208 static int ZCALLBACK ferror_file_func(voidpf opaque, voidpf stream) {
211 ret = ferror((FILE *)stream);