To: perl5-porters@perl.org
Message-Id: <Pine.GSU.4.05.
9905261448310.19172-100000@newton.phys>
p4raw-id: //depot/cfgperl@3486
my_fflush_all(void)
{
#ifdef FFLUSH_NULL
- return fflush(NULL);
+ return PerlIO_flush(NULL);
#else
long open_max = -1;
# if defined(FFLUSH_ALL) && defined(HAS_STDIO_STREAM_ARRAY)
if (open_max > 0) {
long i;
for (i = 0; i < open_max; i++)
- fflush(&STDIO_STREAM_ARRAY[i]);
+ PerlIO_flush(&STDIO_STREAM_ARRAY[i]);
return 0;
}
# endif