This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

IO: remove -EAGAIN checks


Index: io/fileio/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/io/fileio/current/ChangeLog,v
retrieving revision 1.29
diff -u -5 -p -r1.29 ChangeLog
--- io/fileio/current/ChangeLog	8 Mar 2003 03:36:32 -0000	1.29
+++ io/fileio/current/ChangeLog	20 Mar 2003 18:54:43 -0000
@@ -1,5 +1,10 @@
+2003-03-20  Gary Thomas  <gary at mlbassoc dot com>
+
+	* src/devfs.cxx: Remove unnecessary checks for -EAGAIN (should
+	no longer happen in lower layers).
+
 2003-03-08  Jonathan Larmour  <jifl at eCosCentric dot com>
 
 	* tests/pselect.c (pthread_entry1): Allow for infrequent but
 	occasional off by one error due to race condition when
 	signalling.
Index: io/fileio/current/src/devfs.cxx
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/io/fileio/current/src/devfs.cxx,v
retrieving revision 1.5
diff -u -5 -p -r1.5 devfs.cxx
--- io/fileio/current/src/devfs.cxx	23 May 2002 23:06:07 -0000	1.5
+++ io/fileio/current/src/devfs.cxx	20 Mar 2003 13:26:08 -0000
@@ -7,10 +7,11 @@
 //==========================================================================
 //####ECOSGPLCOPYRIGHTBEGIN####
 // -------------------------------------------
 // This file is part of eCos, the Embedded Configurable Operating System.
 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
+// Copyright (C) 2003 Gary Thomas
 //
 // eCos is free software; you can redistribute it and/or modify it under
 // the terms of the GNU General Public License as published by the Free
 // Software Foundation; either version 2 or (at your option) any later version.
 //
@@ -39,11 +40,11 @@
 //####ECOSGPLCOPYRIGHTEND####
 //==========================================================================
 //#####DESCRIPTIONBEGIN####
 //
 // Author(s):           nickg
-// Contributors:        nickg
+// Contributors:        nickg, gthomas
 // Date:                2000-05-25
 // Purpose:             Fileio device filesystem
 // Description:         This file implements a simple filesystem that interfaces
 //                      to the existing device IO subsystem.
 //                      
@@ -350,15 +351,10 @@ static int dev_fo_read      (struct CYG_
         else
             err = cyg_io_read( (cyg_io_handle_t)t,
                                iov->iov_base,
                                &len);
 
-        if( -EAGAIN == err ) // must be in non-blocking mode
-        {
-            uio->uio_resid -= len;
-            return ENOERR;
-        }
         if( err < 0 ) break;
 
         uio->uio_resid -= len;
     }
     
@@ -387,15 +383,10 @@ static int dev_fo_write     (struct CYG_
         else
             err = cyg_io_write( (cyg_io_handle_t)t,
                                 iov->iov_base,
                                 &len);
 
-        if( -EAGAIN == err ) // must be in non-blocking mode
-        {
-            uio->uio_resid -= len;
-            return ENOERR;
-        }
         if( err < 0 ) break;
 
         uio->uio_resid -= len;
     }
 


-- 
------------------------------------------------------------
Gary Thomas                 |
MLB Associates              |  Consulting for the
+1 (970) 229-1963           |    Embedded world
http://www.mlbassoc.com/    |
email: <gary at mlbassoc dot com>  |
gpg: http://www.chez-thomas.org/gary/gpg_key.asc
------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]