MCPcopy Create free account
hub / github.com/Kitware/CMake / stat

Class stat

Source/kwsys/ProcessUNIX.c:2568–2568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2566 int pid;
2567 if (sscanf(d->d_name, "%d", &pid) == 1 && pid != 0) {
2568 struct stat finfo;
2569 snprintf(fname, sizeof(fname), "/proc/%d/stat", pid);
2570 if (stat(fname, &finfo) == 0) {
2571 FILE* f = fopen(fname, "r");

Callers 1

kwsysProcessKillFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…