Pedro F. Giffuni a45843c8ed fread: improve performance for unbuffered reads
We can use the buffer passed to fread(3) directly in the FILE *.
The buffer needs to be reset before each call to __srefill().
This preserves the expected behavior in all cases.

The change was found originally in OpenBSD and later adopted by NetBSD.

MFC after:	2 weeks
Obtained from:	OpenBSD (CVS 1.18)

Differential Revision:	https://reviews.freebsd.org/D30548
2021-06-01 16:00:28 -05:00
..
2021-04-09 23:46:24 +03:00
2020-10-09 19:12:44 +00:00
2021-05-13 16:23:44 +02:00
2021-04-09 23:46:24 +03:00
2021-02-23 20:08:10 +02:00
2021-04-09 23:46:24 +03:00
2020-12-16 09:02:09 +00:00
2021-05-13 09:53:08 +02:00