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