Eric Blake wrote:
> > Order of operations. I'm glad to know I'm not the only one that makes this
> > mistake.
>
> Actually, I found the real problem, with a bit more looking at the code.
> With
> this patch, test-fpurge passes on cygwin
Thanks for these fixes. Sorry, I was in a hurry, and do
Eric Blake byu.net> writes:
>
> Eric Blake byu.net> writes:
>
> > > #elif defined __sferror /* FreeBSD, NetBSD, OpenBSD, MacOS X,
> > Cygwin */
> > > fp->_p = fp->_bf._base;
> > > fp->_r = 0;
> > > fp->_w = ((fp->_flags & (__SLBF | __SNBF) == 0) /* fully buffered? */
>
> Or
Eric Blake byu.net> writes:
> > #elif defined __sferror /* FreeBSD, NetBSD, OpenBSD, MacOS X,
> Cygwin */
> > fp->_p = fp->_bf._base;
> > fp->_r = 0;
> > fp->_w = ((fp->_flags & (__SLBF | __SNBF) == 0) /* fully buffered? */
Order of operations. I'm glad to know I'm not the on
Bruno Haible clisp.org> writes:
>
> This generalizes the fpurge() function from the BSDs (FreeBSD, MacOS X,
> OpenBSD, NetBSD).
> #elif defined __sferror /* FreeBSD, NetBSD, OpenBSD, MacOS X,
Cygwin */
> fp->_p = fp->_bf._base;
> fp->_r = 0;
> fp->_w = ((fp->_flags & (__SLBF
This generalizes the fpurge() function from the BSDs (FreeBSD, MacOS X,
OpenBSD, NetBSD).
2007-04-13 Bruno Haible <[EMAIL PROTECTED]>
* modules/fpurge: New file.
* lib/fpurge.h: New file.
* lib/fpurge.c: New file.
* m4/fpurge.m4: New file.
==