diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-30 10:43:51 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-08-07 06:13:51 +0200 |
commit | 3cfa4bc00c61eca4c0986c793dd21b8b5271fd8f (patch) | |
tree | 01b10c6fa35134394d170696c5c14c67b20b87b3 /commands | |
parent | 2fd4f0fbe93ec7e6e10b3475257521dd8418f8e7 (diff) | |
download | barebox-3cfa4bc00c61eca4c0986c793dd21b8b5271fd8f.tar.gz barebox-3cfa4bc00c61eca4c0986c793dd21b8b5271fd8f.tar.xz |
move file helper functions to separate file
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>
Diffstat (limited to 'commands')
-rw-r--r-- | commands/barebox-update.c | 1 | ||||
-rw-r--r-- | commands/cp.c | 1 | ||||
-rw-r--r-- | commands/crc.c | 1 | ||||
-rw-r--r-- | commands/edit.c | 1 | ||||
-rw-r--r-- | commands/exec.c | 1 | ||||
-rw-r--r-- | commands/insmod.c | 1 | ||||
-rw-r--r-- | commands/linux16.c | 1 | ||||
-rw-r--r-- | commands/of_dump.c | 1 | ||||
-rw-r--r-- | commands/oftree.c | 1 | ||||
-rw-r--r-- | commands/readf.c | 1 | ||||
-rw-r--r-- | commands/tftp.c | 1 | ||||
-rw-r--r-- | commands/ubiformat.c | 1 | ||||
-rw-r--r-- | commands/uimage.c | 1 |
13 files changed, 13 insertions, 0 deletions
diff --git a/commands/barebox-update.c b/commands/barebox-update.c index a24dc3ef4d..92e0efab6a 100644 --- a/commands/barebox-update.c +++ b/commands/barebox-update.c @@ -17,6 +17,7 @@ */ #include <common.h> #include <command.h> +#include <libfile.h> #include <getopt.h> #include <malloc.h> #include <errno.h> diff --git a/commands/cp.c b/commands/cp.c index 1a5675405e..af7a3d4dc0 100644 --- a/commands/cp.c +++ b/commands/cp.c @@ -26,6 +26,7 @@ #include <malloc.h> #include <libgen.h> #include <getopt.h> +#include <libfile.h> /** * @param[in] argc Argument count from command line diff --git a/commands/crc.c b/commands/crc.c index 7c2936c23c..9b6a3e2a4b 100644 --- a/commands/crc.c +++ b/commands/crc.c @@ -22,6 +22,7 @@ #include <fs.h> #include <getopt.h> #include <malloc.h> +#include <libfile.h> #include <environment.h> static int crc_from_file(const char* file, ulong *crc) diff --git a/commands/edit.c b/commands/edit.c index 5a2da7d034..97c2a815d9 100644 --- a/commands/edit.c +++ b/commands/edit.c @@ -21,6 +21,7 @@ #include <fs.h> #include <linux/ctype.h> #include <fcntl.h> +#include <libfile.h> #include <readkey.h> #include <errno.h> #include <xfuncs.h> diff --git a/commands/exec.c b/commands/exec.c index 635f65eeb2..7c8934f137 100644 --- a/commands/exec.c +++ b/commands/exec.c @@ -23,6 +23,7 @@ #include <fcntl.h> #include <linux/stat.h> #include <errno.h> +#include <libfile.h> #include <malloc.h> #include <xfuncs.h> diff --git a/commands/insmod.c b/commands/insmod.c index 176437ee70..735dde0222 100644 --- a/commands/insmod.c +++ b/commands/insmod.c @@ -3,6 +3,7 @@ #include <module.h> #include <errno.h> #include <fs.h> +#include <libfile.h> #include <malloc.h> static int do_insmod(int argc, char *argv[]) diff --git a/commands/linux16.c b/commands/linux16.c index 594efc7dc2..bb678bdb83 100644 --- a/commands/linux16.c +++ b/commands/linux16.c @@ -24,6 +24,7 @@ #include <environment.h> #include <fs.h> #include <errno.h> +#include <libfile.h> #include <getopt.h> #include <malloc.h> #include <boot.h> diff --git a/commands/of_dump.c b/commands/of_dump.c index cafde07b7c..315dbbae8c 100644 --- a/commands/of_dump.c +++ b/commands/of_dump.c @@ -18,6 +18,7 @@ */ #include <common.h> +#include <libfile.h> #include <fdt.h> #include <of.h> #include <command.h> diff --git a/commands/oftree.c b/commands/oftree.c index 983a0a59ea..ad622dec7b 100644 --- a/commands/oftree.c +++ b/commands/oftree.c @@ -26,6 +26,7 @@ #include <common.h> #include <environment.h> #include <fdt.h> +#include <libfile.h> #include <of.h> #include <command.h> #include <fs.h> diff --git a/commands/readf.c b/commands/readf.c index c8cc574f35..8dd5a2b55a 100644 --- a/commands/readf.c +++ b/commands/readf.c @@ -1,6 +1,7 @@ #include <common.h> #include <command.h> #include <fs.h> +#include <libfile.h> #include <malloc.h> #include <linux/stat.h> #include <linux/ctype.h> diff --git a/commands/tftp.c b/commands/tftp.c index 62b9424cf3..8a3b541382 100644 --- a/commands/tftp.c +++ b/commands/tftp.c @@ -24,6 +24,7 @@ #include <fs.h> #include <net.h> #include <libbb.h> +#include <libfile.h> #define TFTP_MOUNT_PATH "/.tftp_tmp_path" diff --git a/commands/ubiformat.c b/commands/ubiformat.c index 443d645a5a..df0b801da9 100644 --- a/commands/ubiformat.c +++ b/commands/ubiformat.c @@ -40,6 +40,7 @@ #include <malloc.h> #include <ioctl.h> #include <libbb.h> +#include <libfile.h> #include <linux/mtd/mtd.h> #include <linux/kernel.h> #include <linux/stat.h> diff --git a/commands/uimage.c b/commands/uimage.c index 33523d7e5c..7c2dca41ec 100644 --- a/commands/uimage.c +++ b/commands/uimage.c @@ -7,6 +7,7 @@ #include <malloc.h> #include <errno.h> #include <getopt.h> +#include <libfile.h> static int uimage_fd; |