From de05a524ca9636914d8c228551f27feb6b509c4d Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 9 Sep 2001 19:06:50 +0000 Subject: * cygheap.cc (cygheap_fixup_in_child): Clear cygheap->base so that heap is not forced to start at the same place in execed process. * heap.cc: Remove brk* macros for clarity throughout. * heap.h: Ditto. * shared.cc (shared_info::initialize): Move heap_chunk test into heap_chunk_size(). (heap_chunk_size): Check for chunk size here. Don't go to registry if heap_chunk_in_mb is already set. * smallprint.c (console_printf): Add Windows 95 concessions. --- winsup/cygwin/smallprint.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'winsup/cygwin/smallprint.c') diff --git a/winsup/cygwin/smallprint.c b/winsup/cygwin/smallprint.c index 7e23d1a..02dfb42 100644 --- a/winsup/cygwin/smallprint.c +++ b/winsup/cygwin/smallprint.c @@ -212,11 +212,15 @@ console_printf (const char *fmt,...) va_list ap; DWORD done; int count; - extern SECURITY_ATTRIBUTES sec_none; if (!console_handle) - console_handle = CreateFileA ("CONOUT$", GENERIC_WRITE, FILE_SHARE_WRITE, - &sec_none, OPEN_EXISTING, 0, 0); + console_handle = CreateFileA ("CON", GENERIC_WRITE, + FILE_SHARE_READ | FILE_SHARE_WRITE, + NULL, OPEN_EXISTING, 0, 0); + + if (console_handle == INVALID_HANDLE_VALUE) + console_handle = GetStdHandle (STD_ERROR_HANDLE); + va_start (ap, fmt); count = __small_vsprintf (buf, fmt, ap); va_end (ap); -- cgit v1.1