Searched refs:statline (Results 1 – 2 of 2) sorted by relevance
/system/core/toolbox/ |
D | ps.c | 46 char statline[1024]; in ps_line() local 60 sprintf(statline, "/proc/%d", tid ? tid : pid); in ps_line() 61 stat(statline, &stats); in ps_line() 64 sprintf(statline, "/proc/%d/task/%d/stat", pid, tid); in ps_line() 68 sprintf(statline, "/proc/%d/stat", pid); in ps_line() 82 int fd = open(statline, O_RDONLY); in ps_line() 84 r = read(fd, statline, 1023); in ps_line() 87 statline[r] = 0; in ps_line() 89 ptr = statline; in ps_line()
|
/system/core/libcutils/ |
D | sched_policy.c | 342 char statline[1024]; in set_sched_policy() local 351 int rc = read(fd, statline, 1023); in set_sched_policy() 353 statline[rc] = 0; in set_sched_policy() 354 char *p = statline; in set_sched_policy() 357 for (p = statline; *p != '('; p++); in set_sched_policy()
|