Lines Matching refs:from
23 char *from = NULL, *to = NULL; in mv_main() local
34 from = argv[1]; in mv_main()
39 from = get_realpath(from, abspath_from, sizeof(abspath_from)); in mv_main()
41 if (!from || !to) { in mv_main()
48 char *p = strrchr(from, '/'); in mv_main()
51 ret = asprintf(&to, "%s/%s", to, from); in mv_main()
62 ret = rename(from, to); in mv_main()
64 aos_cli_printf("rename %s to %s failed - %s\n", from, to, strerror(errno)); in mv_main()
70 fd_from = open(from, O_RDONLY); in mv_main()
72 aos_cli_printf("open %s failed - %s\n", from, strerror(errno)); in mv_main()
84 aos_cli_printf("read %s failed - %s\n", from, strerror(errno)); in mv_main()
95 ret = unlink(from); in mv_main()
97 aos_cli_printf("unlink %s failed - %s\n", from, strerror(errno)); in mv_main()