diff options
author | Christopher Faylor <me@cgf.cx> | 2005-04-28 23:59:44 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-04-28 23:59:44 +0000 |
commit | c4ffa3c427f77224e8a2d58219c9de25666b0b69 (patch) | |
tree | 628c949a7dca65aea4684a1a97207f47cf9bdbd5 /winsup/cygwin/fhandler_console.cc | |
parent | e525f6d51a38d6648ebba2a2c2b25f31d7bfe5ce (diff) | |
download | cygnal-c4ffa3c427f77224e8a2d58219c9de25666b0b69.tar.gz cygnal-c4ffa3c427f77224e8a2d58219c9de25666b0b69.tar.bz2 cygnal-c4ffa3c427f77224e8a2d58219c9de25666b0b69.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r-- | winsup/cygwin/fhandler_console.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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); |