1157959Sdeischen/*-
2157959Sdeischen * Copyright (C) 2006 Daniel M. Eischen.  All rights reserved.
3157959Sdeischen *
4157959Sdeischen * Redistribution and use in source and binary forms, with or without
5157959Sdeischen * modification, are permitted provided that the following conditions
6157959Sdeischen * are met:
7157959Sdeischen * 1. Redistributions of source code must retain the above copyright
8157959Sdeischen *    notice, this list of conditions and the following disclaimer.
9157959Sdeischen * 2. Redistributions in binary form must reproduce the above copyright
10157959Sdeischen *    notice, this list of conditions and the following disclaimer in the
11157959Sdeischen *    documentation and/or other materials provided with the distribution.
12157959Sdeischen *
13157959Sdeischen * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14157959Sdeischen * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15157959Sdeischen * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16157959Sdeischen * ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
17157959Sdeischen * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18157959Sdeischen * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19157959Sdeischen * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20157959Sdeischen * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21157959Sdeischen * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22157959Sdeischen * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23157959Sdeischen * SUCH DAMAGE.
24157959Sdeischen */
25157959Sdeischen
26157959Sdeischen#include <sys/cdefs.h>
27157959Sdeischen__FBSDID("$FreeBSD$");
28157959Sdeischen
29157959Sdeischen#include <stdio.h>
30157959Sdeischen#include "local.h"
31157959Sdeischen
32157963Sdeischen__weak_reference(__fcloseall, fcloseall);
33157959Sdeischen
34157959Sdeischenvoid
35157959Sdeischen__fcloseall(void)
36157959Sdeischen{
37157959Sdeischen
38157959Sdeischen	(void)_fwalk(fclose);
39157959Sdeischen}
40