xref: /llvm-project/libc/src/stdio/setvbuf.h (revision 5ff3ff33ff930e4ec49da7910612d8a41eb068cb)
14eea8849SSiva Chandra Reddy //===-- Implementation header of setvbuf ------------------------*- C++ -*-===//
24eea8849SSiva Chandra Reddy //
34eea8849SSiva Chandra Reddy // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44eea8849SSiva Chandra Reddy // See https://llvm.org/LICENSE.txt for license information.
54eea8849SSiva Chandra Reddy // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
64eea8849SSiva Chandra Reddy //
74eea8849SSiva Chandra Reddy //===----------------------------------------------------------------------===//
84eea8849SSiva Chandra Reddy 
94eea8849SSiva Chandra Reddy #ifndef LLVM_LIBC_SRC_STDIO_SETVBUF_H
104eea8849SSiva Chandra Reddy #define LLVM_LIBC_SRC_STDIO_SETVBUF_H
114eea8849SSiva Chandra Reddy 
125aed6d67SMichael Jones #include "hdr/types/FILE.h"
13*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h"
145aed6d67SMichael Jones #include <stddef.h>
154eea8849SSiva Chandra Reddy 
16*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL {
174eea8849SSiva Chandra Reddy 
184eea8849SSiva Chandra Reddy int setvbuf(::FILE *__restrict stream, char *__restrict buf, int type,
194eea8849SSiva Chandra Reddy             size_t size);
204eea8849SSiva Chandra Reddy 
21*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL
224eea8849SSiva Chandra Reddy 
234eea8849SSiva Chandra Reddy #endif // LLVM_LIBC_SRC_STDIO_SETVBUF_H
24