[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / libc / src / __support / File / linux / stderr.cpp
blob65d7865720ffe1669ce1f0d053ca6a18064e9ac4
1 //===--- Definition of Linux stderr ---------------------------------------===//
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 //===----------------------------------------------------------------------===//
9 #include "file.h"
10 #include <stdio.h>
12 namespace LIBC_NAMESPACE {
14 constexpr size_t STDERR_BUFFER_SIZE = 0;
15 static LinuxFile StdErr(2, nullptr, STDERR_BUFFER_SIZE, _IONBF, false,
16 File::ModeFlags(File::OpenMode::APPEND));
17 File *stderr = &StdErr;
19 } // namespace LIBC_NAMESPACE
21 extern "C" {
22 FILE *stderr = reinterpret_cast<FILE *>(&LIBC_NAMESPACE::StdErr);