Lines Matching refs:stdin

964   if (freopen (temp_filename, "r", stdin) == NULL)  in do_test()
982 rewind (stdin); in do_test()
984 if (fgets (buf, buf_size, stdin) != buf in do_test()
987 if (fgets (buf, buf_size, stdin) != buf || memcmp (buf, "ABCDEFGHI", 10)) in do_test()
990 rewind (stdin); in do_test()
992 if (fgets (buf, l0 + buf_size, stdin) != buf in do_test()
998 if (fgets (buf, buf_size + 1, stdin) != buf) in do_test()
1003 if (fgets (buf, l0 + buf_size + 1, stdin) != buf) in do_test()
1008 rewind (stdin); in do_test()
1011 if (fgets_unlocked (buf, buf_size, stdin) != buf in do_test()
1014 if (fgets_unlocked (buf, buf_size, stdin) != buf in do_test()
1018 rewind (stdin); in do_test()
1020 if (fgets_unlocked (buf, l0 + buf_size, stdin) != buf in do_test()
1026 if (fgets_unlocked (buf, buf_size + 1, stdin) != buf) in do_test()
1031 if (fgets_unlocked (buf, l0 + buf_size + 1, stdin) != buf) in do_test()
1036 rewind (stdin); in do_test()
1039 if (fread (buf, 1, buf_size, stdin) != buf_size in do_test()
1042 if (fread (buf, buf_size, 1, stdin) != 1 in do_test()
1046 rewind (stdin); in do_test()
1048 if (fread (buf, l0 + 1, buf_size, stdin) != buf_size in do_test()
1051 if (fread (buf, buf_size, l0 + 1, stdin) != 1 in do_test()
1057 if (fread (buf, 1, buf_size + 1, stdin) != buf_size + 1) in do_test()
1062 if (fread (buf, buf_size + 1, l0 + 1, stdin) != 1) in do_test()
1067 rewind (stdin); in do_test()
1069 if (fread_unlocked (buf, 1, buf_size, stdin) != buf_size in do_test()
1072 if (fread_unlocked (buf, buf_size, 1, stdin) != 1 in do_test()
1076 rewind (stdin); in do_test()
1078 if (fread_unlocked (buf, 1, 4, stdin) != 4 in do_test()
1081 if (fread_unlocked (buf, 4, 1, stdin) != 1 in do_test()
1085 rewind (stdin); in do_test()
1087 if (fread_unlocked (buf, l0 + 1, buf_size, stdin) != buf_size in do_test()
1090 if (fread_unlocked (buf, buf_size, l0 + 1, stdin) != 1 in do_test()
1096 if (fread_unlocked (buf, 1, buf_size + 1, stdin) != buf_size + 1) in do_test()
1101 if (fread_unlocked (buf, buf_size + 1, l0 + 1, stdin) != 1) in do_test()
1106 lseek (fileno (stdin), 0, SEEK_SET); in do_test()
1108 if (read (fileno (stdin), buf, buf_size - 1) != buf_size - 1 in do_test()
1111 if (read (fileno (stdin), buf, buf_size - 1) != buf_size - 1 in do_test()
1115 lseek (fileno (stdin), 0, SEEK_SET); in do_test()
1117 if (read (fileno (stdin), buf, l0 + buf_size - 1) != buf_size - 1 in do_test()
1123 if (read (fileno (stdin), buf, buf_size + 1) != buf_size + 1) in do_test()
1128 if (read (fileno (stdin), buf, l0 + buf_size + 1) != buf_size + 1) in do_test()
1133 if (pread (fileno (stdin), buf, buf_size - 1, buf_size - 2) in do_test()
1137 if (pread (fileno (stdin), buf, buf_size - 1, 0) != buf_size - 1 in do_test()
1140 if (pread (fileno (stdin), buf, l0 + buf_size - 1, buf_size - 3) in do_test()
1147 if (pread (fileno (stdin), buf, buf_size + 1, 2 * buf_size) in do_test()
1153 if (pread (fileno (stdin), buf, l0 + buf_size + 1, 2 * buf_size) in do_test()
1159 if (pread64 (fileno (stdin), buf, buf_size - 1, buf_size - 2) in do_test()
1163 if (pread64 (fileno (stdin), buf, buf_size - 1, 0) != buf_size - 1 in do_test()
1166 if (pread64 (fileno (stdin), buf, l0 + buf_size - 1, buf_size - 3) in do_test()
1173 if (pread64 (fileno (stdin), buf, buf_size + 1, 2 * buf_size) in do_test()
1179 if (pread64 (fileno (stdin), buf, l0 + buf_size + 1, 2 * buf_size) in do_test()
1185 if (freopen (temp_filename, "r", stdin) == NULL) in do_test()
1191 if (fseek (stdin, 9 + 10 + 11, SEEK_SET)) in do_test()