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 | 3915 char *newpath = nullptr; in dump_files() local 3937 for (; ((d = readdir(dirp))); free(newpath), newpath = nullptr) { in dump_files() 3943 asprintf(&newpath, "%s%s%s%s", dir, slash, d->d_name, in dump_files() 3945 if (!newpath) { in dump_files() 3949 if (skip && (*skip)(newpath)) { in dump_files() 3953 int ret = dump_files("", newpath, skip, dump_from_fd); in dump_files() 3959 … android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(newpath, O_RDONLY | O_NONBLOCK | O_CLOEXEC))); in dump_files() 3962 printf("*** %s: %s\n", newpath, strerror(errno)); in dump_files() 3965 (*dump_from_fd)(nullptr, newpath, fd.get()); in dump_files() 4127 char *newpath = nullptr; in dump_frozen_cgroupfs() local [all …]
|