diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2008-05-02 15:25:07 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2008-05-02 15:25:07 +0000 |
| commit | c17bf9a9a5a3b59e03108b785f6b15070ff25651 (patch) | |
| tree | 5e0b10db872b1b2fe5276fd887529303487c71d3 /lib/libc/stdio/clrerr.c | |
| parent | ab9306707af1cb42abff2e9f7bc1f23a17f60892 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/clrerr.c')
| -rw-r--r-- | lib/libc/stdio/clrerr.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libc/stdio/clrerr.c b/lib/libc/stdio/clrerr.c index 8d924b3c90ae..bae0b72ed1e2 100644 --- a/lib/libc/stdio/clrerr.c +++ b/lib/libc/stdio/clrerr.c @@ -39,8 +39,10 @@ __FBSDID("$FreeBSD$"); #include "namespace.h" #include <stdio.h> #include "un-namespace.h" +#include "local.h" #include "libc_private.h" -#undef clearerr + +#define __sclearerr(p) ((void)((p)->_flags &= ~(__SERR|__SEOF))) void clearerr(fp) @@ -50,3 +52,10 @@ clearerr(fp) __sclearerr(fp); FUNLOCKFILE(fp); } + +void +clearerr_unlocked(FILE *fp) +{ + + __sclearerr(fp); +} |
