[DDK]
[reactos.git] / include / crt / conio.h
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER within this package.
5 */
6 #ifndef _INC_CONIO
7 #define _INC_CONIO
8
9 #include <crtdefs.h>
10
11 #define __need___va_list
12 #include <stdarg.h>
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 _CRTIMP char * __cdecl _cgets(char *_Buffer);
19 _CRTIMP int __cdecl _cprintf(const char *_Format,...);
20 _CRTIMP int __cdecl _cputs(const char *_Str);
21 _CRT_INSECURE_DEPRECATE(_cscanf_s) _CRTIMP int __cdecl _cscanf(const char *_Format,...);
22 _CRT_INSECURE_DEPRECATE(_cscanf_s_l) _CRTIMP int __cdecl _cscanf_l(const char *_Format,_locale_t _Locale,...);
23 _CRTIMP int __cdecl _getch(void);
24 _CRTIMP int __cdecl _getche(void);
25 _CRTIMP int __cdecl _vcprintf(const char *_Format,va_list _ArgList);
26 _CRTIMP int __cdecl _cprintf_p(const char *_Format,...);
27 _CRTIMP int __cdecl _vcprintf_p(const char *_Format,va_list _ArgList);
28 _CRTIMP int __cdecl _cprintf_l(const char *_Format,_locale_t _Locale,...);
29 _CRTIMP int __cdecl _vcprintf_l(const char *_Format,_locale_t _Locale,va_list _ArgList);
30 _CRTIMP int __cdecl _cprintf_p_l(const char *_Format,_locale_t _Locale,...);
31 _CRTIMP int __cdecl _vcprintf_p_l(const char *_Format,_locale_t _Locale,va_list _ArgList);
32 _CRTIMP int __cdecl _kbhit(void);
33 _CRTIMP int __cdecl _putch(int _Ch);
34 _CRTIMP int __cdecl _ungetch(int _Ch);
35 _CRTIMP int __cdecl _getch_nolock(void);
36 _CRTIMP int __cdecl _getche_nolock(void);
37 _CRTIMP int __cdecl _putch_nolock(int _Ch);
38 _CRTIMP int __cdecl _ungetch_nolock(int _Ch);
39
40 #if defined(_X86_) && !defined(__x86_64)
41 int __cdecl _inp(unsigned short);
42 unsigned short __cdecl _inpw(unsigned short);
43 unsigned long __cdecl _inpd(unsigned short);
44 int __cdecl _outp(unsigned short,int);
45 unsigned short __cdecl _outpw(unsigned short,unsigned short);
46 unsigned long __cdecl _outpd(unsigned short,unsigned long);
47 #endif
48
49
50 #ifndef _WCONIO_DEFINED
51 #define _WCONIO_DEFINED
52
53 #ifndef WEOF
54 #define WEOF (wint_t)(0xFFFF)
55 #endif
56
57 _CRTIMP wchar_t *_cgetws(wchar_t *_Buffer);
58 _CRTIMP wint_t __cdecl _getwch(void);
59 _CRTIMP wint_t __cdecl _getwche(void);
60 _CRTIMP wint_t __cdecl _putwch(wchar_t _WCh);
61 _CRTIMP wint_t __cdecl _ungetwch(wint_t _WCh);
62 _CRTIMP int __cdecl _cputws(const wchar_t *_String);
63 _CRTIMP int __cdecl _cwprintf(const wchar_t *_Format,...);
64 _CRT_INSECURE_DEPRECATE(_cwscanf_s) _CRTIMP int __cdecl _cwscanf(const wchar_t *_Format,...);
65 _CRT_INSECURE_DEPRECATE(_cwscanf_s_l) _CRTIMP int __cdecl _cwscanf_l(const wchar_t *_Format,_locale_t _Locale,...);
66 _CRTIMP int __cdecl _vcwprintf(const wchar_t *_Format,va_list _ArgList);
67 _CRTIMP int __cdecl _cwprintf_p(const wchar_t *_Format,...);
68 _CRTIMP int __cdecl _vcwprintf_p(const wchar_t *_Format,va_list _ArgList);
69 _CRTIMP int __cdecl _cwprintf_l(const wchar_t *_Format,_locale_t _Locale,...);
70 _CRTIMP int __cdecl _vcwprintf_l(const wchar_t *_Format,_locale_t _Locale,va_list _ArgList);
71 _CRTIMP int __cdecl _cwprintf_p_l(const wchar_t *_Format,_locale_t _Locale,...);
72 _CRTIMP int __cdecl _vcwprintf_p_l(const wchar_t *_Format,_locale_t _Locale,va_list _ArgList);
73 _CRTIMP wint_t __cdecl _putwch_nolock(wchar_t _WCh);
74 _CRTIMP wint_t __cdecl _getwch_nolock(void);
75 _CRTIMP wint_t __cdecl _getwche_nolock(void);
76 _CRTIMP wint_t __cdecl _ungetwch_nolock(wint_t _WCh);
77 #endif /* _WCONIO_DEFINED */
78
79 #ifndef _MT
80 #define _putwch() _putwch_nolock()
81 #define _getwch() _getwch_nolock()
82 #define _getwche() _getwche_nolock()
83 #define _ungetwch() _ungetwch_nolock()
84 #endif
85
86 #ifndef NO_OLDNAMES
87 _CRTIMP _CRT_NONSTDC_DEPRECATE(_cgets) _CRT_INSECURE_DEPRECATE(_cgets_s) _CRTIMP char *__cdecl cgets(char *_Buffer);
88 _CRTIMP _CRT_NONSTDC_DEPRECATE(_cprintf) _CRTIMP int __cdecl cprintf(const char *_Format,...);
89 _CRTIMP _CRT_NONSTDC_DEPRECATE(_cputs) _CRTIMP int __cdecl cputs(const char *_Str);
90 _CRTIMP _CRT_NONSTDC_DEPRECATE(_cscanf) _CRTIMP int __cdecl cscanf(const char *_Format,...);
91 _CRTIMP _CRT_NONSTDC_DEPRECATE(_getch) _CRTIMP int __cdecl getch(void);
92 _CRTIMP _CRT_NONSTDC_DEPRECATE(_getche) _CRTIMP int __cdecl getche(void);
93 _CRTIMP _CRT_NONSTDC_DEPRECATE(_kbhit) _CRTIMP int __cdecl kbhit(void);
94 _CRTIMP _CRT_NONSTDC_DEPRECATE(_putch) _CRTIMP int __cdecl putch(int _Ch);
95 _CRTIMP _CRT_NONSTDC_DEPRECATE(_ungetch) _CRTIMP int __cdecl ungetch(int _Ch);
96
97 #if (defined(_X86_) && !defined(__x86_64))
98 _CRT_NONSTDC_DEPRECATE(_inp) _CRTIMP int __cdecl inp(unsigned short);
99 _CRT_NONSTDC_DEPRECATE(_inpw) _CRTIMP unsigned short __cdecl inpw(unsigned short);
100 _CRT_NONSTDC_DEPRECATE(_outp) _CRTIMP int __cdecl outp(unsigned short,int);
101 _CRT_NONSTDC_DEPRECATE(_outpw) _CRTIMP unsigned short __cdecl outpw(unsigned short,unsigned short);
102 #endif
103 #endif /* !NO_OLDNAMES */
104
105 #ifdef __cplusplus
106 }
107 #endif
108
109 #include <sec_api/conio_s.h>
110
111 #endif /* _INC_CONIO */