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
..
2020-06-18 13:13:04 +00:00
2019-02-07 23:17:44 +00:00
2019-09-01 16:12:05 +00:00
2020-02-02 19:45:12 +00:00
2020-04-10 09:37:20 +00:00
2018-05-19 21:26:07 +00:00
2019-09-01 16:12:05 +00:00
2019-07-29 19:02:16 +00:00
2021-01-24 11:06:36 +00:00
2021-04-28 12:18:25 +03:00
2019-09-01 16:12:05 +00:00
2020-02-02 19:45:12 +00:00