Searched refs:newpath (Results 1 – 2 of 2) sorted by relevance
/frameworks/native/cmds/dumpstate/ |
D | utils.c | 324 char *newpath = NULL; in dump_files() local 345 for (; ((d = readdir(dirp))); free(newpath), newpath = NULL) { in dump_files() 351 asprintf(&newpath, "%s%s%s%s", dir, slash, d->d_name, in dump_files() 353 if (!newpath) { in dump_files() 357 if (skip && (*skip)(newpath)) { in dump_files() 361 int ret = dump_files(NULL, newpath, skip, dump_from_fd); in dump_files() 367 fd = TEMP_FAILURE_RETRY(open(newpath, O_RDONLY | O_NONBLOCK | O_CLOEXEC)); in dump_files() 370 printf("*** %s: %s\n", newpath, strerror(errno)); in dump_files() 373 (*dump_from_fd)(NULL, newpath, fd); in dump_files()
|
/frameworks/native/cmds/rawbu/ |
D | backup.cpp | 133 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()
|