summaryrefslogtreecommitdiffstats
path: root/include/xfuncs.h
Commit message (Collapse)AuthorAgeFilesLines
* xfuncs: add wrapper for wchar strdup functionsMichael Olbrich2015-07-231-0/+5
| | | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* xfuncs: add xasprintf() and xvasprintf()Michael Olbrich2015-07-231-0/+3
| | | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* xfuncs: import xstrndup() from busyboxMarc Kleine-Budde2015-06-181-0/+1
| | | | | | | | This function is needed for the fixed length string feature in the state framework. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* string: Add (x)memdupSascha Hauer2013-11-271-0/+1
| | | | | | It's a common task to duplicate some memory. Add (x)memdup functions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* 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