From 14773e10a01ea162bb305975a4d439c52a620876 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 24 Nov 2008 17:15:43 +0000 Subject: * libc/include/stdio.h (__SMOD): Remove definition of unused flag. * libc/include/sys/reent.h (struct __sFILE): Add _flags2 member. * libc/stdio/findfp.c (std): Initialize _flags2. (__sfp): Ditto. * libc/stdio/refill.c (__srefill_r): Drop resetting __SMOD flag. * libc/stdio/vfscanf.c (__ssrefill_r): Ditto. * libc/stdio/fseek.c (_fseek_r): Drop checking __SMOD flag. * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto. --- newlib/libc/stdio/findfp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'newlib/libc/stdio/findfp.c') diff --git a/newlib/libc/stdio/findfp.c b/newlib/libc/stdio/findfp.c index 4f613e537..0de2a7f23 100644 --- a/newlib/libc/stdio/findfp.c +++ b/newlib/libc/stdio/findfp.c @@ -46,6 +46,7 @@ _DEFUN(std, (ptr, flags, file, data), ptr->_r = 0; ptr->_w = 0; ptr->_flags = flags; + ptr->_flags2 = 0; ptr->_file = file; ptr->_bf._base = 0; ptr->_bf._size = 0; @@ -126,6 +127,7 @@ _DEFUN(__sfp, (d), found: fp->_file = -1; /* no file */ fp->_flags = 1; /* reserve this slot; caller sets real flags */ + fp->_flags2 = 0; #ifndef __SINGLE_THREAD__ __lock_init_recursive (fp->_lock); #endif -- cgit v1.2.3