changeset 851:b42d82dbafed

Remove unnecessary -EAGAIN code
author gthomas
date Thu, 20 Mar 2003 19:00:43 +0000
parents c3c6ed4ef316
children 7f6b818846b4
files packages/io/fileio/current/ChangeLog packages/io/fileio/current/src/devfs.cxx
diffstat 2 files changed, 7 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/packages/io/fileio/current/ChangeLog
+++ b/packages/io/fileio/current/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-20  Gary Thomas  <gary@mlbassoc.com>
+
+	* src/devfs.cxx: Remove unnecessary checks for -EAGAIN (should
+	no longer happen in lower layers).
+
 2003-03-08  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* tests/pselect.c (pthread_entry1): Allow for infrequent but
--- a/packages/io/fileio/current/src/devfs.cxx
+++ b/packages/io/fileio/current/src/devfs.cxx
@@ -9,6 +9,7 @@
 // -------------------------------------------
 // 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
@@ -41,7 +42,7 @@
 //#####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
@@ -352,11 +353,6 @@ static int dev_fo_read      (struct CYG_
                                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;
@@ -389,11 +385,6 @@ static int dev_fo_write     (struct CYG_
                                 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;