You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jw...@apache.org on 2002/06/19 21:51:05 UTC

cvs commit: apr/file_io/win32 seek.c

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: