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 | 517 char *newpath = NULL; local 539 for (; ((d = readdir(dirp))); free(newpath), newpath = NULL) { 545 asprintf(&newpath, "%s%s%s%s", dir, slash, d->d_name, 547 if (!newpath) { 551 if (skip && (*skip)(newpath)) { 555 int ret = dump_files(NULL, newpath, skip, dump_from_fd); 561 fd = TEMP_FAILURE_RETRY(open(newpath, O_RDONLY | O_NONBLOCK | O_CLOEXEC)); 564 printf("*** %s: %s\n", newpath, strerror(errno)); 567 (*dump_from_fd)(NULL, newpath, f [all...] |
Completed in 587 milliseconds