Lines Matching refs:method

174 	const struct compressor *method;  in main()  local
187 method = M_DEFLATE; in main()
192 method = M_DEFLATE; in main()
194 method = M_COMPRESS; in main()
197 optstr = method->opts; in main()
217 strlcpy(suffix, method->suffix, sizeof(suffix)); in main()
219 if (method == M_DEFLATE && (p = getenv("GZIP")) != NULL) { in main()
257 method = M_DEFLATE; in main()
258 strlcpy(suffix, method->suffix, sizeof(suffix)); in main()
284 method = M_DEFLATE; in main()
285 strlcpy(suffix, method->suffix, sizeof(suffix)); in main()
304 method = M_COMPRESS; in main()
305 strlcpy(suffix, method->suffix, sizeof(suffix)); in main()
468 error = docompress(infile, outfile, method, bits, entry->fts_statp); in main()
555 docompress(const char *in, char *out, const struct compressor *method, in docompress() argument
578 if (method != M_COMPRESS && !force && isatty(ofd)) { in docompress()
592 if ((cookie = method->wopen(ofd, name, bits, mtime)) == NULL) { in docompress()
603 if (method->write(cookie, buf, nr) != nr) { in docompress()
616 if (method->close(cookie, &info, out, sb)) { in docompress()
652 const struct compressor *method; in check_method() local
657 for (method = &c_table[0]; method->name != NULL; method++) { in check_method()
658 if (magic[0] == method->magic[0] && in check_method()
659 magic[1] == method->magic[1]) in check_method()
660 return (method); in check_method()
675 const struct compressor *method; in dodecompress() local
687 if ((method = check_method(ifd)) == NULL) { in dodecompress()
696 if ((cookie = method->ropen(ifd, oldname, 1)) == NULL) { in dodecompress()
720 method->close(cookie, NULL, NULL, NULL); in dodecompress()
725 while ((nr = method->read(cookie, buf, sizeof(buf))) > 0) { in dodecompress()
741 if (method->close(cookie, &info, NULL, NULL) && !error) { in dodecompress()
776 list_stats(out, method, &info); in dodecompress()
904 list_stats(const char *name, const struct compressor *method, in list_stats() argument
928 printf("%-7.7s %08x %s ", method->name, info->crc, in list_stats()