Warning: This file is not a C or C++ file. It does not have highlighting.
| 1 | //===-- Macros defined in stdio.h header file -----------------------------===// |
|---|---|
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #ifndef LLVM_LIBC_MACROS_STDIO_MACROS_H |
| 10 | #define LLVM_LIBC_MACROS_STDIO_MACROS_H |
| 11 | |
| 12 | #include "../llvm-libc-types/FILE.h" |
| 13 | |
| 14 | #ifdef __cplusplus |
| 15 | extern "C" FILE *stdin; |
| 16 | extern "C" FILE *stdout; |
| 17 | extern "C" FILE *stderr; |
| 18 | #else |
| 19 | extern FILE *stdin; |
| 20 | extern FILE *stdout; |
| 21 | extern FILE *stderr; |
| 22 | #endif |
| 23 | |
| 24 | #ifndef stdin |
| 25 | #define stdin stdin |
| 26 | #endif |
| 27 | |
| 28 | #ifndef stdout |
| 29 | #define stdout stdout |
| 30 | #endif |
| 31 | |
| 32 | #ifndef stderr |
| 33 | #define stderr stderr |
| 34 | #endif |
| 35 | |
| 36 | #ifndef EOF |
| 37 | #define EOF (-1) |
| 38 | #endif |
| 39 | |
| 40 | #define BUFSIZ 1024 |
| 41 | |
| 42 | #define _IONBF 2 |
| 43 | #define _IOLBF 1 |
| 44 | #define _IOFBF 0 |
| 45 | |
| 46 | #ifndef SEEK_SET |
| 47 | #define SEEK_SET 0 |
| 48 | #endif |
| 49 | |
| 50 | #ifndef SEEK_CUR |
| 51 | #define SEEK_CUR 1 |
| 52 | #endif |
| 53 | |
| 54 | #ifndef SEEK_END |
| 55 | #define SEEK_END 2 |
| 56 | #endif |
| 57 | |
| 58 | #endif // LLVM_LIBC_MACROS_STDIO_MACROS_H |
| 59 |
Warning: This file is not a C or C++ file. It does not have highlighting.
