Lines Matching refs:fileptr

329 	char **filelist, **fileptr;  in main()  local
361 filelist = fileptr = (char **)(malloc((argc + 1) * sizeof (*argv))); in main()
496 *fileptr++ = argv[optind]; /* Build input file list */ in main()
497 *fileptr = NULL; in main()
507 if (fileptr - filelist == 0) { in main()
508 *fileptr++ = "-"; in main()
509 *fileptr = NULL; in main()
512 if (fileptr - filelist > 1 && cflg && !do_decomp) { in main()
539 for (fileptr = filelist; *fileptr; fileptr++) { in main()
547 if (strcmp(*fileptr, "-") == 0) { in main()
552 *fileptr = "stdin"; /* for error messages */ in main()
567 if (strcmp(*fileptr + in main()
568 strlen(*fileptr) - 2, ".Z") != 0) { in main()
571 if (strlcpy(tempname, *fileptr, in main()
577 *fileptr); in main()
588 *fileptr = tempname; in main()
593 if (stat(*fileptr, &statbuf) < 0) { in main()
594 perror(*fileptr); in main()
599 if ((freopen(*fileptr, "r", inp)) == NULL) { in main()
600 perror(*fileptr); in main()
616 *fileptr); in main()
624 perror(*fileptr); in main()
639 *fileptr, maxbits, BITS); in main()
648 if (strlcpy(ofname, *fileptr, in main()
654 *fileptr); in main()
661 ofname[strlen(*fileptr) - 2] = '\0'; in main()
666 if (strcmp(*fileptr, "-") == 0) { in main()
671 *fileptr = "stdin"; /* for error messages */ in main()
687 if (strcmp(*fileptr + in main()
688 strlen(*fileptr) - 2, ".Z") == 0) { in main()
692 *fileptr); in main()
698 if (stat(*fileptr, &statbuf) < 0) { in main()
699 perror(*fileptr); in main()
704 if ((freopen(*fileptr, "r", inp)) == NULL) { in main()
705 perror(*fileptr); in main()
734 if (strlcpy(ofname, *fileptr, in main()
740 *fileptr); in main()
791 "und.\n"), *fileptr); in main()
812 *fileptr); in main()
817 *fileptr); in main()
857 " input\n"), *fileptr); in main()
859 perror(*fileptr); in main()
889 copystat(*fileptr, &statbuf, ofname); in main()
905 *fileptr); in main()