You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by tr...@apache.org on 2001/05/07 20:04:17 UTC

cvs commit: apr/file_io/win32 readwrite.c

trawick     01/05/07 11:04:16

  Modified:    include  apr_file_io.h
               file_io/win32 readwrite.c
  Log:
  fix a comment regarding APR_EOF and file I/O;
  use APR_SUCCESS instead of 0 in apr_file_read() for Win32
  
  Submitted by:	Greg Stein
  
  Revision  Changes    Path
  1.100     +2 -2      apr/include/apr_file_io.h
  
  Index: apr_file_io.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_file_io.h,v
  retrieving revision 1.99
  retrieving revision 1.100
  diff -u -r1.99 -r1.100
  --- apr_file_io.h	2001/04/30 19:03:38	1.99
  +++ apr_file_io.h	2001/05/07 18:04:06	1.100
  @@ -214,7 +214,7 @@
    *      reflect the number of bytes read.  If a char was put back into the 
    *      stream via ungetc, it will be the first character returned. 
    *
  - *      It is possible for both bytes to be read and an APR_EOF or other 
  + *      It is not possible for both bytes to be read and an APR_EOF or other 
    *      error to be returned.
    *
    *      APR_EINTR is never returned.
  @@ -275,7 +275,7 @@
    *      is reached.  If a char was put back into the stream via ungetc, 
    *      it will be the first character returned. 
    *
  - *      It is possible for both bytes to be read and an APR_EOF or other 
  + *      It is not possible for both bytes to be read and an APR_EOF or other 
    *      error to be returned.
    *
    *      APR_EINTR is never returned.
  
  
  
  1.57      +1 -1      apr/file_io/win32/readwrite.c
  
  Index: readwrite.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/win32/readwrite.c,v
  retrieving revision 1.56
  retrieving revision 1.57
  diff -u -r1.56 -r1.57
  --- readwrite.c	2001/04/02 21:54:42	1.56
  +++ readwrite.c	2001/05/07 18:04:13	1.57
  @@ -209,7 +209,7 @@
   
           *len = pos - (char *)buf;
           if (*len) {
  -            rv = 0;
  +            rv = APR_SUCCESS;
           }
           apr_lock_release(thefile->mutex);
       } else {