You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by dr...@hyperreal.org on 2000/02/05 13:05:07 UTC

cvs commit: apache-2.0/src/lib/apr/file_io/beos readwrite.c

dreid       00/02/05 04:05:06

  Modified:    src/lib/apr/file_io/beos readwrite.c
  Log:
  Remove the stated lines from readwrite.c to bring BeOS back in line
  and get it building again.
  
  Revision  Changes    Path
  1.6       +0 -9      apache-2.0/src/lib/apr/file_io/beos/readwrite.c
  
  Index: readwrite.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/beos/readwrite.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- readwrite.c	1999/12/12 17:08:43	1.5
  +++ readwrite.c	2000/02/05 12:05:06	1.6
  @@ -119,7 +119,6 @@
           rv = write(thefile->filedes, buf, *nbytes);
       }
   
  -    thefile->stated = 0;
       *nbytes = rv;
       if (rv == -1) {
           return errno;
  @@ -160,7 +159,6 @@
       }
       else {
           *iocnt = bytes;
  -        thefile->stated = 0;
           return APR_SUCCESS;
       }
   }
  @@ -176,7 +174,6 @@
   {
       if (thefile->buffered) {
           if (fputc(ch, thefile->filehand) == ch) {
  -            thefile->stated = 0;
               return APR_SUCCESS;
           }
           return errno;
  @@ -184,7 +181,6 @@
       if (write(thefile->filedes, &ch, 1) != 1) {
           return errno;
       }
  -    thefile->stated = 0;
       return APR_SUCCESS; 
   }
   
  @@ -198,13 +194,11 @@
   {
       if (thefile->buffered) {
           if (ungetc(ch, thefile->filehand) == ch) {
  -            thefile->stated = 0;
               return APR_SUCCESS;
           }
           return errno;
       }
       /* Not sure what to do in this case.  For now, return SUCCESS. */
  -    thefile->stated = 0;
       return APR_SUCCESS; 
   }
   
  @@ -256,7 +250,6 @@
   
       if (thefile->buffered) {
           if (fputs(str, thefile->filehand)) {
  -            thefile->stated = 0;
               return APR_SUCCESS;
           }
           return errno;
  @@ -266,7 +259,6 @@
       if (rv != len) {
           return errno;
       }
  -    thefile->stated = 0;
       return APR_SUCCESS; 
   }
   
  @@ -279,7 +271,6 @@
   {
       if (thefile->buffered) {
           if (!fflush(thefile->filehand)) {
  -            thefile->stated = 0;
               return APR_SUCCESS;
           }
           return errno;