Searched refs:newpath (Results 1 - 2 of 2) sorted by relevance
/frameworks/native/cmds/rawbu/ |
H A D | backup.cpp | 133 char *newpath; local 135 newpath = strdup(nameBuffer); 136 if (wipe(newpath) == 0) { 137 free(newpath); 143 ret = rmdir(newpath); 146 newpath, strerror(errno)); 150 free(newpath);
|
/frameworks/native/cmds/dumpstate/ |
H A D | utils.cpp | 629 char *newpath = NULL; local 651 for (; ((d = readdir(dirp))); free(newpath), newpath = NULL) { 657 asprintf(&newpath, "%s%s%s%s", dir, slash, d->d_name, 659 if (!newpath) { 663 if (skip && (*skip)(newpath)) { 667 int ret = dump_files("", newpath, skip, dump_from_fd); 673 fd = TEMP_FAILURE_RETRY(open(newpath, O_RDONLY | O_NONBLOCK | O_CLOEXEC)); 676 printf("*** %s: %s\n", newpath, strerror(errno)); 679 (*dump_from_fd)(NULL, newpath, f [all...] |
Completed in 66 milliseconds