Lines Matching defs:out
34 gzjoin takes one or more gzip files on the command line and writes out a
244 /* write a four-byte little-endian unsigned integer to out */
245 local void put4(unsigned long val, FILE *out)
247 putc(val & 0xff, out);
248 putc((val >> 8) & 0xff, out);
249 putc((val >> 16) & 0xff, out);
250 putc((val >> 24) & 0xff, out);
264 /* Write header for gzip file to out and initialize trailer. */
265 local void gzinit(unsigned long *crc, unsigned long *tot, FILE *out)
267 fwrite("\x1f\x8b\x08\0\0\0\0\0\0\xff", 1, 10, out);
277 gzip file is written to out. gzinit() must be called before the first call
280 FILE *out)
307 bail("out of memory", "");
320 fwrite(start, 1, strm.next_in - start, out);
332 bail("out of memory", "");
340 /* check for block boundary (only get this when block copied out) */
361 fwrite(start, 1, strm.next_in - start, out);
379 fwrite(start, 1, in->next - start - 1, out);
383 putc(last, out);
389 putc(last, out);
391 putc(0, out); /* two more bits in block header */
392 fwrite("\0\0\xff\xff", 1, 4, out);
398 putc(last | 8, out);
401 putc(last | 0x20, out);
404 putc(last | 0x80, out);
405 putc(0, out);
421 put4(*crc, out);
422 put4(*tot, out);