Home
last modified time | relevance | path

Searched refs:c_str (Results 1 – 25 of 698) sorted by relevance

12345678910>>...28

/openbmc/phosphor-user-manager/test/
H A Dldap_config_test.cpp40 tlsCACertFile = tlsCacertFilePath.filename().c_str(); in SetUp()
42 tlsCertFile = tlsCertFilePath.filename().c_str(); in SetUp()
45 ldapConfFile = confFilePath.filename().c_str(); in SetUp()
116 auto configFilePath = std::string(dir.c_str()) + "/" + ldapConfFile; in TEST_F()
117 auto tlsCACertFilePath = std::string(dir.c_str()) + "/" + tlsCACertFile; in TEST_F()
118 auto tlsCertFilePath = std::string(dir.c_str()) + "/" + tlsCertFile; in TEST_F()
119 auto dbusPersistentFilePath = std::string(dir.c_str()); in TEST_F()
126 MockConfigMgr manager(bus, LDAP_CONFIG_ROOT, configFilePath.c_str(), in TEST_F()
127 dbusPersistentFilePath.c_str(), in TEST_F()
128 tlsCACertFilePath.c_str(), tlsCertFilePath.c_str()); in TEST_F()
[all …]
H A Dutils_test.cpp27 EXPECT_EQ(true, isValidLDAPURI(ipAddress.c_str(), ldapScheme)); in TEST_F()
30 EXPECT_EQ(true, isValidLDAPURI(ipAddress.c_str(), ldapScheme)); in TEST_F()
33 EXPECT_EQ(false, isValidLDAPURI(ipAddress.c_str(), ldapScheme)); in TEST_F()
36 EXPECT_EQ(false, isValidLDAPURI(ipAddress.c_str(), ldapScheme)); in TEST_F()
39 EXPECT_EQ(false, isValidLDAPURI(ipAddress.c_str(), ldapScheme)); in TEST_F()
42 EXPECT_EQ(false, isValidLDAPURI(ipAddress.c_str(), ldapScheme)); in TEST_F()
45 EXPECT_EQ(true, isValidLDAPURI(ipAddress.c_str(), ldapsScheme)); in TEST_F()
48 EXPECT_EQ(false, isValidLDAPURI(ipAddress.c_str(), ldapsScheme)); in TEST_F()
51 EXPECT_EQ(true, isValidLDAPURI(ipAddress.c_str(), ldapsScheme)); in TEST_F()
54 EXPECT_EQ(false, isValidLDAPURI(ipAddress.c_str(), ldapsScheme)); in TEST_F()
[all …]
/openbmc/phosphor-user-manager/phosphor-ldap-config/
H A Dldap_config_mgr.cpp58 method.append(service.c_str(), "replace"); in restartService()
74 method.append(service.c_str(), "replace"); in stopService()
105 Argument::ARGUMENT_VALUE(ldapServerURI.c_str())); in createConfig()
108 if (secureLDAP && !fs::exists(tlsCacertFile.c_str())) in createConfig()
120 Argument::ARGUMENT_VALUE(ldapBindDN.c_str())); in createConfig()
128 Argument::ARGUMENT_VALUE(ldapBaseDN.c_str())); in createConfig()
143 bus, objPath.c_str(), configFilePath.c_str(), tlsCacertFile.c_str(), in createConfig()
144 tlsCertFile.c_str(), secureLDAP, ldapServerURI, ldapBindDN, in createConfig()
155 bus, objPath.c_str(), configFilePath.c_str(), tlsCacertFile.c_str(), in createConfig()
156 tlsCertFile.c_str(), secureLDAP, ldapServerURI, ldapBindDN, in createConfig()
[all …]
/openbmc/phosphor-ipmi-flash/bmc/
H A Dgeneral_systemd.cpp41 triggerService.c_str(), job->c_str()); in trigger()
65 triggerService.c_str(), mode.c_str(), job->c_str()); in trigger()
75 triggerService.c_str(), mode.c_str(), e.what()); in trigger()
88 auto cancel_req = bus.new_method_call(systemdService, job->c_str(), in abort()
93 std::fprintf(stderr, "Canceled %s: %s\n", triggerService.c_str(), in abort()
94 job->c_str()); in abort()
99 triggerService.c_str(), job->c_str(), ex.what()); in abort()
117 std::fprintf(stderr, "No running job %s\n", triggerService.c_str()); in match()
132 triggerService.c_str(), e.what()); in match()
141 std::fprintf(stderr, "Job Finished %s %s: %s\n", triggerService.c_str(), in match()
[all …]
/openbmc/entity-manager/src/entity_manager/
H A Dlog_device_inventory.cpp68 "MESSAGE=Inventory Added: %s", info.name.c_str(), "PRIORITY=%i", in logDeviceAdded()
70 "REDFISH_MESSAGE_ARGS=%s,%s,%s", info.model.c_str(), info.type.c_str(), in logDeviceAdded()
71 info.sn.c_str(), "NAME=%s", info.name.c_str(), NULL); in logDeviceAdded()
84 "MESSAGE=Inventory Removed: %s", info.name.c_str(), "PRIORITY=%i", in logDeviceRemoved()
86 "REDFISH_MESSAGE_ARGS=%s,%s,%s", info.model.c_str(), info.type.c_str(), in logDeviceRemoved()
87 info.sn.c_str(), "NAME=%s", info.name.c_str(), NULL); in logDeviceRemoved()
/openbmc/openpower-proc-control/procedures/phal/
H A Dreinit_devtree.cpp51 auto ret = dtree_cronus_import(devtreeFile.c_str(), CEC_INFODB_PATH, in applyAttrOverride()
57 .c_str()); in applyAttrOverride()
82 log<level::ERR>(err.c_str()); in computeRODeviceTreePath()
91 log<level::ERR>(err.c_str()); in computeRODeviceTreePath()
145 .c_str()); in reinitDevtree()
154 FILE_Ptr fpExport(fopen(tmpFile.getPath().c_str(), "w+"), in reinitDevtree()
161 tmpFile.getPath().c_str()) in reinitDevtree()
162 .c_str()); in reinitDevtree()
176 .c_str()); in reinitDevtree()
187 FILE_Ptr fpImport(fopen(tmpFile.getPath().c_str(), "r"), FileCloser()); in reinitDevtree()
[all …]
/openbmc/openpower-debug-collector/watchdog/
H A Dwatchdog_dbus.cpp37 newMethod.append(path.c_str()); in dbusMethod()
57 bus.new_method_call(service.c_str(), path.c_str(), in dbusMethod()
58 interface.c_str(), function.c_str()); in dbusMethod()
64 bus.new_method_call(service.c_str(), path.c_str(), in dbusMethod()
65 extended.c_str(), function.c_str()); in dbusMethod()
75 lg2::info(traceMsgPath.c_str()); in dbusMethod()
77 lg2::info(traceMsgIface.c_str()); in dbusMethod()
/openbmc/phosphor-hwmon/
H A Dgpio_handle.cpp20 unsigned long chipId = std::strtoul(gpiochip.c_str(), &gpioEnd, 10); in BuildGpioHandle()
21 unsigned long lineOffset = std::strtoul(line.c_str(), &lineEnd, 10); in BuildGpioHandle()
23 if (!gpioEnd || gpioEnd != &gpiochip.c_str()[gpiochip.length()]) in BuildGpioHandle()
26 entry("GPIOCHIP=%s", gpiochip.c_str())); in BuildGpioHandle()
30 if (!lineEnd || lineEnd != &line.c_str()[line.length()]) in BuildGpioHandle()
33 entry("LINE=%s", line.c_str())); in BuildGpioHandle()
/openbmc/phosphor-dbus-monitor/src/
H A Dsdbusplus.hpp47 busName.c_str(), path.c_str(), interface.c_str(), method.c_str()); in callMethodNoReply()
63 busName.c_str(), path.c_str(), interface.c_str(), method.c_str()); in callMethod()
/openbmc/openpower-proc-control/extensions/phal/
H A Ddump_utils.cpp49 status->c_str(), path.c_str()) in dumpStatusChanged()
50 .c_str()); in dumpStatusChanged()
76 path.c_str(), matchInterface.c_str()), in monitorDump()
107 .c_str()); in requestDump()
121 bus.new_method_call(service.c_str(), path, interface, function); in requestDump()
149 .c_str()); in requestDump()
158 .c_str()); in requestDump()
H A Dcreate_pel.cpp77 .c_str()); in getSBECallout()
110 bus.new_method_call(service.c_str(), loggingObjectPath, in createErrorPEL()
124 .c_str()); in createErrorPEL()
202 .c_str()); in createSbeErrorPEL()
210 bus.new_method_call(service.c_str(), loggingObjectPath, in createSbeErrorPEL()
231 .c_str()); in createSbeErrorPEL()
258 auto method = bus.new_method_call(service.c_str(), loggingObjectPath, in createPEL()
272 .c_str()); in createPEL()
282 .c_str()); in createPEL()
313 fileFD = mkostemp(const_cast<char*>(calloutFile.c_str()), O_RDWR); in createCalloutFile()
[all …]
/openbmc/phosphor-led-manager/
H A Dutils.cpp57 bus.new_method_call(service.c_str(), objectPath.c_str(), in getAllProperties()
81 auto method = bus.new_method_call(service.c_str(), objectPath.c_str(), in getProperty()
103 auto method = bus.new_method_call(service.c_str(), objectPath.c_str(), in setProperty()
105 method.append(interface.c_str(), propertyName.c_str(), value); in setProperty()
121 method.append(objectPath.c_str()); in getSubTreePaths()
/openbmc/witherspoon-pfault-analysis/
H A Dpmbus.cpp104 entry("PATH=%s", path.c_str())); in getDeviceName()
135 value = strtoul(val.c_str(), &err, 10); in readBit()
140 entry("FILE=%s", path.c_str()), in readBit()
141 entry("CONTENTS=%s", val.c_str())); in readBit()
152 entry("FILENAME=%s", path.c_str())); in readBit()
158 metadata::CALLOUT_DEVICE_PATH(fs::canonical(basePath).c_str())); in readBit()
190 entry("FILENAME=%s", path.c_str())); in read()
196 metadata::CALLOUT_DEVICE_PATH(fs::canonical(basePath).c_str())); in read()
221 entry("FILENAME=%s", path.c_str())); in readString()
227 metadata::CALLOUT_DEVICE_PATH(fs::canonical(basePath).c_str())); in readString()
[all …]
/openbmc/libpldm/tests/
H A Dinstance-id.cpp17 EXPECT_EQ(::pldm_instance_db_init(nullptr, nonexistentDb.c_str()), -EINVAL); in TEST()
25 EXPECT_EQ(::pldm_instance_db_init(&db, nonexistentDb.c_str()), -EINVAL); in TEST()
69 EXPECT_EQ(pldm_instance_db_init(&db, dbPath.c_str()), -EINVAL); in TEST_F()
78 EXPECT_EQ(pldm_instance_db_init(&db, dbPath.c_str()), -EINVAL); in TEST_F()
85 EXPECT_EQ(pldm_instance_db_init(&db, dbPath.c_str()), 0); in TEST_F()
112 ASSERT_EQ(pldm_instance_db_init(&db, dbPath.c_str()), 0); in TEST_F()
126 ASSERT_EQ(pldm_instance_db_init(&db, dbPath.c_str()), 0); in TEST_F()
148 ASSERT_EQ(pldm_instance_db_init(&db, dbPath.c_str()), 0); in TEST_F()
176 ASSERT_EQ(pldm_instance_db_init(&connections[0].db, dbPath.c_str()), 0); in TEST_F()
180 ASSERT_EQ(pldm_instance_db_init(&connections[1].db, dbPath.c_str()), 0); in TEST_F()
[all …]
/openbmc/hiomapd/vpnor/
H A Dpartition.cpp91 partition.data.name, dst.c_str(), src.c_str()); in getPartitionFilePath()
139 path.c_str(), offset, dst, len); in read()
146 int fd = ::open(path.c_str(), O_RDONLY); in read()
149 MSG_ERR("Failed to open backing file at '%s': %d\n", path.c_str(), in read()
160 path.c_str(), fileSize, lerrno); in read()
173 len, access_len, path.c_str(), fileSize, offset, lerrno); in read()
202 path.c_str(), offset, dst, len); in write()
204 int fd = ::open(path.c_str(), O_RDWR); in write()
207 MSG_ERR("Failed to open backing file at '%s': %d\n", path.c_str(), in write()
217 MSG_ERR("Failed to seek to %zu in %s: %d\n", offset, path.c_str(), in write()
[all …]
/openbmc/openpower-sbe-interface/
H A Dsbe_chipOp_handler.cpp47 throw std::runtime_error(errMsg.str().c_str()); in writeToFifo()
53 throw std::runtime_error(errMsg.str().c_str()); in writeToFifo()
65 throw std::runtime_error(errMsg.str().c_str()); in writeToFifo()
75 throw std::runtime_error(errMsg.str().c_str()); in writeToFifo()
81 throw std::runtime_error(errMsg.str().c_str()); in writeToFifo()
96 throw std::runtime_error(errMsg.str().c_str()); in writeToFifo()
128 throw std::runtime_error(errMsg.str().c_str()); in parseResponse()
151 throw std::runtime_error(errMsg.str().c_str()); in parseResponse()
177 throw std::runtime_error(errMsg.str().c_str()); in parseResponse()
/openbmc/pldm/fw-update/
H A Dfirmware_inventory.cpp11 association(this->bus, this->softwarePath.c_str()), in FirmwareInventory()
12 version(this->bus, this->softwarePath.c_str(), in FirmwareInventory()
16 {{"running", "ran_on", associatedEndpoint.c_str()}}); in FirmwareInventory()
17 this->version.version(softwareVersion.c_str()); in FirmwareInventory()
/openbmc/phosphor-bmc-code-mgmt/bmc/
H A Dimage_manager.cpp89 report<ManifestFileFailure>(ManifestFail::PATH(tarFilePath.c_str())); in processImage()
123 report<ManifestFileFailure>(ManifestFail::PATH(tarFilePath.c_str())); in processImage()
133 report<ManifestFileFailure>(ManifestFail::PATH(tarFilePath.c_str())); in processImage()
161 ImageFail::PATH(manifestPath.string().c_str())); in processImage()
170 ImageFail::PATH(manifestPath.string().c_str())); in processImage()
179 report<ManifestFileFailure>(ManifestFail::PATH(tarFilePath.c_str())); in processImage()
267 report<UnTarFailure>(UnTarFail::PATH(tarFilePath.c_str())); in unTar()
273 report<UnTarFailure>(UnTarFail::PATH(extractDirPath.c_str())); in unTar()
285 execl("/bin/tar", "tar", "-xf", tarFilePath.c_str(), "-C", in unTar()
286 extractDirPath.c_str(), (char*)0); in unTar()
[all …]
/openbmc/phosphor-objmgr/fail-monitor/
H A Dmonitor.cpp39 auto method = bus.new_method_call(systemdService, path.c_str(), in inFailedState()
53 entry("UNIT=%s", source.c_str())); in inFailedState()
77 entry("UNIT=%s", source.c_str())); in getSourceUnitPath()
92 entry("SOURCE=%s", source.c_str()), in runTargetAction()
93 entry("TARGET=%s", target.c_str()), in runTargetAction()
108 entry("UNIT=%s", target.c_str())); in runTargetAction()
/openbmc/openpower-hw-diags/attn/
H A Dattn_dbus.cpp30 bus.new_method_call(service.c_str(), i_path.c_str(), in dbusMethod()
31 i_interface.c_str(), i_function.c_str()); in dbusMethod()
39 trace::inf(i_path.c_str()); in dbusMethod()
40 trace::inf(i_interface.c_str()); in dbusMethod()
64 trace::err("%s only %u of %u bytes written", filePath.c_str(), numBytes, in createPelRaw()
/openbmc/phosphor-ipmi-blobs/
H A Dutils.cpp53 libHandle = sys->dlopen(p.c_str(), RTLD_NOW | RTLD_GLOBAL); in loadLibraries()
56 log<level::ERR>("ERROR opening", entry("HANDLER=%s", p.c_str()), in loadLibraries()
70 entry("HANDLER=%s", p.c_str()), in loadLibraries()
89 entry("HANDLER=%s", p.c_str())); in loadLibraries()
98 entry("HANDLER=%s", p.c_str()), in loadLibraries()
/openbmc/phosphor-logging/test/
H A Dremote_logging_test_config.cpp32 EXPECT_EQ(getConfig(configFilePath.c_str()), "*.* /dev/null"); in TEST_F()
38 EXPECT_EQ(getConfig(configFilePath.c_str()), "*.* /dev/null"); in TEST_F()
45 EXPECT_EQ(getConfig(configFilePath.c_str()), "*.* @@1.1.1.1:100"); in TEST_F()
52 EXPECT_EQ(getConfig(configFilePath.c_str()), "*.* @@1.1.1.1:100"); in TEST_F()
54 EXPECT_EQ(getConfig(configFilePath.c_str()), "*.* /dev/null"); in TEST_F()
61 EXPECT_EQ(getConfig(configFilePath.c_str()), "*.* @@1.1.1.1:100"); in TEST_F()
63 EXPECT_EQ(getConfig(configFilePath.c_str()), "*.* /dev/null"); in TEST_F()
70 EXPECT_EQ(getConfig(configFilePath.c_str()), "*.* @@[abcd:ef01::01]:50000"); in TEST_F()
182 EXPECT_EQ(getConfig(configFilePath.c_str()), "*.* @[abcd:ef01::01]:50000"); in TEST_F()
/openbmc/phosphor-buttons/src/
H A Did_button.cpp37 (getFormFactorType() + " : lseek error!").c_str()); in handleEvent()
45 (getFormFactorType() + " : read error!").c_str()); in handleEvent()
52 (getFormFactorType() + " : pressed").c_str()); in handleEvent()
59 (getFormFactorType() + " : released").c_str()); in handleEvent()
/openbmc/phosphor-mboxd/vpnor/
H A Dpnor_partition.cpp78 partition.data.name, dst.c_str(), src.c_str()); in getPartitionFilePath()
107 MSG_DBG("Resizing %s to %zu bytes\n", path.c_str(), maxAccess); in resize()
108 int rc = truncate(path.c_str(), maxAccess); in resize()
111 MSG_ERR("Failed to resize %s: %d\n", path.c_str(), errno); in resize()
126 int fd = ::open(path.c_str(), flags); in fulfil()
129 MSG_ERR("Failed to open backing file at '%s': %d\n", path.c_str(), in fulfil()
141 path.c_str(), fileSize, errno); in fulfil()
/openbmc/phosphor-watchdog/src/
H A Dwatchdog.cpp123 entry("ACTION=%s", convertForMessage(action).c_str()), in timeOutHandler()
125 convertForMessage(expiredTimerUse()).c_str())); in timeOutHandler()
131 entry("ACTION=%s", convertForMessage(action).c_str()), in timeOutHandler()
132 entry("TIMER_USE=%s", convertForMessage(expiredTimerUse()).c_str()), in timeOutHandler()
133 entry("TARGET=%s", target->second.c_str())); in timeOutHandler()
147 entry("TARGET=%s", target->second.c_str()), in timeOutHandler()
156 signal.append(convertForMessage(action).c_str()); in timeOutHandler()

12345678910>>...28