tools lib api fs: Add helper to read string from procfs file
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 26 Apr 2016 15:31:16 +0000 (12:31 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 26 Apr 2016 16:15:00 +0000 (13:15 -0300)
commit4bd112df3eea4db63fe90fb4e83c48d3f3bd6512
treeec7db18635dd1db653271c0dd620af240e1384f4
parentccd9b2a7f82b069b8e8ac892fd9c1c22e7b11eba
tools lib api fs: Add helper to read string from procfs file

To read things like /proc/self/comm.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Milian Wolff <milian.wolff@kdab.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-ztpkbmseidt0hq2psr46o0h9@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/api/fs/fs.c
tools/lib/api/fs/fs.h