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

/frameworks/native/cmds/rawbu/
H A Dbackup.cpp133 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 Dutils.cpp515 char *newpath = NULL; local
537 for (; ((d = readdir(dirp))); free(newpath), newpath = NULL) {
543 asprintf(&newpath, "%s%s%s%s", dir, slash, d->d_name,
545 if (!newpath) {
549 if (skip && (*skip)(newpath)) {
553 int ret = dump_files(NULL, newpath, skip, dump_from_fd);
559 fd = TEMP_FAILURE_RETRY(open(newpath, O_RDONLY | O_NONBLOCK | O_CLOEXEC));
562 printf("*** %s: %s\n", newpath, strerror(errno));
565 (*dump_from_fd)(NULL, newpath, f
[all...]

Completed in 624 milliseconds