summaryrefslogtreecommitdiffstats
path: root/include/xfuncs.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix error handling with malloc, memalign etc. Introduce xmemalign().Krzysztof Halasa2011-01-071-0/+1
| | | | | | | | | | | | | | 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>
* xfuncs.h: include linux/types.h to avoid non decleration of size_tJean-Christophe PLAGNIOL-VILLARD2010-08-271-0/+2
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add xstrdup functionSascha Hauer2009-09-251-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* svn_rev_315Sascha Hauer2007-07-051-0/+1
| | | | add xzalloc
* svn_rev_283Sascha Hauer2007-07-051-0/+7
add xfuncs