#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include "zlib.h"
Go to the source code of this file.
|
#define | local static |
|
#define | CHUNK 32768 /* must be a power of two and fit in unsigned */ |
|
#define | bget(in) |
|
|
int | bail (char *why1, char *why2) |
|
void | bclose (bin *in) |
|
bin * | bopen (char *name) |
|
int | bload (bin *in) |
|
unsigned long | bget4 (bin *in) |
|
void | bskip (bin *in, unsigned skip) |
|
void | gzhead (bin *in) |
|
void | put4 (unsigned long val, FILE *out) |
|
void | zpull (z_streamp strm, bin *in) |
|
void | gzinit (unsigned long *crc, unsigned long *tot, FILE *out) |
|
void | gzcopy (char *name, int clr, unsigned long *crc, unsigned long *tot, FILE *out) |
|
int | main (int argc, char **argv) |
|
◆ bget
Value:
in->left ? (
in->left--, *(
in->next)++) : \
bail(
"unexpected end of file on ",
in->name))
unsigned in(void *in_desc, z_const unsigned char **buf)
Definition at line 140 of file gzjoin.c.
◆ CHUNK
#define CHUNK 32768 /* must be a power of two and fit in unsigned */ |
◆ local
◆ bail()
int bail |
( |
char * |
why1, |
|
|
char * |
why2 |
|
) |
| |
◆ bclose()
◆ bget4()
◆ bload()
◆ bopen()
bin * bopen |
( |
char * |
name | ) |
|
◆ bskip()
void bskip |
( |
bin * |
in, |
|
|
unsigned |
skip |
|
) |
| |
◆ gzcopy()
void gzcopy |
( |
char * |
name, |
|
|
int |
clr, |
|
|
unsigned long * |
crc, |
|
|
unsigned long * |
tot, |
|
|
FILE * |
out |
|
) |
| |
Definition at line 279 of file gzjoin.c.
References z_stream_s::avail_in, z_stream_s::avail_out, bail(), bclose(), bget4(), bopen(), CHUNK, crc32_combine(), z_stream_s::data_type, free, gzhead(), in(), inflate(), inflateEnd(), inflateInit2, last, len, long(), malloc, name, z_stream_s::next_in, z_stream_s::next_out, NULL, z_stream_s::opaque, out, put4(), tot, Z_BLOCK, Z_DATA_ERROR, Z_MEM_ERROR, Z_NULL, z_off_t, Z_OK, z_stream_s::zalloc, z_stream_s::zfree, and zpull().
Referenced by main().
◆ gzhead()
◆ gzinit()
void gzinit |
( |
unsigned long * |
crc, |
|
|
unsigned long * |
tot, |
|
|
FILE * |
out |
|
) |
| |
◆ main()
◆ put4()
void put4 |
( |
unsigned long |
val, |
|
|
FILE * |
out |
|
) |
| |
◆ zpull()