8 int stdio_block_read
= 1, stdio_block_write
= 1;
11 DEFUN(main
, (argc
, argv
),
12 int argc AND
char **argv
)
18 while ((i
= getopt (argc
, argv
, "rw")) != EOF
)
25 stdio_block_write
= 0;
29 f
= fopen("/tmp/bugtest", "w+");
30 for (i
=0; i
<9000; i
++) {
34 fwrite("Where does this text come from?", 1, 31, f
);
36 fread(buffer
, 1, 31, f
);
37 fwrite(buffer
, 1, 31, stdout
);
40 if (!memcmp (buffer
, "Where does this text come from?", 31))
42 puts ("\nTest succeeded.");
47 puts ("\nTest FAILED!");