Lines Matching refs: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)
119 static uLong ZCALLBACK fread_file_func(voidpf opaque, voidpf stream, void* buf, uLong size) {
122 ret = (uLong)fread(buf, 1, (size_t)size, (FILE *)stream);
126 static uLong ZCALLBACK fwrite_file_func(voidpf opaque, voidpf stream, const void* buf, uLong size) {
129 ret = (uLong)fwrite(buf, 1, (size_t)size, (FILE *)stream);
133 static long ZCALLBACK ftell_file_func(voidpf opaque, voidpf stream) {
136 ret = ftell((FILE *)stream);
141 static ZPOS64_T ZCALLBACK ftell64_file_func(voidpf opaque, voidpf stream) {
144 ret = (ZPOS64_T)FTELLO_FUNC((FILE *)stream);
148 static long ZCALLBACK fseek_file_func(voidpf opaque, voidpf stream, uLong offset, int origin) {
166 if (fseek((FILE *)stream, (long)offset, fseek_origin) != 0)
171 static long ZCALLBACK fseek64_file_func(voidpf opaque, voidpf stream, ZPOS64_T offset, int origin) {
190 if(FSEEKO_FUNC((FILE *)stream, (z_off64_t)offset, fseek_origin) != 0)
197 static int ZCALLBACK fclose_file_func(voidpf opaque, voidpf stream) {
200 ret = fclose((FILE *)stream);
204 static int ZCALLBACK ferror_file_func(voidpf opaque, voidpf stream) {
207 ret = ferror((FILE *)stream);