From 95df20539dfea30562d9e63d2a3f3b913b134750 Mon Sep 17 00:00:00 2001 From: Jon Ringle Date: Wed, 6 Jan 2010 16:36:49 -0500 Subject: [PATCH 24/24] dummy ferror Stream errors are not being tracked, provide a dummy ferror() Signed-off-by: Jon Ringle --- usr/include/stdio.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/usr/include/stdio.h b/usr/include/stdio.h index 1993f75..7d2c86d 100644 --- a/usr/include/stdio.h +++ b/usr/include/stdio.h @@ -115,6 +115,13 @@ static __inline__ int fflush(FILE * __f) return 0; } +/* stream errors are not kept track of by klibc implementation */ +static __inline__ int ferror(FILE * __f) +{ + (void)__f; + return 0; +} + __extern int sscanf(const char *, const char *, ...); __extern int vsscanf(const char *, const char *, va_list); -- 1.6.5.rc2