Revert addition of verify, for BSD/OS.
authorEric Blake <ebb9@byu.net>
Tue, 18 Dec 2007 04:50:40 +0000 (21:50 -0700)
committerEric Blake <ebb9@byu.net>
Tue, 18 Dec 2007 04:50:40 +0000 (21:50 -0700)
* lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
can't handle large files, for the sake of obsolete platforms.
* modules/fseeko (Depends-on): Remove verify.
* doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
* doc/functions/ftello.texi (ftello): Likewise.
* doc/functions/fgetpos.texi (fgetpos): Likewise.
Reported by Larry Jones.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
doc/functions/fgetpos.texi
doc/functions/fseeko.texi
doc/functions/ftello.texi
lib/fseeko.c
modules/fseeko

index e64c846..d109b2e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2007-12-17  Eric Blake  <ebb9@byu.net>
+
+       Revert addition of verify, for BSD/OS.
+       * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
+       can't handle large files, for the sake of obsolete platforms.
+       * modules/fseeko (Depends-on): Remove verify.
+       * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
+       * doc/functions/ftello.texi (ftello): Likewise.
+       * doc/functions/fgetpos.texi (fgetpos): Likewise.
+       Reported by Larry Jones.
+
 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
 
        getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
index 2caffc0..6a2c607 100644 (file)
@@ -16,4 +16,8 @@ Portability problems not fixed by Gnulib:
 @code{fflush}, @code{ftell}, @code{ftello}, @code{fgetpos} behave incorrectly
 on input streams that are opened in @code{O_TEXT} mode and whose contents
 contains Unix line terminators (LF), on some platforms: mingw.
+@item
+On platforms where @code{off_t} is a 64-bit type, but @code{fseeko} is
+not present, stream operations on files larger than 2 GB silently do
+the wrong thing.  This affects BSD/OS, which is mostly obsolete.
 @end itemize
index 3b6c4e9..f1a45cb 100644 (file)
@@ -24,4 +24,8 @@ Portability problems not fixed by Gnulib:
 On platforms where @code{off_t} is a 32-bit type, @code{fseeko} does not work
 correctly with files larger than 2 GB.  The fix is to use the
 @code{AC_SYS_LARGEFILE} macro.
+@item
+On platforms where @code{off_t} is a 64-bit type, but @code{fseeko} is
+not present, stream operations on files larger than 2 GB silently do
+the wrong thing.  This affects BSD/OS, which is mostly obsolete.
 @end itemize
index 3fb995f..e78300f 100644 (file)
@@ -28,4 +28,8 @@ correctly with files larger than 2 GB.  The fix is to use the
 @code{fflush}, @code{ftell}, @code{ftello}, @code{fgetpos} behave incorrectly
 on input streams that are opened in @code{O_TEXT} mode and whose contents
 contains Unix line terminators (LF), on some platforms: mingw.
+@item
+On platforms where @code{off_t} is a 64-bit type, but @code{fseeko} is
+not present, stream operations on files larger than 2 GB silently do
+the wrong thing.  This affects BSD/OS, which is mostly obsolete.
 @end itemize
index 6d55ec8..97dcf6d 100644 (file)
@@ -27,9 +27,6 @@
 #if !HAVE_FSEEKO
 # undef fseek
 # define fseeko fseek
-
-# include <verify.h>
-verify (sizeof (off_t) == sizeof (long));
 #endif
 
 int
index cb26003..eb10901 100644 (file)
@@ -8,7 +8,6 @@ m4/fseeko.m4
 Depends-on:
 lseek
 stdio
-verify
 
 configure.ac-early:
 AC_REQUIRE([AC_FUNC_FSEEKO])