summaryrefslogtreecommitdiff
path: root/util_lib
diff options
context:
space:
mode:
authorSven Schnelle <svens@linux.ibm.com>2021-12-16 12:43:54 +0100
committerSimon Horman <horms@verge.net.au>2022-01-14 16:00:11 +0100
commit193e51deccc62544f6423eb5e5eefc8a23aad679 (patch)
treed410a3f779153b46f22eff3a20abcf1078013fb9 /util_lib
parent91a3d0e00a5c18ee9bdd2c6c03ac64a6471e2559 (diff)
add slurp_proc_file()
slurp_file() cannot be used to read proc files, as they are returning a size of zero in stat(). Add a function slurp_proc_file() which is similar to slurp_file(), but doesn't require the size of the file to be known. Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'util_lib')
0 files changed, 0 insertions, 0 deletions