diff options
author | Jean Delvare <jdelvare@suse.de> | 2015-04-21 07:04:27 +0000 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2015-04-21 07:04:27 +0000 |
commit | 2339e722b49efda38bdfe4a4b9996efc440c5567 (patch) | |
tree | e5c017f41376702cd5f8e2b7ca8dd4b2e175c3e1 /CHANGELOG | |
parent | 7d2339a491ce212d29cffb55a9f3f4b8be338ba4 (diff) | |
download | dmidecode-git-2339e722b49efda38bdfe4a4b9996efc440c5567.tar.gz |
util: Add read_file() function for reading sysfs files
Add a function that can read a complete, unknown size file for
reading entry point files from sysfs. This function models its signature
on the mem_chunk() funtion, so it also allocates memory that the caller
needs to free. The files that we are interested in reading are very small,
and have a known upper bound on the size. The EINTR handling is based
on the myread() function.
Contributed by Roy Franz.
Diffstat (limited to 'CHANGELOG')
-rw-r--r-- | CHANGELOG | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2015-04-21 Roy Franz <roy.franz@linaro.org> + + * util.c, util.h: Add utility function read_file, which reads an + entire binary file into a buffer. + 2015-04-20 Jean Delvare <jdelvare@suse.de> * biosdecode.c: Add support for the _SM3_ entry point, as defined in |