* 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.
This commit is contained in:
Corinna Vinschen
2008-11-24 17:15:43 +00:00
parent d6f6f50285
commit 14773e10a0
8 changed files with 18 additions and 11 deletions

View File

@ -282,12 +282,10 @@ _DEFUN (_fseeko64_r, (ptr, fp, offset, whence),
/*
* If the target offset is within the current buffer,
* simply adjust the pointers, clear EOF, undo ungetc(),
* and return. (If the buffer was modified, we have to
* skip this; see fgetline.c.)
* and return.
*/
if ((fp->_flags & __SMOD) == 0 &&
target >= curoff && target < curoff + n)
if (target >= curoff && target < curoff + n)
{
register int o = target - curoff;