diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-09-28 12:32:24 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-09-28 12:32:24 +0200 |
commit | c86ea762ab8845450ed8e142a11848b5f42f5863 (patch) | |
tree | e16f703980536c34b2a02974b422f5bb5c1404c5 /util.h | |
parent | 06f6f3f787798e36d097a07873bd2e6e6b44c257 (diff) | |
parent | 53bafb796b654d1f7206196fd97cf8ba0b08ad7a (diff) |
Merge to new upstream release 3.0
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* * This file is part of the dmidecode project. * - * Copyright (C) 2003-2010 Jean Delvare <khali@linux-fr.org> + * Copyright (C) 2003-2015 Jean Delvare <jdelvare@suse.de> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -25,6 +25,7 @@ #define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0])) int checksum(const u8 *buf, size_t len); -void *mem_chunk(size_t base, size_t len, const char *devmem); +void *read_file(size_t len, const char *filename); +void *mem_chunk(off_t base, size_t len, const char *devmem); int write_dump(size_t base, size_t len, const void *data, const char *dumpfile, int add); u64 u64_range(u64 start, u64 end); |