diff options
| author | jdolecek <jdolecek@NetBSD.org> | 2021-01-31 16:18:22 +0000 |
|---|---|---|
| committer | jdolecek <jdolecek@NetBSD.org> | 2021-01-31 16:18:22 +0000 |
| commit | 266507ac59832db2449448c2856c3ced9981431c (patch) | |
| tree | cdfd6709a362f5ca1a58c553236f90467728b936 /sys/dev/usb/usbdevs_data.h | |
| parent | c925477fece9b83b715ded47e3d1da8f88c7ad9a (diff) | |
for unbuffered I/O arrange for the destination buffer to be filled in one
go, instead of triggering long series of 1 byte read(2)s; this speeds up
fread() several order of magnitudes for this case, directly proportional
to the size of the supplied buffer
change adapted from OpenBSD rev. 1.19
fixes PR lib/55808 by Roland Illig
Diffstat (limited to 'sys/dev/usb/usbdevs_data.h')
0 files changed, 0 insertions, 0 deletions
