This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


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

Re: 1.3.4 status?


What about this:

Index: fhandler_console.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/fhandler_console.cc,v
retrieving revision 1.66
diff -u -p -r1.66 fhandler_console.cc
--- fhandler_console.cc 2001/10/22 18:39:22     1.66
+++ fhandler_console.cc 2001/10/23 02:35:14
@@ -198,9 +198,6 @@ fhandler_console::set_cursor_maybe ()
 int
 fhandler_console::read (void *pv, size_t buflen)
 {
-  if (!buflen)
-    return 0;
-
   HANDLE h = get_io_handle ();

 #define buf ((char *) pv)
Index: syscalls.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/syscalls.cc,v
retrieving revision 1.162
diff -u -p -r1.162 syscalls.cc
--- syscalls.cc 2001/10/22 18:31:00     1.162
+++ syscalls.cc 2001/10/23 02:35:15
@@ -290,6 +290,9 @@ _read (int fd, void *ptr, size_t len)
   if (__check_null_invalid_struct_errno (ptr, len))
     return -1;

+  if (!len)
+    return 0;
+
   int res;
   extern int sigcatchers;
   int e = get_errno ();

Check http://www.opengroup.org/onlinepubs/7908799/xsh/read.html if
interested.

Rob


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