Searched refs:statline (Results 1 - 2 of 2) sorted by relevance
/system/core/toolbox/ |
H A D | ps.c | 36 char statline[1024]; local 48 sprintf(statline, "/proc/%d", pid); 49 stat(statline, &stats); 52 sprintf(statline, "/proc/%d/task/%d/stat", pid, tid); 55 sprintf(statline, "/proc/%d/stat", pid); 68 fd = open(statline, O_RDONLY); 70 r = read(fd, statline, 1023); 73 statline[r] = 0; 75 ptr = statline;
|
/system/core/libcutils/ |
H A D | sched_policy.c | 228 char statline[1024]; local 237 int rc = read(fd, statline, 1023); 239 statline[rc] = 0; 240 char *p = statline; 243 for (p = statline; *p != '('; p++);
|
Completed in 69 milliseconds