Lines Matching refs:outname
531 inname is NULL or an empty string, read from stdin. If outname is NULL or
534 outname.
539 local int gunzip(z_stream *strm, char *inname, char *outname, int test)
558 else if (outname == NULL || *outname == 0) {
559 outname = "-";
563 outfile = open(outname, O_CREAT | O_TRUNC | O_WRONLY, 0666);
566 fprintf(stderr, "gun cannot create %s\n", outname);
582 copymeta(inname, outname); /* copy attributes */
590 if (outfile > 2) unlink(outname);
594 if (outfile > 2) unlink(outname);
598 if (outfile > 2) unlink(outname);
601 outname, strerror(errno));
613 if (outfile > 2) unlink(outname);
625 char *outname;
658 outname = NULL;
674 outname = malloc(len + 1);
675 if (outname == NULL) {
680 memcpy(outname, *argv, len);
681 outname[len] = 0;
683 ret = gunzip(&strm, *argv, outname, test);
684 if (outname != NULL) free(outname);