From c4ffa3c427f77224e8a2d58219c9de25666b0b69 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 28 Apr 2005 23:59:44 +0000 Subject: * shared_info.h (cygwin_shared_address): Bump to a higher value to avoid collision with large data areas. * fhandler_console.cc (fhandler_console::get_tty_stuff): Accommodate changes to open_shared arguments. * fhandler_tape.cc (mtinfo_init): Ditto. * pinfo.cc (pinfo::init): Use open_shared rather than win32 mmap calls. * shared.cc (user_shared_initialize): Ditto. (memory_init): Ditto. (open_shared): Change to allow use a smore general mmap handler. * shared_info.h (shared_locations): Add SH_JUSTCREATE, SH_JUSTOPEN. (open_shared): Change declaration to match new usage. * autoload.cc (LoadDLLfuncEx2): Define in terms of LoadDLLfuncEx3. (LoadDLLfuncEx3): New macro. --- winsup/cygwin/fhandler_console.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/fhandler_console.cc') diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index a2f24b80d..a5fa99ede 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -81,10 +81,11 @@ fhandler_console::get_tty_stuff (int flags = 0) if (dev_state) return &shared_console_info->tty_min_state; + shared_locations sh_shared_console = SH_SHARED_CONSOLE; shared_console_info = (console_state *) open_shared (NULL, 0, cygheap->console_h, sizeof (*shared_console_info), - SH_SHARED_CONSOLE); + sh_shared_console); dev_state = &shared_console_info->dev_state; ProtectHandleINH (cygheap->console_h); -- cgit v1.2.3