Searched refs:newpath (Results 1 – 2 of 2) sorted by relevance
/frameworks/native/cmds/rawbu/ |
D | backup.cpp | 132 char *newpath; in wipe() local 134 newpath = strdup(nameBuffer); in wipe() 135 if (wipe(newpath) == 0) { in wipe() 136 free(newpath); in wipe() 142 ret = rmdir(newpath); in wipe() 145 newpath, strerror(errno)); in wipe() 149 free(newpath); in wipe()
|
/frameworks/native/cmds/dumpstate/ |
D | dumpstate.cpp | 4320 char *newpath = nullptr; in dump_files() local 4342 for (; ((d = readdir(dirp))); free(newpath), newpath = nullptr) { in dump_files() 4348 asprintf(&newpath, "%s%s%s%s", dir, slash, d->d_name, in dump_files() 4350 if (!newpath) { in dump_files() 4354 if (skip && (*skip)(newpath)) { in dump_files() 4358 int ret = dump_files("", newpath, skip, dump_from_fd); in dump_files() 4364 … android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(newpath, O_RDONLY | O_NONBLOCK | O_CLOEXEC))); in dump_files() 4367 printf("*** %s: %s\n", newpath, strerror(errno)); in dump_files() 4370 (*dump_from_fd)(nullptr, newpath, fd.get()); in dump_files() 4532 char *newpath = nullptr; in dump_frozen_cgroupfs() local [all …]
|