freebsd-dev/lib/libc/include
Conrad Meyer 08a7e74c7c getentropy(3): Fallback to kern.arandom sysctl on older kernels
On older kernels, when userspace program disables SIGSYS, catch ENOSYS and
emulate getrandom(2) syscall with the kern.arandom sysctl (via existing
arc4_sysctl wrapper).

Special care is taken to faithfully emulate EFAULT on NULL pointers, because
sysctl(3) as used by kern.arandom ignores NULL oldp.  (This was caught by
getentropy(3) ATF tests.)

Reported by:	kib
Reviewed by:	kib
Discussed with:	delphij
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D14785
2018-03-21 23:52:37 +00:00
..
isc SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
block_abi.h
compat.h libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
errlst.h libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
fpmath.h Add include guard to fpmath.h 2017-12-02 19:42:08 +00:00
libc_private.h getentropy(3): Fallback to kern.arandom sysctl on older kernels 2018-03-21 23:52:37 +00:00
namespace.h libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
nscache.h libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
nscachedcli.h libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
nss_tls.h libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
port_after.h
port_before.h
reentrant.h lib: Fix several typos and minor errors 2017-12-27 03:23:41 +00:00
resolv_mt.h
spinlock.h
un-namespace.h libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00