Lines Matching defs:gz
23 files with the .gz suffix.
39 files without the .gz suffix.
73 gzFile gz;
79 if (!(gz = gzdopen(dd ? in_fd : out_fd, b))) perror_exit("gzdopen");
81 if (gzdirect(gz)) error_exit("not gzip");
82 while ((len = gzread(gz, toybuf, sizeof(toybuf))) > 0)
86 if (len != gzwrite(gz, toybuf, len)) break;
92 error_msg("%s%s: %s", "gz", dd ? "read" : "write", gzerror(gz, &len));
94 if (gzclose(gz) != Z_OK) perror_msg("gzclose"), err++;
128 // Are we reading file.gz to write to file?
132 // Add or remove .gz suffix as necessary
133 if (!FLAG(d)) out = xmprintf("%s%s", in, ".gz");
134 else if ((out = strend(in, ".gz"))>in) out = xstrndup(in, out-in);
135 else return error_msg("no .gz: %s", in);