opnsense-src/lib/libc
Pedro F. Giffuni 62d555c4e8 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-15 16:26:31 -05:00
..
aarch64 libc: add _get_tp() private function 2021-04-23 14:14:07 +03:00
amd64 libc: add _get_tp() private function 2021-04-23 14:14:07 +03:00
arm libc: add _get_tp() private function 2021-04-23 14:14:07 +03:00
capability
compat-43
db
gdtoa
gen libc: Some enhancements to syslog(3) 2021-05-14 09:56:46 -04:00
gmon
i386 libc: add _get_tp() private function 2021-04-23 14:14:07 +03:00
iconv
include libc: add _get_tp() private function 2021-04-23 14:14:07 +03:00
inet
isc
locale Remove __NO_TLS. 2021-03-02 02:49:42 +02:00
md
mips libc: add _get_tp() private function 2021-04-23 14:14:07 +03:00
nameser
net Revert "lib/libc/net/nsdispatch.c: Fix missing unlock and add locking annotations" 2021-04-19 09:52:55 +01:00
nls Implement strerror_l(). 2020-12-16 09:02:09 +00:00
posix1e Fix leak in libc NFSv4 ACL flags parsing 2021-04-23 06:41:23 -04:00
powerpc libc: add _get_tp() private function 2021-04-23 14:14:07 +03:00
powerpc64 libc: add _get_tp() private function 2021-04-23 14:14:07 +03:00
powerpcspe [PowerPC] [PowerPCSPE] Fix multiple issues in fpsetmask(). 2021-03-08 12:39:33 -06:00
quad
regex libc: regex: rework unsafe pointer arithmetic 2021-01-08 13:58:35 -06:00
resolv
riscv libc: add _get_tp() private function 2021-04-23 14:14:07 +03:00
rpc libc: fix buffer overrun in getrpcport(3) 2021-03-02 18:43:26 +00:00
secure
softfloat
stdio fread: improve performance for unbuffered reads 2021-06-15 16:26:31 -05:00
stdlib libc/qsort: Don't allow interposing recursive calls 2021-03-17 09:46:58 +00:00
stdtime
string libc/string/memset.c: Use unsigned long for stores 2021-05-11 09:39:27 +01:00
sys ptrace: add an option to not kill debuggees on debugger exit 2021-06-01 03:38:54 +03:00
tests resolv_test: Fix racy exit check, remove mutexes, and reduce output 2021-04-10 14:01:05 +01:00
uuid
x86 x86: switch vdso TSC timecounter to RDTSCP on AMD Zen CPUs 2021-01-21 14:55:31 +02:00
xdr
yp
libc.ldscript
libc_nossp.ldscript
Makefile libc: include rtld.h into static implementations of rtld interface 2021-04-23 14:14:07 +03:00
Makefile.depend
Makefile.depend.options
Versions.def