Hello Michael,
On 3/3/21 11:20 PM, Michael Kerrisk (man-pages) wrote:
Hello Alex,
On 2/24/21 12:17 AM, Alejandro Colomar wrote:
fpurge(i_stream) does the same as fflush(i_stream), AFAIK.
I don''t think so. fflush() of an output stream forces
a write() of data to the kernel. fpurge() discards the data,
as I understand things.
Yes, for output streams they're different.
I meant
f.....(i[nput]_stream);
which I believe to be the same thing.
But I still think the patch is useful. fflush(3)
and fpurge(3) serve related purposes.
Patch applied.
Thanks,
Alex
--
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/