Lines Matching full:cmdpath
137 char cmdpath[255];
146 snprintf(cmdpath, sizeof(cmdpath), "/proc/%d/cmdline", pid);
147 if ((fd = TEMP_FAILURE_RETRY(open(cmdpath, O_RDONLY | O_CLOEXEC))) >= 0) {
157 snprintf(cmdpath, sizeof(cmdpath), "/proc/%d/comm", pid);
158 if ((fd = TEMP_FAILURE_RETRY(open(cmdpath, O_RDONLY | O_CLOEXEC))) >= 0) {