Lines Matching refs:PROC
7150 char proc[32];
7160 sprintf(proc, "/proc/%d/ctl", pid);
7161 if ((ctl = fopen(proc, "w")) == NULL)
7163 sprintf(proc, "/proc/%d/status", pid);
7164 if ((status = fopen (proc, "r")) == NULL)
7248 #define PROC "/proc/%d/ctl"
7255 #define PROC "/proc/%d"
7263 char proc[32];
7271 sprintf(proc, PROC, pid);
7272 if ((pfp = fopen(proc, PROC_MODE)) == NULL)