summaryrefslogtreecommitdiff
path: root/util.c
Commit message (Expand)AuthorAgeFilesLines
* Fix a build warning when USE_MMAP isn't setJean Delvare2023-03-141-1/+3
* Ensure /dev/mem is a character device fileJean Delvare2023-03-101-12/+13
* dmidecode: Write the whole dump file at onceJean Delvare2023-02-201-40/+0
* dmidecode: Don't use memcpy on /dev/mem on arm64Jean Delvare2018-11-161-1/+13
* dmidecode: Sanity check the table offset in dump filesJean Delvare2018-09-131-2/+9
* util: Align read_file() further with mem_chunk()Jean Delvare2018-08-091-9/+10
* util: Use myread() in read_file()Jean Delvare2018-08-091-20/+5
* util: Don't close the same file descriptor twiceJean Delvare2018-08-091-2/+0
* dmidecode: Don't allocate more memory than neededJean Delvare2018-08-011-3/+12
* util: Let callers pass an offset to read_fileJean Delvare2017-04-111-3/+11
* util: Don't leak a file descriptor in read_fileJean Delvare2017-04-111-5/+6
* Let read_file return the actual data sizeJean Delvare2015-11-021-4/+7
* Fix error paths in mem_chunkJean Delvare2015-10-141-14/+10
* Avoid SIGBUS on mmap failureJean Delvare2015-10-141-0/+21
* Fix warnings about unused labels when building without -DUSE_MMAPJean Delvare2015-05-131-2/+3
* Fix sparse warningJean Delvare2015-04-281-1/+1
* dmidecode: Add support for 64-bit addressesJean Delvare2015-04-271-3/+3
* util: Add read_file() function for reading sysfs filesJean Delvare2015-04-211-0/+55
* Fix e-mail addressJean Delvare2014-02-031-1/+1
* Update copyright year.Jean Delvare2010-11-241-1/+1
* Add utility function u64_range, which computes the range between twoJean Delvare2010-11-241-0/+16
* * util.c: makes dmidecode fall back to regular reads if the mmapAnton Arapov2010-09-291-10/+8
* When dumping the DMI table to a binary file, truncate the file first.Jean Delvare2008-10-281-4/+2
* Mass coding-style change: add spaces around operators.Jean Delvare2008-10-261-29/+29
* Update copyright statements.Jean Delvare2008-02-161-1/+1
* Whitespace cleanups.Jean Delvare2008-02-161-2/+2
* Drop trailing whitespace.Jean Delvare2008-02-161-14/+14
* New option --dump-bin, dump the DMI data to a sparse binary file.Jean Delvare2008-02-161-0/+42
* Fix incorrect length in munmap call.Jean Delvare2005-02-121-3/+2
* Use size_t instead of off_t when handling memory addresses. This preventsJean Delvare2005-02-111-1/+1
* Display an error message on memory shortage.Jean Delvare2005-02-111-0/+3
* Move USE_MMAP to config.h, use mmap on Linux only.Jean Delvare2004-12-101-0/+2
* Use sysconf(_SC_PAGESIZE) instead of getpagesize() where available.Jean Delvare2004-11-221-0/+4
* Function myread() has no more user outside of util.c.Jean Delvare2004-11-211-1/+3
* Use MAP_SHARED instead of MAP_PRIVATE in mmap. Seems to be needed forJean Delvare2004-11-111-1/+1
* More helpful error messages.Jean Delvare2004-11-111-3/+8
* Workaround missing MAP_FAILED definition, needed on old systems. OriginalJean Delvare2004-10-241-0/+5
* Add missing header include.Jean Delvare2004-07-241-0/+1
* New mem_chunk function. It returns a buffer containing a copy of a givenJean Delvare2004-05-021-1/+70
* Common "util" functions.Jean Delvare2003-06-171-0/+75