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 <corecrt.h> 10 11 #define __need___va_list 12 #include <stdarg.h> 13 14 #ifdef __cplusplus 15 extern "C" { 16 #endif 17 18 _CRTIMP 19 char* 20 __cdecl 21 _cgets( 22 _Pre_notnull_ _Post_z_ char *_Buffer); 23 24 _Check_return_opt_ 25 _CRTIMP 26 int 27 __cdecl 28 _cprintf( 29 _In_z_ _Printf_format_string_ const char *_Format, 30 ...); 31 32 _Check_return_opt_ 33 _CRTIMP 34 int 35 __cdecl 36 _cputs( 37 _In_z_ const char *_Str); 38 39 _Check_return_opt_ 40 _CRT_INSECURE_DEPRECATE(_cscanf_s) 41 _CRTIMP 42 int 43 __cdecl 44 _cscanf( 45 _In_z_ _Scanf_format_string_ const char *_Format, 46 ...); 47 48 _Check_return_opt_ 49 _CRT_INSECURE_DEPRECATE(_cscanf_s_l) 50 _CRTIMP 51 int 52 __cdecl 53 _cscanf_l( 54 _In_z_ _Scanf_format_string_ const char *_Format, 55 _In_opt_ _locale_t _Locale, 56 ...); 57 58 _Check_return_ 59 _CRTIMP 60 int 61 __cdecl 62 _getch(void); 63 64 _Check_return_ 65 _CRTIMP 66 int 67 __cdecl 68 _getche(void); 69 70 _Check_return_opt_ 71 _CRTIMP 72 int 73 __cdecl 74 _vcprintf( 75 _In_z_ _Printf_format_string_ const char *_Format, 76 va_list _ArgList); 77 78 _Check_return_opt_ 79 _CRTIMP 80 int 81 __cdecl 82 _cprintf_p( 83 _In_z_ _Printf_format_string_ const char *_Format, 84 ...); 85 86 _Check_return_opt_ 87 _CRTIMP 88 int 89 __cdecl 90 _vcprintf_p( 91 _In_z_ _Printf_format_string_ const char *_Format, 92 va_list _ArgList); 93 94 _Check_return_opt_ 95 _CRTIMP 96 int 97 __cdecl 98 _cprintf_l( 99 _In_z_ _Printf_format_string_ const char *_Format, 100 _In_opt_ _locale_t _Locale, 101 ...); 102 103 _Check_return_opt_ 104 _CRTIMP 105 int 106 __cdecl 107 _vcprintf_l( 108 _In_z_ _Printf_format_string_ const char *_Format, 109 _In_opt_ _locale_t _Locale, 110 va_list _ArgList); 111 112 _Check_return_opt_ 113 _CRTIMP 114 int 115 __cdecl 116 _cprintf_p_l( 117 _In_z_ _Printf_format_string_ const char *_Format, 118 _In_opt_ _locale_t _Locale, 119 ...); 120 121 _Check_return_opt_ 122 _CRTIMP 123 int 124 __cdecl 125 _vcprintf_p_l( 126 _In_z_ _Printf_format_string_ const char *_Format, 127 _In_opt_ _locale_t _Locale, 128 va_list _ArgList); 129 130 _CRTIMP 131 int 132 __cdecl 133 _kbhit(void); 134 135 _CRTIMP 136 int 137 __cdecl 138 _putch( 139 _In_ int _Ch); 140 141 _CRTIMP 142 int 143 __cdecl 144 _ungetch( 145 _In_ int _Ch); 146 147 _Check_return_ 148 _CRTIMP 149 int 150 __cdecl 151 _getch_nolock(void); 152 153 _Check_return_ 154 _CRTIMP 155 int 156 __cdecl 157 _getche_nolock(void); 158 159 _CRTIMP 160 int 161 __cdecl 162 _putch_nolock( 163 _In_ int _Ch); 164 165 _CRTIMP 166 int 167 __cdecl 168 _ungetch_nolock( 169 _In_ int _Ch); 170 171 #if defined(_X86_) && !defined(__x86_64) 172 int __cdecl _inp(unsigned short); 173 unsigned short __cdecl _inpw(unsigned short); 174 unsigned long __cdecl _inpd(unsigned short); 175 int __cdecl _outp(unsigned short,int); 176 unsigned short __cdecl _outpw(unsigned short,unsigned short); 177 unsigned long __cdecl _outpd(unsigned short,unsigned long); 178 #endif 179 180 181 #ifndef _WCONIO_DEFINED 182 #define _WCONIO_DEFINED 183 184 #ifndef WEOF 185 #define WEOF (wint_t)(0xFFFF) 186 #endif 187 188 _CRTIMP 189 wchar_t* 190 _cgetws( 191 _Pre_notnull_ _Post_z_ wchar_t *_Buffer); 192 193 _Check_return_ 194 _CRTIMP 195 wint_t 196 __cdecl 197 _getwch(void); 198 199 _Check_return_ 200 _CRTIMP 201 wint_t 202 __cdecl 203 _getwche(void); 204 205 _Check_return_ 206 _CRTIMP 207 wint_t 208 __cdecl 209 _putwch( 210 wchar_t _WCh); 211 212 _Check_return_ 213 _CRTIMP 214 wint_t 215 __cdecl 216 _ungetwch( 217 wint_t _WCh); 218 219 _Check_return_opt_ 220 _CRTIMP 221 int 222 __cdecl 223 _cputws( 224 _In_z_ const wchar_t *_String); 225 226 _Check_return_opt_ 227 _CRTIMP 228 int 229 __cdecl 230 _cwprintf( 231 _In_z_ _Printf_format_string_ const wchar_t *_Format, 232 ...); 233 234 _Check_return_opt_ 235 _CRT_INSECURE_DEPRECATE(_cwscanf_s) 236 _CRTIMP 237 int 238 __cdecl 239 _cwscanf( 240 _In_z_ _Scanf_format_string_ const wchar_t *_Format, 241 ...); 242 243 _Check_return_opt_ 244 _CRT_INSECURE_DEPRECATE(_cwscanf_s_l) 245 _CRTIMP 246 int 247 __cdecl 248 _cwscanf_l( 249 _In_z_ _Scanf_format_string_ const wchar_t *_Format, 250 _In_opt_ _locale_t _Locale, 251 ...); 252 253 _Check_return_opt_ 254 _CRTIMP 255 int 256 __cdecl 257 _vcwprintf( 258 _In_z_ _Printf_format_string_ const wchar_t *_Format, 259 va_list _ArgList); 260 261 _Check_return_opt_ 262 _CRTIMP 263 int 264 __cdecl 265 _cwprintf_p( 266 _In_z_ _Printf_format_string_ const wchar_t *_Format, 267 ...); 268 269 _Check_return_opt_ 270 _CRTIMP 271 int 272 __cdecl 273 _vcwprintf_p( 274 _In_z_ _Printf_format_string_ const wchar_t *_Format, 275 va_list _ArgList); 276 277 _CRTIMP 278 int 279 __cdecl 280 _cwprintf_l( 281 _In_z_ _Printf_format_string_ const wchar_t *_Format, 282 _In_opt_ _locale_t _Locale, 283 ...); 284 285 _CRTIMP 286 int 287 __cdecl 288 _vcwprintf_l( 289 _In_z_ _Printf_format_string_ const wchar_t *_Format, 290 _In_opt_ _locale_t _Locale, 291 va_list _ArgList); 292 293 _CRTIMP 294 int 295 __cdecl 296 _cwprintf_p_l( 297 _In_z_ _Printf_format_string_ const wchar_t *_Format, 298 _In_opt_ _locale_t _Locale, 299 ...); 300 301 _CRTIMP 302 int 303 __cdecl 304 _vcwprintf_p_l( 305 _In_z_ _Printf_format_string_ const wchar_t *_Format, 306 _In_opt_ _locale_t _Locale, 307 va_list _ArgList); 308 309 _Check_return_opt_ 310 _CRTIMP 311 wint_t 312 __cdecl 313 _putwch_nolock( 314 wchar_t _WCh); 315 316 _Check_return_ 317 _CRTIMP 318 wint_t 319 __cdecl 320 _getwch_nolock(void); 321 322 _Check_return_ 323 _CRTIMP 324 wint_t 325 __cdecl 326 _getwche_nolock(void); 327 328 _Check_return_opt_ 329 _CRTIMP 330 wint_t 331 __cdecl 332 _ungetwch_nolock( 333 wint_t _WCh); 334 335 #endif /* _WCONIO_DEFINED */ 336 337 #ifndef _MT 338 #define _putwch() _putwch_nolock() 339 #define _getwch() _getwch_nolock() 340 #define _getwche() _getwche_nolock() 341 #define _ungetwch() _ungetwch_nolock() 342 #endif 343 344 #ifndef NO_OLDNAMES 345 346 _Check_return_opt_ 347 _CRT_NONSTDC_DEPRECATE(_cgets) 348 _CRT_INSECURE_DEPRECATE(_cgets_s) 349 _CRTIMP 350 char* 351 __cdecl 352 cgets( 353 _Out_writes_z_(_Inexpressible_(*_Buffer + 2)) char *_Buffer); 354 355 _Check_return_opt_ 356 _CRT_NONSTDC_DEPRECATE(_cprintf) 357 _CRTIMP 358 int 359 __cdecl 360 cprintf( 361 _In_z_ _Printf_format_string_ const char *_Format, 362 ...); 363 364 _Check_return_opt_ 365 _CRT_NONSTDC_DEPRECATE(_cputs) 366 _CRTIMP 367 int 368 __cdecl 369 cputs( 370 _In_z_ const char *_Str); 371 372 _Check_return_opt_ 373 _CRT_NONSTDC_DEPRECATE(_cscanf) 374 _CRTIMP 375 int 376 __cdecl 377 cscanf( 378 _In_z_ _Scanf_format_string_ const char *_Format, 379 ...); 380 381 _Check_return_ 382 _CRT_NONSTDC_DEPRECATE(_getch) 383 _CRTIMP 384 int 385 __cdecl 386 getch(void); 387 388 _Check_return_ 389 _CRT_NONSTDC_DEPRECATE(_getche) 390 _CRTIMP 391 int 392 __cdecl 393 getche(void); 394 395 _Check_return_ 396 _CRT_NONSTDC_DEPRECATE(_kbhit) 397 _CRTIMP 398 int 399 __cdecl 400 kbhit(void); 401 402 _Check_return_opt_ 403 _CRT_NONSTDC_DEPRECATE(_putch) 404 _CRTIMP 405 int 406 __cdecl 407 putch( 408 int _Ch); 409 410 _Check_return_opt_ 411 _CRT_NONSTDC_DEPRECATE(_ungetch) 412 _CRTIMP 413 int 414 __cdecl 415 ungetch( 416 int _Ch); 417 418 #if (defined(_X86_) && !defined(__x86_64)) 419 _CRT_NONSTDC_DEPRECATE(_inp) int __cdecl inp(unsigned short); 420 _CRT_NONSTDC_DEPRECATE(_inpw) unsigned short __cdecl inpw(unsigned short); 421 _CRT_NONSTDC_DEPRECATE(_outp) int __cdecl outp(unsigned short,int); 422 _CRT_NONSTDC_DEPRECATE(_outpw) unsigned short __cdecl outpw(unsigned short,unsigned short); 423 #endif 424 425 #endif /* !NO_OLDNAMES */ 426 427 #ifdef __cplusplus 428 } 429 #endif 430 431 #include <sec_api/conio_s.h> 432 433 #endif /* _INC_CONIO */ 434