diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2016-12-28 16:06:19 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2017-03-24 08:34:25 +0800 |
commit | 82bac0de6d95bcdf45729516f6a4f29eb2681118 (patch) | |
tree | 8e75d7be44dc0d26b57df0ec7cd319ade698e7e0 /libunwindstack/tests/MemoryFileTest.cpp | |
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>
Diffstat (limited to 'libunwindstack/tests/MemoryFileTest.cpp')
0 files changed, 0 insertions, 0 deletions