]> git.ipfire.org Git - thirdparty/glibc.git/blame - libio/clearerr.c
Prefer https to http for gnu.org and fsf.org URLs
[thirdparty/glibc.git] / libio / clearerr.c
CommitLineData
04277e02 1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
68dbb3a6 2 This file is part of the GNU C Library.
7c713e28 3
68dbb3a6 4 The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
7c713e28 8
68dbb3a6
UD
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
41bdb6e2 12 Lesser General Public License for more details.
7c713e28 13
41bdb6e2 14 You should have received a copy of the GNU Lesser General Public
59ba27a6 15 License along with the GNU C Library; if not, see
5a82c748 16 <https://www.gnu.org/licenses/>. */
7c713e28 17
96aa2d94
RM
18#include "libioP.h"
19#include "stdio.h"
20
21void
9d46370c 22clearerr (FILE *fp)
96aa2d94 23{
7c713e28 24 CHECK_FILE (fp, /*nothing*/);
edf5b2d7 25 _IO_flockfile (fp);
7c713e28 26 _IO_clearerr (fp);
edf5b2d7 27 _IO_funlockfile (fp);
96aa2d94 28}
bdb04ee8 29
30bfee26 30#ifndef _IO_MTSAFE_IO
bdb04ee8
UD
31weak_alias (clearerr, clearerr_unlocked)
32#endif