summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_tape.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-04-28 23:59:44 +0000
committerChristopher Faylor <me@cgf.cx>2005-04-28 23:59:44 +0000
commitc4ffa3c427f77224e8a2d58219c9de25666b0b69 (patch)
tree628c949a7dca65aea4684a1a97207f47cf9bdbd5 /winsup/cygwin/fhandler_tape.cc
parente525f6d51a38d6648ebba2a2c2b25f31d7bfe5ce (diff)
downloadcygnal-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_tape.cc')
-rw-r--r--winsup/cygwin/fhandler_tape.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_tape.cc b/winsup/cygwin/fhandler_tape.cc
index a3c74dd71..c733a7d59 100644
--- a/winsup/cygwin/fhandler_tape.cc
+++ b/winsup/cygwin/fhandler_tape.cc
@@ -1171,7 +1171,8 @@ mtinfo *mt;
void __stdcall
mtinfo_init ()
{
- mt = (mtinfo *) open_shared ("mtinfo", MTINFO_VERSION, cygheap->mt_h, sizeof (mtinfo), SH_MTINFO);
+ shared_locations sh_mtinfo = SH_MTINFO;
+ mt = (mtinfo *) open_shared ("mtinfo", MTINFO_VERSION, cygheap->mt_h, sizeof (mtinfo), sh_mtinfo);
ProtectHandleINH (cygheap->mt_h);
mt->initialize ();
}