Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix error handling with malloc, memalign etc. Introduce xmemalign(). | Krzysztof Halasa | 2011-01-07 | 1 | -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_t | Jean-Christophe PLAGNIOL-VILLARD | 2010-08-27 | 1 | -0/+2 |
| | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> | ||||
* | add xstrdup function | Sascha Hauer | 2009-09-25 | 1 | -0/+1 |
| | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> | ||||
* | svn_rev_315 | Sascha Hauer | 2007-07-05 | 1 | -0/+1 |
| | | | | add xzalloc | ||||
* | svn_rev_283 | Sascha Hauer | 2007-07-05 | 1 | -0/+7 |
add xfuncs |