Home
last modified time | relevance | path

Searched refs:newpath (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/cmds/rawbu/
Dbackup.cpp132 char *newpath; in wipe() local
134 newpath = strdup(nameBuffer); in wipe()
135 if (wipe(newpath) == 0) { in wipe()
136 free(newpath); in wipe()
142 ret = rmdir(newpath); in wipe()
145 newpath, strerror(errno)); in wipe()
149 free(newpath); in wipe()
/frameworks/native/cmds/dumpstate/
Dutils.cpp601 char *newpath = NULL; in dump_files() local
623 for (; ((d = readdir(dirp))); free(newpath), newpath = NULL) { in dump_files()
629 asprintf(&newpath, "%s%s%s%s", dir, slash, d->d_name, in dump_files()
631 if (!newpath) { in dump_files()
635 if (skip && (*skip)(newpath)) { in dump_files()
639 int ret = dump_files("", newpath, skip, dump_from_fd); in dump_files()
645 … android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(newpath, O_RDONLY | O_NONBLOCK | O_CLOEXEC))); in dump_files()
648 printf("*** %s: %s\n", newpath, strerror(errno)); in dump_files()
651 (*dump_from_fd)(NULL, newpath, fd.get()); in dump_files()