summaryrefslogtreecommitdiff
path: root/util.h
Commit message (Collapse)AuthorAgeFilesLines
* dmidecode: Add support for 64-bit addresseskhali2015-04-271-2/+2
| | | | | | | | 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.
* util: Add read_file() function for reading sysfs fileskhali2015-04-211-0/+1
| | | | | | | | | | | 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.
* Update my e-mail addresskhali2014-02-031-1/+1
|
* Update copyright year.khali2010-11-241-1/+1
|
* Add utility function u64_range, which computes the range between twokhali2010-11-241-0/+1
| | | | u64 values.
* When dumping the DMI table to a binary file, truncate the file first.khali2008-10-281-1/+1
|
* Update copyright statements.khali2008-02-161-0/+20
|
* New option --dump-bin, dump the DMI data to a sparse binary file.khali2008-02-161-0/+1
|
* Define an ARRAY_SIZE macro which computes the size of a static array, andkhali2007-02-111-0/+2
| | | | use it where relevant.
* Use size_t instead of off_t when handling memory addresses. This preventskhali2005-02-111-1/+1
| | | | dmidecode from crashing on some systems with more than 2 GB of memory.
* Function myread() has no more user outside of util.c.khali2004-11-211-1/+0
|
* New mem_chunk function. It returns a buffer containing a copy of a givenkhali2004-05-021-0/+1
| | | | chunk of the physical memory.
* Common "util" functions.khali2003-06-171-0/+6