Lines Matching refs:input
399 if ((input[0] = fopen(file1, "r")) == NULL) {
405 initbuf(input[0], 0, 0);
407 if ((input[1] = fopen(file2, "r")) == NULL) {
413 initbuf(input[1], 1, 0);
419 i = fread(buf1, 1, BUFSIZ, input[0]);
420 j = fread(buf2, 1, BUFSIZ, input[1]);
421 if (ferror(input[0]) || ferror(input[1])) {
424 perror(ferror(input[0])? file1:file2);
425 (void) fclose(input[0]);
426 (void) fclose(input[1]);
435 rewind(input[0]);
436 while (i = fread(buf1, 1, BUFSIZ, input[0]))
439 (void) fclose(input[0]);
440 (void) fclose(input[1]);
451 if (filebinary(input[0]) || filebinary(input[1])) {
452 if (ferror(input[0]) || ferror(input[1])) {
455 perror(ferror(input[0])? file1:file2);
456 (void) fclose(input[0]);
457 (void) fclose(input[1]);
463 (void) fclose(input[0]);
464 (void) fclose(input[1]);
925 lb = input[filen];
1914 int ifd, ofd; /* input and output file descriptors */
1956 (void) fseek(input[i], (long)0, SEEK_SET);
1958 for (j = 0; h = readhash(input[i], i, arg); ) {
2129 * If multibyte locales, the input is buffered.