Support getrandom syscall on FreeBSD
Open
Nobody has claimed this yet.
extension-modules
OS-freebsd
type-feature
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 35.9k
- PR merge metrics
- PR metrics pending
Description
Feature or enhancement
Proposal:
At least FreeBSD and NetBSD also implement getrandom using the same semantics as Linux >= 3.17. The only thing preventing its use is linux specific headers being used in configure to test for its existence.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
- gh-144131
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the configure checks that use Linux-specific headers to test for getrandom. Verify the detection semantics on FreeBSD and NetBSD, and consider the work done when those systems can use getrandom without the Linux-only check blocking support.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, python
- Domain
- build-system, operating-systems
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100