MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / get_argv0

Method get_argv0

src/backward.h:1324–1330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1322 std::string exec_path_;
1323
1324 static std::string get_argv0()
1325 {
1326 std::string argv0;
1327 std::ifstream ifs("/proc/self/cmdline");
1328 std::getline(ifs, argv0, '\0');
1329 return argv0;
1330 }
1331
1332 static std::string read_symlink(std::string const& symlink_path)
1333 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected