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 e64c846045145c961a8f01280dcee786d2ce459b..d109b2ec13b93fb384d9e4fd4226ec0a95e86901 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 2caffc018102f5d2c699403171ad67de70702ed5..6a2c607a6c5e3b0fd1c610c04eb753ff892c98ff 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 3b6c4e957356bec7b63a50a6995914a3a4646a54..f1a45cb676121e4926fc627e22394c34c13c01d1 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 3fb995f625d1ea63d3189663c67a0264178448b0..e78300fb6f593e107e18968fe04cbc33ceafcbfc 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 6d55ec8b12d6194efa4b92969f8e3d5e1d8cf6b8..97dcf6da05c9ebfea0d02d97ea22f95f0dca59e1 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 cb26003de819ae24b021fa7ec66e61e33f0604dd..eb109011edc1a45dbe8ba9b7cb36d5b90e685c86 100644 (file)
@@ -8,7 +8,6 @@ m4/fseeko.m4
 Depends-on:
 lseek
 stdio
-verify
 
 configure.ac-early:
 AC_REQUIRE([AC_FUNC_FSEEKO])