Lines Matching +defs:name +defs:pos
48 has a minimal ten-byte gzip header with no file name or modification time.
78 char *name; /* name of file for error messages */
99 local bin *bopen(char *name)
107 in->fd = open(name, O_RDONLY, 0);
114 in->name = name;
141 bail("unexpected end of file on ", in->name))
183 bail("unexpected end of file on ", in->name);
195 bail("unexpected end of file on ", in->name);
209 bail(in->name, " is not a valid gzip file");
214 bail("unknown reserved bits set in ", in->name);
228 /* skip file name if present */
258 bail("unexpected end of file on ", in->name);
271 /* Copy the compressed data from name, zeroing the last block bit of the last
278 local void gzcopy(char *name, int clr, unsigned long *crc, unsigned long *tot,
282 int pos; /* where the "last block" bit is in byte */
291 in = bopen(name);
293 bail("could not open ", name);
333 bail("invalid compressed data in ", in->name);
346 pos = strm.data_type & 7;
349 if (pos != 0) {
351 pos = 0x100 >> pos;
352 last = strm.next_in[-1] & pos;
354 strm.next_in[-1] &= ~pos;
377 pos = strm.data_type & 7;
380 if (pos == 0 || !clr)
385 last &= ((0x100 >> pos) - 1); /* assure unused bits are zero */
386 if (pos & 1) {
389 if (pos == 1)
395 switch (pos) {
430 /* skip command name */