Home
last modified time | relevance | path

Searched refs:file2str (Results 1 – 1 of 1) sorted by relevance

/external/ltp/tools/top-LTP/proc/
Dreadproc.c241 static int file2str(const char *directory, const char *what, char *ret, int cap) in file2str() function
442 if (unlikely(file2str(path, "stat", sbuf, sizeof sbuf) == -1)) in readproc()
448 if (likely(file2str(path, "statm", sbuf, sizeof sbuf) != -1)) in readproc()
453 if (likely(file2str(path, "status", sbuf, sizeof sbuf) != -1)) { in readproc()
555 if ((file2str(path, "stat", sbuf, sizeof sbuf)) == -1) in ps_readproc()
560 if ((file2str(path, "statm", sbuf, sizeof sbuf)) != -1) in ps_readproc()
567 if ((file2str(path, "status", sbuf, sizeof sbuf)) != -1) { in ps_readproc()
611 file2str(path, "stat", sbuf, sizeof sbuf); in look_up_our_self()
613 file2str(path, "statm", sbuf, sizeof sbuf); in look_up_our_self()
615 file2str(path, "status", sbuf, sizeof sbuf); in look_up_our_self()