crosvm/kvm
Zach Reizner ee2f1fe770 sys_util: replace sysconf(_SC_PAGESIZE) with a safe wrapper
There were a few places that used this to get the page size inside of an
unsafe block, For convenience, this adds a safe wrapper in sys_util and
replaces all extant usage of sysconf with the wrapper version.

BUG=chromium:800626
TEST=./build_test

Change-Id: Ic65bf72aea90eabd4158fbdcdbe25c3f13ca93ac
Reviewed-on: https://chromium-review.googlesource.com/857907
Commit-Ready: Zach Reizner <zachr@chromium.org>
Tested-by: Zach Reizner <zachr@chromium.org>
Reviewed-by: Stephen Barber <smbarber@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
2018-01-10 15:44:31 -08:00
..
src sys_util: replace sysconf(_SC_PAGESIZE) with a safe wrapper 2018-01-10 15:44:31 -08:00
tests kvm: add dirty log support 2018-01-03 16:54:34 -08:00
Cargo.toml kvm: add kvm crate to safely use kvm 2017-05-08 12:40:51 -07:00