kmp_io.h 1.1 KB

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