Searched refs:new_name (Results 1 – 6 of 6) sorted by relevance
37 const char *const new_name = argv[2]; in main() local42 std::unique_ptr<cuttlefish::NetworkInterface> ni(nm->Open(new_name, name)); in main()45 ni->SetName(new_name); in main()
117 int RenameNetwork(const std::string& name, const std::string& new_name) { in RenameNetwork() argument125 connection->SetName(new_name); in RenameNetwork()128 LOG(ERROR) << "setup_network: can't rename " << name << " to " << new_name; in RenameNetwork()
39 NetworkInterface& SetName(const std::string& new_name) { in SetName() argument40 name_ = new_name; in SetName()
41 const char *const new_name = argv[3]; in main() local50 link_add_request.AddString(IFLA_IFNAME, std::string(new_name)); in main()
115 bool RenameFile(const std::string& old_name, const std::string& new_name) { in RenameFile() argument116 LOG(DEBUG) << "Renaming " << old_name << " to " << new_name; in RenameFile()117 if(rename(old_name.c_str(), new_name.c_str())) { in RenameFile()
30 bool RenameFile(const std::string& old_name, const std::string& new_name);