Home
last modified time | relevance | path

Searched refs:oldpath (Results 1 – 2 of 2) sorted by relevance

/system/update_engine/common/
Dtest_utils.h78 inline int Symlink(const std::string& oldpath, const std::string& newpath) { in Symlink() argument
79 return symlink(oldpath.c_str(), newpath.c_str()); in Symlink()
/system/core/init/
Ddevices.cpp591 static void make_link_init(const char* oldpath, const char* newpath) { in make_link_init() argument
599 if (symlink(oldpath, newpath) && errno != EEXIST) { in make_link_init()
600 PLOG(ERROR) << "Failed to symlink " << oldpath << " to " << newpath; in make_link_init()
604 static void remove_link(const char* oldpath, const char* newpath) { in remove_link() argument
606 if (android::base::Readlink(newpath, &path) && path == oldpath) unlink(newpath); in remove_link()