diff options
author | Juergen Beisert <jbe@isonoe.(none)> | 2007-10-19 14:56:45 +0200 |
---|---|---|
committer | Juergen Beisert <jbe@isonoe.(none)> | 2007-10-19 14:56:45 +0200 |
commit | afe73cff56de417ce21096476928f53a7515ddec (patch) | |
tree | ca75b8b93cc2b4b69fc9923162ea7c80d5ff3d2a /commands/cp.c | |
parent | 18690c9c23d424f5a28d24f4369533745c4ddbb3 (diff) | |
download | barebox-afe73cff56de417ce21096476928f53a7515ddec.tar.gz barebox-afe73cff56de417ce21096476928f53a7515ddec.tar.xz |
doc added and some reorganised
Diffstat (limited to 'commands/cp.c')
-rw-r--r-- | commands/cp.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/commands/cp.c b/commands/cp.c index ea0a91d467..e26ff1fa00 100644 --- a/commands/cp.c +++ b/commands/cp.c @@ -20,6 +20,10 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +/** + * @file + * @brief "cp" command implementation + */ #include <common.h> #include <command.h> #include <fs.h> @@ -32,6 +36,10 @@ #define RW_BUF_SIZE (ulong)4096 +/** + * @param[in] src FIXME + * @param[out] dst FIXME + */ static int copy_file(const char *src, const char *dst) { char *rw_buf = NULL; @@ -79,6 +87,11 @@ out: return ret; } +/** + * @param[in] cmdtp FIXME + * @param[in] argc Argument count from command line + * @param[in] argv List of input arguments + */ static int do_cp ( cmd_tbl_t *cmdtp, int argc, char *argv[]) { int ret = 1; @@ -134,3 +147,11 @@ U_BOOT_CMD_START(cp) .usage = "copy files", U_BOOT_CMD_HELP(cmd_cp_help) U_BOOT_CMD_END + +/** + * @page cp_command cp (copy) + * + * Usage: cp <source> [<source>] <destination> + * + * FIXME + */ |