getentropy(2) is in POSIX-2024, so adjust the #include visibility,
authorguenther <guenther@openbsd.org>
Fri, 2 Aug 2024 01:53:21 +0000 (01:53 +0000)
committerguenther <guenther@openbsd.org>
Fri, 2 Aug 2024 01:53:21 +0000 (01:53 +0000)
commitc1d8b5d1f7c3ae991e9dd5cff7857b1d133e73e8
tree952fd8620bf622c2c708ec64708092cbac2d884a
parent22230ae753600a8f0175c42513f2b0ec53f697ad
getentropy(2) is in POSIX-2024, so adjust the #include visibility,
change the "too much" error to EINVAL, add GETENTROPY_MAX to
<limits.h> (via sys/syslimits.h), and update the manpage.

ok deraadt@
include/unistd.h
lib/libc/sys/getentropy.2
sys/dev/rnd.c
sys/sys/syslimits.h