1 /* Copyright (C) 2004 Manuel Novoa III <mjn3@codepoet.org>
3 * GNU Library General Public License (LGPL) version 2 or later.
5 * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
13 #undef clearerr_unlocked
14 void clearerr_unlocked(register FILE *stream
)
16 __STDIO_STREAM_VALIDATE(stream
);
18 __CLEARERR_UNLOCKED(stream
);
21 #ifndef __UCLIBC_HAS_THREADS__
22 strong_alias(clearerr_unlocked
,clearerr
)
25 #elif defined __UCLIBC_HAS_THREADS__
27 void clearerr(register FILE *stream
)
29 __STDIO_AUTO_THREADLOCK_VAR
;
31 __STDIO_AUTO_THREADLOCK(stream
);
33 __STDIO_STREAM_VALIDATE(stream
);
35 __CLEARERR_UNLOCKED(stream
);
37 __STDIO_AUTO_THREADUNLOCK(stream
);