Re: [PATCH] Unbuffer stdout and stderr on windows

Eli Zaretskii
2013-08-15T18:44:25Z

> Date: Thu, 15 Aug 2013 13:59:40 -0400
> From: Christopher Faylor <cgf-use-the-mailinglist-please@sourceware.org>
>
> >>If the mingw "unbuffered" mode means that everything is o n e c h a r a
> >>c t e r a t a t i m e
> >
> >It does mean that. Doesn't it work like that in Cygwin?
>
> Cygwin uses newlib which, AFAICT, writes a block at a time without
> storing the block in a buffer first.
>
> So:
>
> fwrite (foo, 27, 1, stdout);
>
> writes 27 bytes to stdout in one shot, without buffering.

Sorry, I wasn't thinking about fwrite. I was thinking about fprintf
and putc.