| 349 | } |
| 350 | |
| 351 | string readProcFile(const char* basename) |
| 352 | { |
| 353 | char filename[256]; |
| 354 | snprintf(filename, sizeof filename, "/proc/%d/%s", pid_, basename); |
| 355 | string content; |
| 356 | FileUtil::readFile(filename, 1024*1024, &content); |
| 357 | return content; |
| 358 | } |
| 359 | |
| 360 | string readLink(const char* basename) |
| 361 | { |
nothing calls this directly
no test coverage detected