10 static int zlib_open(const char *fname, const char *mode)
12 gfd = gzopen(fname, mode);
18 static int zlib_read(void *p, int l)
20 return gzread(gfd, p, l);
23 static int zlib_write(void *p, int l)
25 return gzwrite(gfd, p, l);
28 static void zlib_close()
33 int (*statef_open)(const char *fname, const char *mode) = zlib_open;
34 int (*statef_read)(void *p, int l) = zlib_read;
35 int (*statef_write)(void *p, int l) = zlib_write;
36 void (*statef_close)() = zlib_close;