Home
last modified time | relevance | path

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

/frameworks/native/cmds/rawbu/
Dbackup.cpp133 char *newpath; in wipe() local
135 newpath = strdup(nameBuffer); in wipe()
136 if (wipe(newpath) == 0) { in wipe()
137 free(newpath); in wipe()
143 ret = rmdir(newpath); in wipe()
146 newpath, strerror(errno)); in wipe()
150 free(newpath); in wipe()
/frameworks/native/cmds/dumpstate/
Dutils.cpp515 char *newpath = NULL; in dump_files() local
537 for (; ((d = readdir(dirp))); free(newpath), newpath = NULL) { in dump_files()
543 asprintf(&newpath, "%s%s%s%s", dir, slash, d->d_name, in dump_files()
545 if (!newpath) { in dump_files()
549 if (skip && (*skip)(newpath)) { in dump_files()
553 int ret = dump_files(NULL, newpath, skip, dump_from_fd); in dump_files()
559 fd = TEMP_FAILURE_RETRY(open(newpath, O_RDONLY | O_NONBLOCK | O_CLOEXEC)); in dump_files()
562 printf("*** %s: %s\n", newpath, strerror(errno)); in dump_files()
565 (*dump_from_fd)(NULL, newpath, fd); in dump_files()