summaryrefslogtreecommitdiff
path: root/helpers.c
Commit message (Collapse)AuthorAgeFilesLines
* Make strnlen() visible in old versions of glibc.stefanct2015-01-271-0/+10
| | | | | | | | | | | | strnlen() is in POSIX 2008 but was a GNU extension up to glibc 2.10 requiring to define _GNU_SOURCE. This fixes compilation on CentOS 4.9. Also, move our implementation of strnlen() that was added to support DJGPP to helpers.c. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1878 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* Move strtok_r implementation verbatim to helpers.c.stefanct2014-11-011-0/+21
| | | | | | | Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1853 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
* Introduce helpers.c.stefanct2014-06-121-0/+72
Move some suitable functions there, add it to the Makefile, but leave the declarations in flash.h for now. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1819 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1