Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-04-01 01:24:48 +0400
committerChristopher Faylor <me@cgf.cx>2001-04-01 01:24:48 +0400
commit0cec3226033f2176959527256d6742fcf55e3417 (patch)
treea0d184d18a46bc5cacc89bcaa50365f789d6a85c /winsup/cygwin/fhandler.cc
parentaa38a0227cdbabfcecc0a83b104146853da6b319 (diff)
* fhandler.cc (fhandler_base::read): Remove special handling of CTRL-Z.
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r--winsup/cygwin/fhandler.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index 9539d049a..adeec56a5 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -443,7 +443,6 @@ int
fhandler_base::read (void *in_ptr, size_t in_len)
{
int len = (int) in_len;
- char *ctrlzpos;
char *ptr = (char *) in_ptr;
int c;
@@ -475,6 +474,8 @@ fhandler_base::read (void *in_ptr, size_t in_len)
return copied_chars;
}
+#if 0
+ char *ctrlzpos;
/* Scan buffer for a control-z and shorten the buffer to that length */
ctrlzpos = (char *) memchr ((char *) ptr, 0x1a, copied_chars);
@@ -489,6 +490,7 @@ fhandler_base::read (void *in_ptr, size_t in_len)
debug_printf ("returning 0 chars, text mode, CTRL-Z found");
return 0;
}
+#endif
/* Scan buffer and turn \r\n into \n */
register char *src = (char *) ptr;