diff options
author | Christopher Faylor <me@cgf.cx> | 2001-03-31 21:24:48 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-03-31 21:24:48 +0000 |
commit | 0cec3226033f2176959527256d6742fcf55e3417 (patch) | |
tree | a0d184d18a46bc5cacc89bcaa50365f789d6a85c /winsup/cygwin/fhandler.cc | |
parent | aa38a0227cdbabfcecc0a83b104146853da6b319 (diff) | |
download | cygnal-0cec3226033f2176959527256d6742fcf55e3417.tar.gz cygnal-0cec3226033f2176959527256d6742fcf55e3417.tar.bz2 cygnal-0cec3226033f2176959527256d6742fcf55e3417.zip |
* fhandler.cc (fhandler_base::read): Remove special handling of CTRL-Z.
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r-- | winsup/cygwin/fhandler.cc | 4 |
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; |