Searched refs:confFile (Results 1 – 8 of 8) sorted by relevance
| /openbmc/phosphor-fan-presence/ |
| H A D | json_config.hpp | 250 fs::path confFile = fs::path{confOverridePath} / appName / fileName; in getConfFile() 251 if (fs::exists(confFile)) in getConfFile() 253 return confFile; in getConfFile() 257 confFile = fs::path{confBasePath} / appName / fileName; in getConfFile() 258 if (fs::exists(confFile)) in getConfFile() 260 return confFile; in getConfFile() 267 [&confFile, &appName, &fileName](const auto& value) { in getConfFile() 268 confFile = fs::path{confBasePath} / appName / value / fileName; in getConfFile() 270 return fs::exists(confFile); in getConfFile() 274 confFile.clear(); in getConfFile() [all …]
|
| /openbmc/phosphor-fan-presence/control/json/utils/ |
| H A D | pcie_card_metadata.cpp | 45 auto confFile = fs::path{confOverridePath} / defaultPath; in loadCards() 48 if (!fs::exists(confFile)) in loadCards() 56 confFile = fs::path{confOverridePath} / basePath; in loadCards() 58 if (!fs::exists(confFile)) in loadCards() 60 confFile = fs::path{confBasePath} / basePath; in loadCards() 63 if (fs::exists(confFile)) in loadCards() 71 if (!fs::exists(confFile)) in loadCards() 73 confFile = fs::path{confBasePath} / defaultPath; in loadCards() 76 if (fs::exists(confFile)) in loadCards() 80 std::format("Loading configuration from {}", confFile.string())); in loadCards() [all …]
|
| /openbmc/phosphor-led-manager/manager/ |
| H A D | json-config.hpp | 47 if (!confFile.empty()) in JsonConfig() 60 return confFile; in getConfFile() 78 confFile = configFilePath; in filePathExists() 145 confFile = fs::path{confOverridePath} / confFileName; in getFilePath() 146 if (fs::exists(confFile)) in getFilePath() 152 confFile = fs::path{confBasePath} / confFileName; in getFilePath() 153 if (fs::exists(confFile)) in getFilePath() 157 confFile.clear(); in getFilePath() 182 confFile.clear(); in getFilePath() 192 confFile.clear(); in getFilePath() [all …]
|
| /openbmc/phosphor-snmp/ |
| H A D | snmp_conf_manager.cpp | 130 for (auto& confFile : in restoreClients() local 133 if (!fs::is_regular_file(confFile)) in restoreClients() 138 auto managerID = confFile.path().filename().string(); in restoreClients() 145 if (deserialize(confFile.path(), *manager)) in restoreClients()
|
| /openbmc/phosphor-fan-presence/control/json/ |
| H A D | manager.hpp | 205 auto confFile = fan::JsonConfig::getConfFile( in getConfig() local 208 if (!confFile.empty()) in getConfig() 212 confFile.string())); in getConfig() 213 for (const auto& entry : fan::JsonConfig::load(confFile)) in getConfig()
|
| H A D | manager.cpp | 801 auto confFile = in setProfiles() local 805 if (!confFile.empty()) in setProfiles() 807 for (const auto& entry : fan::JsonConfig::load(confFile)) in setProfiles()
|
| /openbmc/phosphor-user-manager/ |
| H A D | user_mgr.cpp | 660 int UserMgr::getPamModuleConfValue(const std::string& confFile, in getPamModuleConfValue() argument 664 std::ifstream fileToRead(confFile, std::ios::in); in getPamModuleConfValue() 668 "FILENAME", confFile); in getPamModuleConfValue() 701 int UserMgr::setPamModuleConfValue(const std::string& confFile, in setPamModuleConfValue() argument 705 std::string tmpConfFile = confFile + "_tmp"; in setPamModuleConfValue() 706 std::ifstream fileToRead(confFile, std::ios::in); in setPamModuleConfValue() 711 "FILENAME", confFile); in setPamModuleConfValue() 753 if (std::rename(tmpConfFile.c_str(), confFile.c_str()) == 0) in setPamModuleConfValue()
|
| H A D | user_mgr.hpp | 391 int getPamModuleConfValue(const std::string& confFile, 419 int setPamModuleConfValue(const std::string& confFile,
|