blob: c7a1e8f7dbc1516caa6a95905f1f12dd54168e8f [file] [edit]
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
///
/// \file
/// This file contains the bare-metal implementation of fclose.
///
//===----------------------------------------------------------------------===//
#include "src/stdio/fclose.h"
#include "src/__support/OSUtil/io.h"
#include "src/__support/common.h"
#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(int, fclose, (::FILE * stream)) {
return __llvm_libc_stdio_close(stream);
}
} // namespace LIBC_NAMESPACE_DECL