Lines Matching full:gz
22 files with the .gz suffix.
38 files without the .gz suffix.
72 gzFile gz; local
78 if (!(gz = gzdopen(dd ? in_fd : out_fd, b))) perror_exit("gzdopen");
80 while ((len = gzread(gz, toybuf, sizeof(toybuf))) > 0)
84 if (len != gzwrite(gz, toybuf, len)) break;
90 error_msg("%s%s: %s", "gz", dd ? "read" : "write", gzerror(gz, &len));
92 if (gzclose(gz) != Z_OK) perror_msg("gzclose"), err++;
127 // Are we reading file.gz to write to file? in do_gzip()
131 if (!(toys.optflags&FLAG_d)) out_name = xmprintf("%s%s", arg, ".gz"); in do_gzip()
133 // "gunzip x.gz" will decompress "x.gz" to "x". in do_gzip()
134 if ((len = strlen(arg))<4 || strcmp(arg+len-3, ".gz")) in do_gzip()
135 return error_msg("no .gz: %s", arg); in do_gzip()