* modules/freadseek (Depends-on): Use freadptr, not freadseek.
* lib/freadseek.c (freadseek): Don't increment beyond bounds of
ungetc buffer.
* tests/test-fflush2.c (main): Fix typo.
Signed-off-by: Eric Blake <ebb9@byu.net>
+2008-03-29 Eric Blake <ebb9@byu.net>
+
+ Pass test-freadseek on cygwin.
+ * modules/freadseek (Depends-on): Use freadptr, not freadseek.
+ * lib/freadseek.c (freadseek): Don't increment beyond bounds of
+ ungetc buffer.
+ * tests/test-fflush2.c (main): Fix typo.
+
2008-03-29 Bruno Haible <bruno@clisp.org>
* tests/test-fflush2.c (main): Temporarily disable the contents of
#include <stdlib.h>
#include <unistd.h>
-#include "freadahead.h"
+#include "freadptr.h"
int
freadseek (FILE *fp, size_t offset)
return 0;
/* Increment the in-memory pointer. This is very cheap (no system calls). */
- buffered = freadahead (fp);
+ freadptr (fp, &buffered);
if (buffered > 0)
{
size_t increment = (buffered < offset ? buffered : offset);
lib/freadseek.c
Depends-on:
-freadahead
+freadptr
lseek
configure.ac:
The Austin Group has not yet decided how this should behave. */
#endif
#if 0
- /* Check fflush after a non-backup ungetc() call. This is case 1 in terms of
+ /* Check fflush after a non-backup ungetc() call. This is case 2 in terms of
<http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00131.html>.
The Austin Group has not yet decided how this should behave. */
/* Check that fflush after a non-backup ungetc() call discards the ungetc