crosvm/sys_util/src
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
..
errno.rs sys_util: Add conversion from errno io::Error. 2017-05-25 17:16:02 -07:00
eventfd.rs sys_util: implement FromRawFd for EventFd 2018-01-10 15:44:31 -08:00
fork.rs crosvm: add uid_map/gid_map support to jailed devices 2017-09-08 17:35:58 -07:00
guest_address.rs sys_util: Add guest_memory 2017-05-25 22:51:14 -07:00
guest_memory.rs sys_util: allow empty GuestMemory 2018-01-03 14:23:23 -08:00
handle_eintr.rs sys_util: move handle_eintr!() to sys_util so it can be reused 2017-06-30 12:51:24 -07:00
ioctl.rs sys_util: add ioctl module 2017-07-13 22:03:30 -07:00
lib.rs sys_util: replace sysconf(_SC_PAGESIZE) with a safe wrapper 2018-01-10 15:44:31 -08:00
mmap.rs mmap: Simplify offset checks 2018-01-05 21:14:13 -08:00
passwd.rs sys_util: add get_user_id and get_group_id functions 2017-10-26 04:17:52 -07:00
poll.rs sys_util: add Pollable impls for UnixDatagram and UnixStream 2017-08-03 01:11:01 -07:00
shm.rs sys_util: add memfd seal support to SharedMemory 2018-01-05 14:28:44 -08:00
signal.rs sys_util: add signal module for killing threads 2017-06-30 12:51:24 -07:00
signalfd.rs sys_util: add signalfd module 2017-07-13 11:44:37 -07:00
sock_ctrl_msg.rs sys_util: allow sock_ctrl_msg to be more flexible with iovecs 2017-08-03 01:11:01 -07:00
struct_util.rs
syslog.rs syslog: closelog before trying to figure out the fd 2018-01-05 14:28:45 -08:00
tempdir.rs fix armv7a and aarch64 build errors and warnings 2017-09-01 12:39:18 -07:00
terminal.rs src_util: add terminal module 2017-06-30 12:51:24 -07:00