Lines Matching refs:input
51 static FILE *input = NULL; variable
326 if (input != NULL) { in next_input()
327 if ((input = freopen(files[curfile], "r", input)) != in next_input()
330 return (input); in next_input()
333 if ((input = fopen(files[curfile], "r")) != NULL) { in next_input()
335 return (input); in next_input()
355 while ((input != NULL) && (b->navail < (2 * blocksize))) { in refill()
360 (void) fclose(input); in refill()
361 input = NULL; in refill()
372 while (want && input) { in refill()
379 n = fread(b->data + b->prod, 1, c, input); in refill()
383 input = next_input(); in refill()
387 input = next_input(); in refill()
556 input = stdin; in main()
791 input = next_input(); in main()
793 input = stdin; in main()
799 while (skip && (input != NULL)) { in main()
806 if (fstat(fileno(input), &sbuf) < 0) { in main()
808 input = next_input(); in main()
818 input = next_input(); in main()
821 if (fseeko(input, skip, SEEK_SET) < 0) { in main()
833 flockfile(input); in main()
835 if (getc_unlocked(input) == EOF) { in main()
836 funlockfile(input); in main()
837 if (ferror(input)) { in main()
840 input = next_input(); in main()
841 if (input != NULL) { in main()
842 flockfile(input); in main()
848 if (input != NULL) in main()
849 funlockfile(input); in main()