Searched refs:oldpath (Results 1 – 2 of 2) sorted by relevance
78 inline int Symlink(const std::string& oldpath, const std::string& newpath) { in Symlink() argument79 return symlink(oldpath.c_str(), newpath.c_str()); in Symlink()
591 static void make_link_init(const char* oldpath, const char* newpath) { in make_link_init() argument599 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() argument606 if (android::base::Readlink(newpath, &path) && path == oldpath) unlink(newpath); in remove_link()