xref: /freebsd/contrib/llvm-project/openmp/runtime/src/kmp_io.h (revision b077aed33b7b6aefca7b17ddb250cf521f938613)
1 /*
2  * kmp_io.h -- RTL IO header file.
3  */
4 
5 //===----------------------------------------------------------------------===//
6 //
7 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
8 // See https://llvm.org/LICENSE.txt for license information.
9 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef KMP_IO_H
14 #define KMP_IO_H
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 /* ------------------------------------------------------------------------ */
21 
22 enum kmp_io { kmp_out = 0, kmp_err };
23 
24 extern kmp_bootstrap_lock_t __kmp_stdio_lock; /* Control stdio functions */
25 extern kmp_bootstrap_lock_t
26     __kmp_console_lock; /* Control console initialization */
27 
28 extern void __kmp_vprintf(enum kmp_io stream, char const *format, va_list ap);
29 extern void __kmp_printf(char const *format, ...);
30 extern void __kmp_printf_no_lock(char const *format, ...);
31 extern void __kmp_fprintf(enum kmp_io stream, char const *format, ...);
32 extern void __kmp_close_console(void);
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 #endif /* KMP_IO_H */
39