changeset 29216:4af5a4be9c8c

Fix fseeko on BSD-based platforms. * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on successful seek.
author Larry Jones <lawrence.jones@siemens.com>
date Thu, 13 Dec 2007 11:11:53 -0700
parents c364981cd959
children c00c359f1ca9
files ChangeLog lib/fseeko.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Dec 13 06:23:06 2007 -0800
+++ b/ChangeLog	Thu Dec 13 11:11:53 2007 -0700
@@ -1,3 +1,9 @@
+2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
+
+	Fix fseeko on BSD-based platforms.
+	* lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
+	successful seek.
+
 2007-12-12  Eric Blake  <ebb9@byu.net>
 
 	Allow circular dependency of separate libtests.a
--- a/lib/fseeko.c	Thu Dec 13 06:23:06 2007 -0800
+++ b/lib/fseeko.c	Thu Dec 13 11:11:53 2007 -0700
@@ -111,6 +111,7 @@
 #if defined __sferror               /* FreeBSD, NetBSD, OpenBSD, MacOS X, Cygwin */
 	  fp->_offset = pos;
 	  fp->_flags |= __SOFF;
+	  fp->_flags &= ~__SEOF;
 #endif
 	  return 0;
 	}