# HG changeset patch # User Eric Blake # Date 1197953440 25200 # Node ID 0be09e88acb1e548d10784140f6abef5907d5291 # Parent 4e4ff272cf67339b701940e9c593ef2b55e5d897 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. Signed-off-by: Eric Blake diff -r 4e4ff272cf67 -r 0be09e88acb1 ChangeLog --- a/ChangeLog Mon Dec 17 13:30:09 2007 +0100 +++ b/ChangeLog Mon Dec 17 21:50:40 2007 -0700 @@ -1,3 +1,14 @@ +2007-12-17 Eric Blake + + 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 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT diff -r 4e4ff272cf67 -r 0be09e88acb1 doc/functions/fgetpos.texi --- a/doc/functions/fgetpos.texi Mon Dec 17 13:30:09 2007 +0100 +++ b/doc/functions/fgetpos.texi Mon Dec 17 21:50:40 2007 -0700 @@ -16,4 +16,8 @@ @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 diff -r 4e4ff272cf67 -r 0be09e88acb1 doc/functions/fseeko.texi --- a/doc/functions/fseeko.texi Mon Dec 17 13:30:09 2007 +0100 +++ b/doc/functions/fseeko.texi Mon Dec 17 21:50:40 2007 -0700 @@ -24,4 +24,8 @@ 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 diff -r 4e4ff272cf67 -r 0be09e88acb1 doc/functions/ftello.texi --- a/doc/functions/ftello.texi Mon Dec 17 13:30:09 2007 +0100 +++ b/doc/functions/ftello.texi Mon Dec 17 21:50:40 2007 -0700 @@ -28,4 +28,8 @@ @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 diff -r 4e4ff272cf67 -r 0be09e88acb1 lib/fseeko.c --- a/lib/fseeko.c Mon Dec 17 13:30:09 2007 +0100 +++ b/lib/fseeko.c Mon Dec 17 21:50:40 2007 -0700 @@ -27,9 +27,6 @@ #if !HAVE_FSEEKO # undef fseek # define fseeko fseek - -# include -verify (sizeof (off_t) == sizeof (long)); #endif int diff -r 4e4ff272cf67 -r 0be09e88acb1 modules/fseeko --- a/modules/fseeko Mon Dec 17 13:30:09 2007 +0100 +++ b/modules/fseeko Mon Dec 17 21:50:40 2007 -0700 @@ -8,7 +8,6 @@ Depends-on: lseek stdio -verify configure.ac-early: AC_REQUIRE([AC_FUNC_FSEEKO])