Home | History | Annotate | Download | only in examples

Lines Matching refs:outname

539    inname is NULL or an empty string, read from stdin.  If outname is NULL or
542 outname.
547 local int gunzip(z_stream *strm, char *inname, char *outname, int test)
566 else if (outname == NULL || *outname == 0) {
567 outname = "-";
571 outfile = open(outname, O_CREAT | O_TRUNC | O_WRONLY, 0666);
574 fprintf(stderr, "gun cannot create %s\n", outname);
590 copymeta(inname, outname); /* copy attributes */
598 if (outfile > 2) unlink(outname);
602 if (outfile > 2) unlink(outname);
606 if (outfile > 2) unlink(outname);
609 outname, strerror(errno));
621 if (outfile > 2) unlink(outname);
633 char *outname;
666 outname = NULL;
682 outname = malloc(len + 1);
683 if (outname == NULL) {
688 memcpy(outname, *argv, len);
689 outname[len] = 0;
691 ret = gunzip(&strm, *argv, outname, test);
692 if (outname != NULL) free(outname);