Reduce TLS accesses. (#11487)
[mono-project.git] / mono / metadata / console-win32.c
blob98e3be680c12086ec71395e2cf608598c1d6c3f7
1 /**
2 * \file
3 * ConsoleDriver internal calls for Win32
5 * Author:
6 * Gonzalo Paniagua Javier (gonzalo@ximian.com)
8 * Copyright (C) 2005-2009 Novell, Inc. (http://www.novell.com)
9 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
12 #include <config.h>
13 #include <glib.h>
14 #include <stdio.h>
15 #include <string.h>
16 #include <fcntl.h>
17 #include <errno.h>
18 #include <signal.h>
19 #include <sys/types.h>
21 #ifdef HAVE_SYS_TIME_H
22 #include <sys/time.h>
23 #endif
25 #include <mono/metadata/appdomain.h>
26 #include <mono/metadata/object-internals.h>
27 #include <mono/metadata/class-internals.h>
28 #include <mono/metadata/domain-internals.h>
29 #include <mono/metadata/gc-internals.h>
30 #include <mono/metadata/metadata.h>
32 #include <mono/metadata/console-io.h>
33 #include <mono/metadata/exception.h>
35 void
36 mono_console_init (void)
40 void
41 mono_console_handle_async_ops (void)
45 #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT)
46 MonoBoolean
47 ves_icall_System_ConsoleDriver_Isatty (HANDLE handle, MonoError* error)
49 DWORD mode;
50 return GetConsoleMode (handle, &mode) != 0;
53 MonoBoolean
54 ves_icall_System_ConsoleDriver_SetEcho (MonoBoolean want_echo, MonoError* error)
56 return FALSE;
59 MonoBoolean
60 ves_icall_System_ConsoleDriver_SetBreak (MonoBoolean want_break, MonoError* error)
62 return FALSE;
65 gint32
66 ves_icall_System_ConsoleDriver_InternalKeyAvailable (gint32 timeout, MonoError* error)
68 return FALSE;
71 MonoBoolean
72 ves_icall_System_ConsoleDriver_TtySetup (MonoStringHandle keypad, MonoStringHandle teardown, MonoArrayHandleOut control_chars, int **size, MonoError* error)
74 return FALSE;
76 #endif /* G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) */