Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix error handling with malloc, memalign etc. Introduce xmemalign(). | Krzysztof Halasa | 2011-01-07 | 1 | -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 function | Sascha Hauer | 2009-09-25 | 1 | -0/+10 |
| | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> | ||||
* | export functions | Sascha Hauer | 2007-10-04 | 1 | -0/+5 |
| | |||||
* | add debug for xmalloc and xrealloc | Sascha Hauer | 2007-09-24 | 1 | -0/+4 |
| | |||||
* | svn_rev_706 | Sascha Hauer | 2007-07-05 | 1 | -0/+23 |
| | | | | add file headers | ||||
* | svn_rev_643 | Sascha Hauer | 2007-07-05 | 1 | -0/+30 |
structure cleanup |