Lines Matching refs:cmdline
93 char cmdline[255];
99 sprintf(cmdpath,"/proc/%d/cmdline", pid);
100 memset(cmdline, 0, sizeof(cmdline));
102 strcpy(cmdline, "N/A");
104 read(fd, cmdline, sizeof(cmdline) - 1);
107 helper(pid, cmdline, arg);
113 static void for_each_pid_helper(int pid, const char *cmdline, void *arg) {
115 func(pid, cmdline);
122 static void for_each_tid_helper(int pid, const char *cmdline, void *arg) {
135 func(pid, pid, cmdline);
588 snprintf(path, sizeof(path), "/proc/%d/cmdline", pid);