#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) |
|
|
static int | bail (char *why1, char *why2) |
|
static void | bclose (bin *in) |
|
static bin * | bopen (char *name) |
|
static int | bload (bin *in) |
|
static unsigned long | bget4 (bin *in) |
|
static void | bskip (bin *in, unsigned skip) |
|
static void | gzhead (bin *in) |
|
static void | put4 (unsigned long val, FILE *out) |
|
static void | zpull (z_streamp strm, bin *in) |
|
static void | gzinit (unsigned long *crc, unsigned long *tot, FILE *out) |
|
static void | gzcopy (char *name, int clr, unsigned long *crc, unsigned long *tot, FILE *out) |
|
int | main (int argc, char **argv) |
|
Definition at line 78 of file gzjoin.c.
Class Members |
unsigned char * |
buf |
|
int |
fd |
|
unsigned |
left |
|
char * |
name |
|
unsigned char * |
next |
|
Value: in->left ? (
in->left--, *(
in->next)++) : \
bail(
"unexpected end of file on ",
in->name))
static int bload(bin *in)
static unsigned in(void *in_desc, z_const unsigned char **buf)
Definition at line 140 of file gzjoin.c.
#define CHUNK 32768 /* must be a power of two and fit in unsigned */ |
static int bail |
( |
char * |
why1, |
|
|
char * |
why2 |
|
) |
| |
|
static |
static void bclose |
( |
bin * |
in | ) |
|
|
static |
static unsigned long bget4 |
( |
bin * |
in | ) |
|
|
static |
static int bload |
( |
bin * |
in | ) |
|
|
static |
static bin* bopen |
( |
char * |
name | ) |
|
|
static |
static void bskip |
( |
bin * |
in, |
|
|
unsigned |
skip |
|
) |
| |
|
static |
static void gzcopy |
( |
char * |
name, |
|
|
int |
clr, |
|
|
unsigned long * |
crc, |
|
|
unsigned long * |
tot, |
|
|
FILE * |
out |
|
) |
| |
|
static |
static void gzhead |
( |
bin * |
in | ) |
|
|
static |
static void gzinit |
( |
unsigned long * |
crc, |
|
|
unsigned long * |
tot, |
|
|
FILE * |
out |
|
) |
| |
|
static |
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
static void put4 |
( |
unsigned long |
val, |
|
|
FILE * |
out |
|
) |
| |
|
static |