summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2015-04-27 08:36:16 +0000
committerJean Delvare <jdelvare@suse.de>2015-04-27 08:36:16 +0000
commitaaf09f62ce6a8925239bf588521388be5fa6c2db (patch)
treeaab2e0e6114fd61c3f3e4a2223e60219086ecc90 /util.h
parent04902df9805a9b5775f5d2883576fa439132653b (diff)
downloaddmidecode-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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.h b/util.h
index 2f0af51..9d409cd 100644
--- a/util.h
+++ b/util.h
@@ -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);