1161751Sru/* Copyright (C) 1993,96,97,98,2002 Free Software Foundation, Inc.
2161751Sru   This file is part of the GNU C Library.
3161751Sru
4161751Sru   The GNU C Library is free software; you can redistribute it and/or
5161751Sru   modify it under the terms of the GNU Lesser General Public
6161751Sru   License as published by the Free Software Foundation; either
7161751Sru   version 2.1 of the License, or (at your option) any later version.
8161751Sru
9161751Sru   The GNU C Library is distributed in the hope that it will be useful,
10161751Sru   but WITHOUT ANY WARRANTY; without even the implied warranty of
11161751Sru   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12161751Sru   Lesser General Public License for more details.
13161751Sru
14161751Sru   You should have received a copy of the GNU Lesser General Public
15161751Sru   License along with the GNU C Library; if not, write to the Free
16161751Sru   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17161751Sru   02111-1307 USA.
18161751Sru
19161751Sru   As a special exception, if you link the code in this file with
20161751Sru   files compiled with a GNU compiler to produce an executable,
21161751Sru   that does not cause the resulting executable to be covered by
22161751Sru   the GNU Lesser General Public License.  This exception does not
23161751Sru   however invalidate any other reasons why the executable file
24161751Sru   might be covered by the GNU Lesser General Public License.
25161751Sru   This exception applies to code released by its copyright holders
26161751Sru   in files containing the exception.  */
27161751Sru
28161751Sru#include "libioP.h"
29161751Sru#include <stdio.h>
30161751Sru
31161784Sruvoid
32161751Srurewind (fp)
33161784Sru     _IO_FILE *fp;
34161751Sru{
35161751Sru  CHECK_FILE (fp, );
36161751Sru  _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
37161751Sru  _IO_flockfile (fp);
38161751Sru  _IO_rewind (fp);
39161751Sru  _IO_clearerr (fp);
40161751Sru  _IO_funlockfile (fp);
41161751Sru  _IO_cleanup_region_end (0);
42161751Sru}
43161751Srulibc_hidden_def (rewind)
44161784Sru