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/ferror.c | |
| parent | ab9306707af1cb42abff2e9f7bc1f23a17f60892 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/ferror.c')
| -rw-r--r-- | lib/libc/stdio/ferror.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libc/stdio/ferror.c b/lib/libc/stdio/ferror.c index 9afabcae6597..add5bee29348 100644 --- a/lib/libc/stdio/ferror.c +++ b/lib/libc/stdio/ferror.c @@ -39,10 +39,9 @@ __FBSDID("$FreeBSD$"); #include "namespace.h" #include <stdio.h> #include "un-namespace.h" +#include "local.h" #include "libc_private.h" -#undef ferror - int ferror(FILE *fp) { @@ -53,3 +52,10 @@ ferror(FILE *fp) FUNLOCKFILE(fp); return (ret); } + +int +ferror_unlocked(FILE *fp) +{ + + return (__sferror(fp)); +} |
