MCPcopy Create free account
hub / github.com/chen3feng/toft / EnvironmentsToStringVector

Function EnvironmentsToStringVector

system/process/sub_process.cpp:182–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182static void EnvironmentsToStringVector(
183 const std::map<std::string, std::string>& envs,
184 std::vector<std::string>* vs)
185{
186 for (std::map<std::string, std::string>::const_iterator i = envs.begin();
187 i != envs.end(); ++i) {
188 vs->push_back(i->first + "=" + i->second);
189 }
190}
191
192static bool SetCloexec(int fd)
193{

Callers 1

DoExecMethod · 0.85

Calls 3

push_backMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected