summaryrefslogtreecommitdiffstats
path: root/lib/libbb.c
Commit message (Collapse)AuthorAgeFilesLines
* move file helper functions to separate fileSascha Hauer2014-08-071-93/+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>
* lib: libbb: f should never be NULLLucas Stach2014-02-101-1/+1
| | | | | | | | We assume it to be non NULL in other places, so we are in much greater trouble if it actually is. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add function to read single line filesSascha Hauer2013-10-141-0/+43
| | | | | | | 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>
* libbb: remove vi tabwidth settingAlexander Aring2012-09-111-1/+0
| | | | | | | Remove vi tabwidth and tabstop setting. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* libbb: add read_full/write_full functionsSascha Hauer2011-12-151-0/+50
| | | | | | These functions read/write all data or return with an error. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* move simple_itoa to libbb so that others can use itSascha Hauer2011-04-121-0/+13
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* libbb: sparse fixesSascha Hauer2010-10-211-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* export symbolsSascha Hauer2007-10-071-0/+7
|
* add safe_strncpy() functionSascha Hauer2007-09-281-0/+8
|
* add recursive_action() and concat_subpath_file() from busyboxSascha Hauer2007-09-241-0/+14
|
* add libbb functionsSascha Hauer2007-09-241-0/+87