util: add os_read_file() helper
authorEric Engestrom <eric.engestrom@intel.com>
Mon, 28 Jan 2019 15:44:12 +0000 (15:44 +0000)
committerEric Engestrom <eric@engestrom.ch>
Tue, 30 Apr 2019 15:40:33 +0000 (15:40 +0000)
commit316964709e21286c2af54e3afb3089d0fcce87c1
tree851710be1d62d2448238837c787cd37ba379111b
parent2fae99bcbd00392daf44d1bc570553ac70730d36
util: add os_read_file() helper

readN() taken from igt.
os_read_file() inspired by igt_sysfs_get()

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/util/Makefile.sources
src/util/meson.build
src/util/os_file.c [new file with mode: 0644]
src/util/os_file.h [new file with mode: 0644]