Searched refs:newpath (Results 1 – 7 of 7) sorted by relevance
/aosp12/hardware/google/camera/common/hal/hidl_service/ |
H A D | libc_wrappers.cc | 73 extern "C" int link(const char* oldpath, const char* newpath) { in link() argument 76 int ret = real_function(oldpath, newpath); in link() 77 ALOGI("link (%s,%s) == %d", oldpath, newpath, ret); in link() 87 extern "C" int rename(const char* oldpath, const char* newpath) { in rename() argument 90 int ret = real_function(oldpath, newpath); in rename() 91 ALOGI("rename (%s,%s) == %d", oldpath, newpath, ret); in rename()
|
/aosp12/frameworks/native/cmds/rawbu/ |
H A 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()
|
/aosp12/system/core/fs_mgr/ |
H A D | fs_mgr_overlayfs.cpp | 565 const auto newpath = cleanup_all ? overlay + "/." + kOverlayTopDir.substr(1) + ".teardown" in fs_mgr_overlayfs_teardown_one() local 567 auto ret = fs_mgr_rm_all(newpath); in fs_mgr_overlayfs_teardown_one() 569 if (!rename(oldpath.c_str(), newpath.c_str())) { in fs_mgr_overlayfs_teardown_one() 573 PERROR << "mv " << oldpath << " " << newpath; in fs_mgr_overlayfs_teardown_one() 577 ret &= fs_mgr_rm_all(newpath, change); in fs_mgr_overlayfs_teardown_one() 579 if (!rmdir(newpath.c_str())) { in fs_mgr_overlayfs_teardown_one() 583 PERROR << "rmdir " << newpath; in fs_mgr_overlayfs_teardown_one()
|
/aosp12/packages/modules/adb/ |
H A D | sysdeps.h | 99 extern int adb_rename(const char* oldpath, const char* newpath); 734 static inline int adb_rename(const char* oldpath, const char* newpath) { in adb_rename() argument 735 return rename(oldpath, newpath); in adb_rename()
|
H A D | sysdeps_win32.cpp | 2560 int adb_rename(const char* oldpath, const char* newpath) { in adb_rename() argument 2565 if (!android::base::UTF8ToWide(newpath, &newpath_wide)) { in adb_rename()
|
/aosp12/bionic/libc/ |
H A D | SECCOMP_ALLOWLIST_APP.TXT | 46 int rename(const char *oldpath, const char *newpath) lp32
|
/aosp12/frameworks/native/cmds/dumpstate/ |
H A D | dumpstate.cpp | 3802 char *newpath = nullptr; in dump_files() local 3824 for (; ((d = readdir(dirp))); free(newpath), newpath = nullptr) { in dump_files() 3830 asprintf(&newpath, "%s%s%s%s", dir, slash, d->d_name, in dump_files() 3832 if (!newpath) { in dump_files() 3836 if (skip && (*skip)(newpath)) { in dump_files() 3840 int ret = dump_files("", newpath, skip, dump_from_fd); in dump_files() 3846 … android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(newpath, O_RDONLY | O_NONBLOCK | O_CLOEXEC))); in dump_files() 3849 printf("*** %s: %s\n", newpath, strerror(errno)); in dump_files() 3852 (*dump_from_fd)(nullptr, newpath, fd.get()); in dump_files()
|