Lines Matching defs:compress
94 #define CE_PLAIN0 0x10 /* Do not compress zero'th history file */
120 static struct compressor compress[] =
386 for (ziptype = __arraycount(compress); --ziptype; ) {
387 if (*compress[ziptype].flag == qq)
439 compress[ziptype].flag));
485 for (j = 0; j < __arraycount(compress); j++) {
488 (void)strlcat(tmp, compress[j].suffix, sizeof(tmp));
542 for (j = 0; j < (int)__arraycount(compress); j++) {
545 (void)strlcat(file1, compress[j].suffix,
555 * specified, compress it. (This is convenient, but is also needed
565 compress[ziptype].suffix);
574 for (j = 0; j < (int)__arraycount(compress); j++) {
576 i - 1, compress[j].suffix);
578 i, compress[j].suffix);
767 * Fork off gzip(1) to compress a log file. This routine takes an
768 * additional string argument (the name of the file to compress): it is also
769 * used to compress historical log files other than the newest.
776 PRINFO(("%s %s %s\n", compress[ziptype].path, compress[ziptype].args,
785 (void)execl(compress[ziptype].path,
786 compress[ziptype].path, compress[ziptype].args, fn,
793 errx(EXIT_FAILURE, "%s failed", compress[ziptype].path);
796 (void)snprintf(tmp, sizeof(tmp), "%s%s", fn, compress[ziptype].suffix);