Lines Matching refs:outname
548 local int gunzip(z_stream *strm, char *inname, char *outname, int test) in gunzip() argument
567 else if (outname == NULL || *outname == 0) { in gunzip()
568 outname = "-"; in gunzip()
572 outfile = open(outname, O_CREAT | O_TRUNC | O_WRONLY, 0666); in gunzip()
575 fprintf(stderr, "gun cannot create %s\n", outname); in gunzip()
591 copymeta(inname, outname); /* copy attributes */ in gunzip()
599 if (outfile > 2) unlink(outname); in gunzip()
603 if (outfile > 2) unlink(outname); in gunzip()
607 if (outfile > 2) unlink(outname); in gunzip()
610 outname, strerror(errno)); in gunzip()
622 if (outfile > 2) unlink(outname); in gunzip()
634 char *outname; in main() local
667 outname = NULL; in main()
683 outname = malloc(len + 1); in main()
684 if (outname == NULL) { in main()
689 memcpy(outname, *argv, len); in main()
690 outname[len] = 0; in main()
692 ret = gunzip(&strm, *argv, outname, test); in main()
693 if (outname != NULL) free(outname); in main()