Home | History | Annotate | Download | only in examples

Lines Matching defs:outname

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