aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/os_utils.h
Commit message (Collapse)AuthorAgeFilesLines
* Add explicit fork check to HMAC_RNGJack Lloyd2016-02-071-4/+24
| | | | | | | | | | | Add OS functions get_process_id, get_processor_timestamp, and get_system_timestamp_ns. HMAC_RNG uses the pid call to detect forks to initiate a reseed. It also adds the output of all three functions (the pid, the CPU cycle counter, and the system timestamp) into the PRF input. Calls the new OS timer functions from hres_timer entropy source. Removes the call to QPC in es_win32 which is mostly redundant with the one in hres_timer.
* Add OS utility headerJack Lloyd2015-12-051-0/+40
Provide abstractions for the locking allocator (allocate and free locked pages) to decouple it from the platform dependent code. Should make it easy to write a Windows version using VirtualAlloc+VirtualLock. Exposes max mlock limit as a build.h toggle