summaryrefslogtreecommitdiffstats
path: root/lib/unlink-recursive.c
Commit message (Collapse)AuthorAgeFilesLines
* unlink_recursive: Drop struct dataAndrey Smirnov2019-01-241-20/+7
| | | | | | | | Drop struct data which doesn't seem to serve any purpose in the code and looks like a leftover. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* move unlink_recursive declaration to libfile.hSascha Hauer2016-04-151-0/+1
| | | | | | | unlink_recursive is a file utility function, so move the prototype to libfile.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* unlink_recursive: return negative error valueSascha Hauer2014-04-091-1/+1
| | | | | | | In case of an error unlink_recursive returns errno which is positive. Return -errno instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide: Add missing includesSascha Hauer2013-11-081-0/+1
| | | | | | | | A lot of files rely on include/driver.h including include/of.h (and this including include/errno.h. include the files explicitly so we can eventually get rid of including of.h from driver.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rm: implement -rSascha Hauer2012-11-291-0/+56
To recursively remove files and directories. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>