| 64 | } |
| 65 | |
| 66 | std::string ThisProcess::BinaryPath() |
| 67 | { |
| 68 | char path[PATH_MAX] = {0}; |
| 69 | ssize_t length = readlink("/proc/self/exe", path, sizeof(path)); |
| 70 | if (length > 0) |
| 71 | return std::string(path, length); |
| 72 | return std::string(); |
| 73 | } |
| 74 | |
| 75 | std::string ThisProcess::BinaryName() |
| 76 | { |
nothing calls this directly
no outgoing calls
no test coverage detected