summaryrefslogtreecommitdiffstats
path: root/include/libbb.h
Commit message (Collapse)AuthorAgeFilesLines
* recursive_action: add ACTION_SORT flagBaeuerle, Florian2019-01-081-0/+1
| | | | | | | | | | | Add a flag to sort directory entries before recursing into them. Since this part of lib/ is used inside barebox as well as in scripts/bareboxenv.c, we cannot easily use stringlists from lib/, which would have made the code a bit nicer. Signed-off-by: Florian Bäuerle <florian.baeuerle@allegion.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* move file helper functions to separate fileSascha Hauer2014-08-071-7/+0
| | | | | | | | | | We have our file helper functions in several places. Move them all to lib/libfile.c. With this we no longer have file helpers in fs/fs.c which contains the core fs functions and no functions in lib/libbb.c which are not from busybox. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add function to read single line filesSascha Hauer2013-10-141-0/+2
| | | | | | | Often small files are used to store the value od a variable. This adds a function to easily read such a variable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* recursive_action: add ACTION_FOLLOWLINKS supportJean-Christophe PLAGNIOL-VILLARD2012-09-051-1/+1
| | | | | | this is need to support symlink in envfs Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* libbb: add read_full/write_full functionsSascha Hauer2011-12-151-0/+3
| | | | | | These functions read/write all data or return with an error. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands/cp: add verbose mode which displays progress barHubert Feurstein2011-11-221-1/+1
| | | | | Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* move simple_itoa to libbb so that others can use itSascha Hauer2011-04-121-0/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add process_escape_sequence functionSascha Hauer2010-03-301-0/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* make copy_file() globally availableSascha Hauer2009-09-251-0/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add safe_strncpy() functionSascha Hauer2007-09-281-0/+2
|
* add recursive_action() and concat_subpath_file() from busyboxSascha Hauer2007-09-241-0/+18
|
* add libbb functionsSascha Hauer2007-09-241-0/+9