1 /* 2 * kmp_io.h -- RTL IO header file. 3 */ 4 5 6 //===----------------------------------------------------------------------===// 7 // 8 // The LLVM Compiler Infrastructure 9 // 10 // This file is dual licensed under the MIT and the University of Illinois Open 11 // Source Licenses. See LICENSE.txt for details. 12 // 13 //===----------------------------------------------------------------------===// 14 15 16 #ifndef KMP_IO_H 17 #define KMP_IO_H 18 19 #ifdef __cplusplus 20 extern "C" { 21 #endif 22 23 /* ------------------------------------------------------------------------ */ 24 /* ------------------------------------------------------------------------ */ 25 26 enum kmp_io { 27 kmp_out = 0, 28 kmp_err 29 }; 30 31 extern kmp_bootstrap_lock_t __kmp_stdio_lock; /* Control stdio functions */ 32 extern kmp_bootstrap_lock_t __kmp_console_lock; /* Control console initialization */ 33 34 extern void __kmp_vprintf( enum kmp_io __kmp_io, char const * format, va_list ap ); 35 extern void __kmp_printf( char const * format, ... ); 36 extern void __kmp_printf_no_lock( char const * format, ... ); 37 extern void __kmp_close_console( void ); 38 39 #ifdef __cplusplus 40 } 41 #endif 42 43 #endif /* KMP_IO_H */ 44 45