NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Re: fgets() fails to read after fread()
On 31 Aug 2010 10:01:45 -0000, "amol pise" <amol_pise%rediffmail.com@localhost>
wrote:
>[snip]
> $ cat lib/libc/stdio/refill.c
> {{{
> 1 /* $NetBSD: refill.c,v 1.13 2003/08/07 16:43:30 agc Exp $ */
> :
> + #if 0
> 86 /* SysV does not make this test; take it out for
compatibility
> */
> 87 if (fp->_flags & __SEOF)
> 88 return (EOF);
> + #endif
> }}}
>
> Doing the above modification is enough to work for SysV system ?
> Please give me inputs on it.
>
> Thank You,
Oops, I wasn't looking at the correct file...
Yes, removing the sticky EOF check should be enough.
--
Jean-Yves Migeon
jean-yves.migeon%espci.fr@localhost
Home |
Main Index |
Thread Index |
Old Index