68 fprintf(stderr,
"gzjoin error: %s%s, output incomplete\n", why1, why2);
109 if (
in->buf ==
NULL ||
in->fd == -1) {
136 return len == 0 ? 1 : 0;
140 #define bget(in) (in->left ? 0 : bload(in), \
141 in->left ? (in->left--, *(in->next)++) : \
142 bail("unexpected end of file on ", in->name))
164 if (skip <= in->left) {
184 bail(
"unexpected end of file on ",
in->name);
196 bail(
"unexpected end of file on ",
in->name);
210 bail(
in->name,
" is not a valid gzip file");
214 if ((
flags & 0xe0) != 0)
215 bail(
"unknown reserved bits set in ",
in->name);
248 putc((
val >> 8) & 0xff,
out);
249 putc((
val >> 16) & 0xff,
out);
250 putc((
val >> 24) & 0xff,
out);
259 bail(
"unexpected end of file on ",
in->name);
267 fwrite(
"\x1f\x8b\x08\0\0\0\0\0\0\xff", 1, 10,
out);
286 unsigned char *
start;
307 bail(
"out of memory",
"");
332 bail(
"out of memory",
"");
334 bail(
"invalid compressed data in ",
in->name);
341 if (
strm.data_type & 128) {
381 if (
pos == 0 || !clr)
386 last &= ((0x100 >>
pos) - 1);
392 fwrite(
"\0\0\xff\xff", 1, 4,
out);
401 putc(last | 0x20,
out);
404 putc(last | 0x80,
out);
429 unsigned long crc,
tot;
437 fputs(
"gzjoin usage: gzjoin f1.gz [f2.gz [f3.gz ...]] > fjoin.gz\n",
const lzma_allocator const uint8_t * in
const lzma_allocator const uint8_t size_t uint8_t * out
static static fork const void static count close
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void start
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags long
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep lseek
void skip(file *in, unsigned n)
void gzinit(unsigned long *crc, unsigned long *tot, FILE *out)
int main(int argc, char **argv)
void gzcopy(char *name, int clr, unsigned long *crc, unsigned long *tot, FILE *out)
int bail(char *why1, char *why2)
void zpull(z_streamp strm, bin *in)
unsigned long bget4(bin *in)
void bskip(bin *in, unsigned skip)
void put4(unsigned long val, FILE *out)
RZ_API void Ht_() free(HtName_(Ht) *ht)
int ZEXPORT inflate(z_streamp strm, int flush)
int ZEXPORT inflateEnd(z_streamp strm)
void * malloc(size_t size)
static static fork const void static count static fd const char const char static newpath char char argv
static void struct sockaddr socklen_t static fromlen static backlog static fork char char char static envp int struct rusage static rusage struct utsname static buf struct sembuf unsigned
static struct sockaddr static addrlen static backlog const void static flags void flags
uLong ZEXPORT crc32_combine(uLong crc1, uLong crc2, z_off_t len2)
unsigned long ZEXPORT crc32(unsigned long crc, const unsigned char FAR *buf, uInt len)
#define inflateInit2(strm, windowBits)
int read(izstream &zs, T *x, Items items)