Skip to content

Commit

Permalink
libc: Note that getentropy is nearly POSIX 2024
Browse files Browse the repository at this point in the history
Our implementation currently diverges from POSIX 2024 in a couple of
ways, as now noted in the BUGS section.

Reviewed by:	brooks
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47589
  • Loading branch information
emaste committed Nov 20, 2024
1 parent 18a8f4e commit 95b71a6
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions lib/libc/gen/getentropy.3
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd February 24, 2018
.Dd November 20, 2024
.Dt GETENTROPY 3
.Os
.Sh NAME
Expand Down Expand Up @@ -69,10 +69,8 @@ Too many bytes requested, or some other fatal error occurred.
.Xr random 4
.Sh STANDARDS
.Fn getentropy
is non-standard.
It is present on
.Ox
and Linux.
nearly conforms to
.St -p1003.1-2024 .
.Sh HISTORY
The
.Fn getentropy
Expand All @@ -82,3 +80,9 @@ The
.Fx
libc compatibility shim first appeared in
.Fx 12.0 .
.Sh BUGS
.In limits.h
does not define
.Dv GETENTROPY_MAX .
Some error values do not match
.St -p1003.1-2024 .

0 comments on commit 95b71a6

Please sign in to comment.