summaryrefslogtreecommitdiffstats
path: root/lib/xfuncs.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix error handling with malloc, memalign etc. Introduce xmemalign().Krzysztof Halasa2011-01-071-0/+8
| | | | | | | | | | | | | | The idea is to panic() when there is no memory available for normal operation. Exception: code which can consume arbitrary amount of RAM (example: files allocated in ramfs) must report error instead of panic(). This patch also fixes code which didn't check for NULL from malloc() etc. Usage: malloc(), memalign() return NULL when out of RAM. xmalloc(), xmemalign() always return non-NULL or panic(). Signed-off-by: Krzysztof HaƂasa <khc@pm.waw.pl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add xstrdup functionSascha Hauer2009-09-251-0/+10
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* export functionsSascha Hauer2007-10-041-0/+5
|
* add debug for xmalloc and xreallocSascha Hauer2007-09-241-0/+4
|
* svn_rev_706Sascha Hauer2007-07-051-0/+23
| | | | add file headers
* svn_rev_643Sascha Hauer2007-07-051-0/+30
structure cleanup