diff options
author | Jean Delvare <jdelvare@suse.de> | 2015-04-27 08:36:16 +0000 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2015-04-27 08:36:16 +0000 |
commit | aaf09f62ce6a8925239bf588521388be5fa6c2db (patch) | |
tree | aab2e0e6114fd61c3f3e4a2223e60219086ecc90 /util.h | |
parent | 04902df9805a9b5775f5d2883576fa439132653b (diff) | |
download | dmidecode-git-aaf09f62ce6a8925239bf588521388be5fa6c2db.tar.gz |
dmidecode: Add support for 64-bit addresses
We can easily support 64-bit addresses by compiling dmidecode with
-D_FILE_OFFSET_BITS=64. This looks reasonably portable.
Also add support for 32-bit long tables, as SMBIOS 3.0.0 allows it,
even though I don't expect to see such a long DMI table any time soon.
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* * This file is part of the dmidecode project. * - * Copyright (C) 2003-2010 Jean Delvare <jdelvare@suse.de> + * 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 @@ -26,6 +26,6 @@ int checksum(const u8 *buf, size_t len); void *read_file(size_t len, const char *filename); -void *mem_chunk(size_t base, size_t len, const char *devmem); +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); |