Lines Matching +defs:prog +defs:mode
13 * or in pipe mode.
172 static gzFile gz_open(const char *path, int fd, const char *mode)
180 gz->write = strchr(mode, 'w') != NULL;
207 static gzFile gzopen(const char *path, const char *mode)
209 return gz_open(path, -1, mode);
212 static gzFile gzdopen(int fd, const char *mode)
214 return gz_open(NULL, fd, mode);
302 static char *prog;
309 fprintf(stderr, "%s: %s\n", prog, msg);
442 static void file_compress(char *file, char *mode)
449 fprintf(stderr, "%s: filename too long\n", prog);
465 out = gzopen(outfile, mode);
467 fprintf(stderr, "%s: can't gzopen %s\n", prog, outfile);
488 fprintf(stderr, "%s: filename too long\n", prog);
513 fprintf(stderr, "%s: can't gzopen %s\n", prog, infile);
551 prog = argv[0];
636 fprintf(stderr, "%s: can't gzopen %s\n", prog, *argv);