Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 74908 invoked by uid 500); 19 Jun 2002 19:51:06 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 74897 invoked from network); 19 Jun 2002 19:51:05 -0000 Date: 19 Jun 2002 19:51:05 -0000 Message-ID: <20020619195105.27872.qmail@icarus.apache.org> From: jwoolley@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/file_io/win32 seek.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N jwoolley 2002/06/19 12:51:04 Modified: . CHANGES file_io/os2 seek.c file_io/unix seek.c file_io/win32 seek.c Log: Fix apr_file_seek() to unset the eof_hit flag. Submitted by: Stas Bekman Concept reviewed by: jwoolley, rbb, wrowe Revision Changes Path 1.295 +2 -0 apr/CHANGES Index: CHANGES =================================================================== RCS file: /home/cvs/apr/CHANGES,v retrieving revision 1.294 retrieving revision 1.295 diff -u -d -u -r1.294 -r1.295 --- CHANGES 14 Jun 2002 01:24:02 -0000 1.294 +++ CHANGES 19 Jun 2002 19:51:04 -0000 1.295 @@ -1,5 +1,7 @@ Changes with APR b1 + *) Fixed apr_file_seek() to unset the eof_hit flag. [Stas Bekman] + *) Removed --disable-atomics flag and added --enable-nonportable-atomics, thereby defaulting to portable binaries on those systems that could be optimized at the expense of portability. PR: 9507 [Aaron Bannert] 1.21 +2 -0 apr/file_io/os2/seek.c Index: seek.c =================================================================== RCS file: /home/cvs/apr/file_io/os2/seek.c,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -u -r1.20 -r1.21 --- seek.c 13 Mar 2002 20:39:10 -0000 1.20 +++ seek.c 19 Jun 2002 19:51:04 -0000 1.21 @@ -91,6 +91,8 @@ return APR_EBADF; } + thefile->eof_hit = 0; + if (thefile->buffered) { int rc = EINVAL; apr_finfo_t finfo; 1.27 +1 -0 apr/file_io/unix/seek.c Index: seek.c =================================================================== RCS file: /home/cvs/apr/file_io/unix/seek.c,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -u -r1.26 -r1.27 --- seek.c 13 Mar 2002 20:39:11 -0000 1.26 +++ seek.c 19 Jun 2002 19:51:04 -0000 1.27 @@ -90,6 +90,7 @@ { apr_off_t rv; + thefile->eof_hit = 0; if (thefile->buffered) { int rc = EINVAL; 1.24 +2 -0 apr/file_io/win32/seek.c Index: seek.c =================================================================== RCS file: /home/cvs/apr/file_io/win32/seek.c,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -u -r1.23 -r1.24 --- seek.c 14 Mar 2002 22:22:32 -0000 1.23 +++ seek.c 19 Jun 2002 19:51:04 -0000 1.24 @@ -96,6 +96,8 @@ apr_finfo_t finfo; apr_status_t rc = APR_SUCCESS; + thefile->eof_hit = 0; + if (thefile->buffered) { switch (where) { case APR_SET: