Lines Matching refs:src
237 int do_copy_tail(const char *src, const char *dest, int limit) in do_copy_tail() argument
244 if (src == NULL || dest == NULL) in do_copy_tail()
247 if (stat(src, &info) < 0) in do_copy_tail()
250 fsrc = open(src, O_RDONLY); in do_copy_tail()
282 int do_mv(char *src, char *dest) in do_mv() argument
286 if (src == NULL || dest == NULL) in do_mv()
289 if (stat(src, &info) < 0) in do_mv()
301 if (rename(src, dest)) { in do_mv()
302 LOGE("failed on '%s', err:%s\n", src, strerror(errno)); in do_mv()
535 int do_copy_limit(const char *src, const char *des, size_t limitsize) in do_copy_limit() argument
546 if (src == NULL || des == NULL) in do_copy_limit()
549 fd1 = open(src, O_RDONLY | O_NONBLOCK); in do_copy_limit()
551 LOGE("failed to open file: %s, err: %s\n", src, in do_copy_limit()