commit | 82bac0de6d95bcdf45729516f6a4f29eb2681118 | [log] [tgz] |
---|---|---|
author | Yongqin Liu <yongqin.liu@linaro.org> | Wed Dec 28 16:06:19 2016 +0800 |
committer | Yongqin Liu <yongqin.liu@linaro.org> | Fri Mar 24 08:34:25 2017 +0800 |
tree | 8e75d7be44dc0d26b57df0ec7cd319ade698e7e0 | |
parent | 2a54ae97ebcb69fe0ca5807f860739f499079ca1 [diff] |
init: use read_file and write_file to implement do_copy builtin this will make the implementation more cleaner, and has error message output when failed on some operations also add the O_TRUNC flag explicitly for the open function called in write_file. And add more test on read_file and write_file functions Test: manual with hikey Change-Id: Ifc1086a20e85db6980b497b1150a8a7952e672d6 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>