freebsd-dev/lib/libc
Stefan Eßer af7d105379 sysctlbyname(): restore access to user variables
The optimization of sysctlbyname() in commit d05b53e0ba had the
side-effect of not going through the fix-up for the user.* variables
in the previously called sysctl() function.

This lead to 0 or an empty strings being returned by sysctlbyname()
for all user.* variables.

An alternate implementation would store the user variables in the
kernel during system start-up. That would allow to remove the fix-up
code in the C library that is currently required to provide the actual
values.

This update restores the previous code path for the user.* variables
and keeps the performance optimization intact for all other variables.

Approved by:	mjg
Reviewed by:	kaktus
Differential Revision:	https://reviews.freebsd.org/D34171
2022-02-09 23:10:31 +01:00
..
aarch64 libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
amd64 libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
arm libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
capability
compat-43
db tools/build: Don't redefine open() for the linux bootstrap 2021-08-02 14:33:23 +01:00
gdtoa
gen sysctlbyname(): restore access to user variables 2022-02-09 23:10:31 +01:00
gmon
i386 libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
iconv libc: Fix "harmless" iconv one-byte overread 2021-12-21 22:47:38 +00:00
include libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
inet
isc
locale lnumeric.c: replace some space*8 by tabs 2022-02-03 20:56:03 +02:00
md
nameser
net libc: Fix build with -DNS_REREAD_CONF. 2021-12-29 17:01:05 -05:00
nls Implement strerror_l(). 2020-12-16 09:02:09 +00:00
posix1e acl_delete_entry(): remove write-only variable 2021-11-29 17:39:51 +02:00
powerpc libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
powerpc64 libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
powerpcspe [PowerPC] [PowerPCSPE] Fix multiple issues in fpsetmask(). 2021-02-28 21:11:29 -06:00
quad
regex libc: Fix regexec when sizeof(char *) > sizeof(long) 2021-12-23 16:38:10 +00:00
resolv res_init: remove unused inet_makeaddr with IN_LOOPBACKNET 2021-11-09 09:33:48 -06:00
riscv libc: Remove _get_tp() and _set_tp(). 2021-12-09 13:23:26 -08:00
rpc libc clnt_com_create: relock rpcsoc_lock earlier when port is obtained from portmapper 2022-01-09 07:36:06 +02:00
secure libc: ssp: sprinkle around some __dead2 2021-09-30 23:55:17 -05:00
softfloat libc: use standard LF line endings, not CRLF 2021-04-03 16:20:07 -04:00
stdio __sflush(): on write error, if nothing was written, reset FILE state back 2022-01-25 17:26:05 +02:00
stdlib qsort.c: prevent undefined behavior 2022-01-13 11:09:38 +01:00
stdtime strftime.3: Fix a typo and use St for standards 2022-02-07 15:14:47 +01:00
string libc: correct SPDX tag on strstr.c 2022-01-16 11:56:28 -05:00
sys libc binuptime(): use the right function to get the most significant bit index 2022-02-08 21:44:23 +02:00
tests kyua/qemu: When running in qemu, don't teset sendfile 2022-02-02 14:27:51 -07:00
uuid uuid(3): Document return values 2021-11-19 03:58:34 -05:00
x86 Make CPU_SET macros compliant with other implementations 2021-12-30 12:20:32 +01:00
xdr
yp
libc_nossp.ldscript
libc.ldscript
Makefile mips: remove libc 2021-12-31 00:14:53 -07:00
Makefile.depend
Makefile.depend.options
Versions.def Create namespace for the symbols added during 14-CURRENT cycle. 2021-07-15 19:40:28 +03:00