fix: Use 'kernel_read' to read from procfs
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 24 Sep 2020 19:38:35 +0000 (15:38 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 30 Sep 2020 16:03:27 +0000 (12:03 -0400)
commitcc87d2b4fa9348da830b0da09db1ee6653e0d758
treee5f2c895bbe649a889aed006dfc8800ede8825fa
parent6f192a1604eccbbd6d2622edb51570b2862ac93f
fix: Use 'kernel_read' to read from procfs

Use the 'kernel_read' helper to read files in procfs, it's present in
the kernel since the 2.6 series and does the right thing on kernels that
require the set_fs dance and newer one which don't.

Change-Id: I1a53fda379e0bb9acc79331626925bbdba63d727
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/wrapper/random.c
This page took 0.02593 seconds and 4 git commands to generate.