Page MenuHomeFreeBSD

random(3): Abstract routines into _r versions on explicit state
ClosedPublic

Authored by cem on Jan 21 2020, 2:07 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 9 2024, 6:33 PM
Unknown Object (File)
Feb 28 2024, 3:52 AM
Unknown Object (File)
Feb 14 2024, 6:23 PM
Unknown Object (File)
Feb 9 2024, 5:00 PM
Unknown Object (File)
Dec 20 2023, 3:20 AM
Unknown Object (File)
Dec 14 2023, 9:24 AM
Unknown Object (File)
Dec 1 2023, 6:37 PM
Unknown Object (File)
Nov 28 2023, 7:28 PM
Subscribers

Details

Summary

The existing APIs simply pass the implicit global state to the _r variants.

No functional change.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jan 21 2020, 6:11 PM

I had some concerns about providing *_r variants of these that match names from glibc but aren't compatible, but I see the ultimate plan is that these aren't intended to be exported from libc at all- this seems OK.

I had some concerns about providing *_r variants of these that match names from glibc but aren't compatible, but I see the ultimate plan is that these aren't intended to be exported from libc at all- this seems OK.

Hm, I didn't realize glibc had these routines. They picked different argument orderings and state struct name (and field names), but otherwise look pretty similar. Yeah, I didn't intend to export these routines from libc and don't see a great reason to.