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