xref: /llvm-project/libc/src/stdio/funlockfile.cpp (revision 5ff3ff33ff930e4ec49da7910612d8a41eb068cb)
1945e0220SSiva Chandra Reddy //===-- Implementation of funlockfile -------------------------------------===//
2945e0220SSiva Chandra Reddy //
3945e0220SSiva Chandra Reddy // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4945e0220SSiva Chandra Reddy // See https://llvm.org/LICENSE.txt for license information.
5945e0220SSiva Chandra Reddy // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6945e0220SSiva Chandra Reddy //
7945e0220SSiva Chandra Reddy //===----------------------------------------------------------------------===//
8945e0220SSiva Chandra Reddy 
9945e0220SSiva Chandra Reddy #include "src/stdio/funlockfile.h"
10945e0220SSiva Chandra Reddy #include "src/__support/File/file.h"
11*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h"
12945e0220SSiva Chandra Reddy 
135aed6d67SMichael Jones #include "hdr/types/FILE.h"
14945e0220SSiva Chandra Reddy 
15*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL {
16945e0220SSiva Chandra Reddy 
17945e0220SSiva Chandra Reddy LLVM_LIBC_FUNCTION(void, funlockfile, (::FILE * stream)) {
18b6bc9d72SGuillaume Chatelet   reinterpret_cast<LIBC_NAMESPACE::File *>(stream)->unlock();
19945e0220SSiva Chandra Reddy }
20945e0220SSiva Chandra Reddy 
21*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL
22