Home | History | Annotate | Download | only in examples

Lines Matching defs:bye

93 local void bye(char *msg1, char *msg2)
185 if (len == -1) bye("error reading ", in->name);
194 if (readin(in) == 0) bye("unexpected end of ", in->name);
211 bye("seeking ", in->name);
216 bye("unexpected end of ", in->name);
240 if (read1(in) != 31 || read1(in) != 139) bye(in->name, " not a gzip file");
241 if (read1(in) != 8) bye("unknown compression method in", in->name);
243 if (flags & 0xe0) bye("unknown header flags set in", in->name);
271 if (gz.fd == -1) bye("cannot open ", name);
273 if (gz.buf == NULL) bye("out of memory", "");
282 if (window == NULL) bye("out of memory", "");
287 if (ret != Z_OK) bye("out of memory", " or library mismatch");
311 if (ret == Z_STREAM_ERROR) bye("internal stream error!", "");
312 if (ret == Z_MEM_ERROR) bye("out of memory", "");
314 bye("invalid compressed data--format violated in", name);
344 bye("invalid compressed data--crc mismatch in ", name);
347 bye("invalid compressed data--length mismatch in", name);
356 if (read(gz.fd, gz.buf, 1) != 1) bye("reading after seek on ", name);
359 if (write(gz.fd, gz.buf, 1) != 1) bye("writing after seek to ", name);
369 if (ret != Z_OK) bye("out of memory", "");
375 if (read(gz.fd, gz.buf, 1) != 1) bye("reading after seek on ", name);
406 if (in == NULL || out == NULL) bye("out of memory", "");
430 if (len == -1) bye("writing gzip file", "");
450 if (ret == -1) bye("writing gzip file", "");
488 bye("invalid compression level", "");
490 if (*++argv == NULL) bye("no gzip file name after options", "");