1e0f95098SPeter Avalos /*-
2e0f95098SPeter Avalos * Copyright (C) 2006 Daniel M. Eischen. All rights reserved.
3e0f95098SPeter Avalos *
4e0f95098SPeter Avalos * Redistribution and use in source and binary forms, with or without
5e0f95098SPeter Avalos * modification, are permitted provided that the following conditions
6e0f95098SPeter Avalos * are met:
7e0f95098SPeter Avalos * 1. Redistributions of source code must retain the above copyright
8e0f95098SPeter Avalos * notice, this list of conditions and the following disclaimer.
9e0f95098SPeter Avalos * 2. Redistributions in binary form must reproduce the above copyright
10e0f95098SPeter Avalos * notice, this list of conditions and the following disclaimer in the
11e0f95098SPeter Avalos * documentation and/or other materials provided with the distribution.
12e0f95098SPeter Avalos *
13e0f95098SPeter Avalos * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14e0f95098SPeter Avalos * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15e0f95098SPeter Avalos * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16e0f95098SPeter Avalos * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
17e0f95098SPeter Avalos * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18e0f95098SPeter Avalos * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19e0f95098SPeter Avalos * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20e0f95098SPeter Avalos * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21e0f95098SPeter Avalos * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22e0f95098SPeter Avalos * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23e0f95098SPeter Avalos * SUCH DAMAGE.
24e0f95098SPeter Avalos *
25e0f95098SPeter Avalos * $FreeBSD: src/lib/libc/stdio/fcloseall.c,v 1.2 2006/04/22 16:47:59 deischen Exp $
26e0f95098SPeter Avalos */
27e0f95098SPeter Avalos
28e0f95098SPeter Avalos #include <stdio.h>
29e0f95098SPeter Avalos #include "local.h"
30e0f95098SPeter Avalos
31e0f95098SPeter Avalos void
__fcloseall(void)32e0f95098SPeter Avalos __fcloseall(void)
33e0f95098SPeter Avalos {
34e0f95098SPeter Avalos _fwalk(fclose);
35e0f95098SPeter Avalos }
36*0c4f129dSzrj
37*0c4f129dSzrj __weak_reference(__fcloseall, fcloseall);
38