HomeFreeBSD

In r331279 the code used ENOSYS to check the existence of getrandom(2).

Description

In r331279 the code used ENOSYS to check the existence of getrandom(2).
This will only work if the caller already handles SIGSYS, which is not
always the case.

Address this by checking osreldate instead. Note that because there
was not __FreeBSD_version bump when the system call was added, use
1200061 (r332100) which is the first bump after the introduction of
the system call.

PR: 230762
Reported by: Jenkins via Mark Millard
Reviewed by: cem
Differential Revision: https://reviews.freebsd.org/D16807

Details

Provenance
delphijAuthored on
Reviewer
cem
Differential Revision
D16807: Use osreldate to check the existence of getrandom(2).
Parents
rS338083: Add drawer.lua(8)
Branches
Unknown
Tags
Unknown