summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_console.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-10-12 04:38:29 +0000
committerChristopher Faylor <me@cgf.cx>2000-10-12 04:38:29 +0000
commitec300c997904f1db79cd5ca49f798ae08a3eedba (patch)
treef0573247cacbf2efd21dd594bf3838c036035d4c /winsup/cygwin/fhandler_console.cc
parent8251f53ddda33e780b8043665e638a558e0ef719 (diff)
downloadcygnal-ec300c997904f1db79cd5ca49f798ae08a3eedba.tar.gz
cygnal-ec300c997904f1db79cd5ca49f798ae08a3eedba.tar.bz2
cygnal-ec300c997904f1db79cd5ca49f798ae08a3eedba.zip
* errno.cc (seterrno_from_win_error): Fix debugging output.
* fhandler.cc (fhandler_base::fstat): Move to inline method in fhandler.h. (fhandler_base::set_io_handle): Ditto. * fhandler.h (fhandler_base): Make some methods inline. * fhandler_console.cc (fhandler_console::write_normal): Make buffer larger. * sigproc.h (sigframe::sigframe): Actually use set ebp parameter correctly. * spawn.cc (spawn_guts): Set dwProcessId when exec'ing. Just exit immediately after reparenting. * syscalls.cc: Sprinkle sigframe stuff throughout. * wait.cc (wait4): Set signal frame here. * dcrt0.cc (__api_fatal): Don't rely on small_printf to display errors. Always display problems to the console, if possible.
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r--winsup/cygwin/fhandler_console.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index dc76df492..1d05ddcee 100644
--- a/winsup/cygwin/fhandler_console.cc
+++ b/winsup/cygwin/fhandler_console.cc
@@ -266,7 +266,6 @@ fhandler_console::set_input_state ()
input_tcsetattr (0, &tc->ti);
}
-
static struct
{
SHORT winTop;
@@ -1076,10 +1075,10 @@ fhandler_console::write_normal (const unsigned char *src,
/* Print all the base ones out */
if (found != src)
{
- char buf[256];
- int len = found - src;
+ char buf[4096];
+ size_t len = found - src;
do {
- int l2 = min (256, len);
+ size_t l2 = min (sizeof (buf), len);
CharToOemBuff ((LPCSTR)src, buf, l2);
if (! WriteFile (get_output_handle (), buf, l2, &done, 0))
{