summaryrefslogtreecommitdiff
path: root/CHANGELOG
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2015-04-21 07:04:27 +0000
committerJean Delvare <jdelvare@suse.de>2015-04-21 07:04:27 +0000
commit2339e722b49efda38bdfe4a4b9996efc440c5567 (patch)
treee5c017f41376702cd5f8e2b7ca8dd4b2e175c3e1 /CHANGELOG
parent7d2339a491ce212d29cffb55a9f3f4b8be338ba4 (diff)
downloaddmidecode-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--CHANGELOG5
1 files changed, 5 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 0a9396a..3fc9573 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -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