Lines Matching refs:filename
97 static int read_stat(char *filename, struct proc_info *proc);
100 static int read_cmdline(char *filename, struct proc_info *proc);
101 static int read_status(char *filename, struct proc_info *proc);
227 char filename[64]; in read_procs() local
261 sprintf(filename, "/proc/%d/stat", pid); in read_procs()
262 read_stat(filename, proc); in read_procs()
264 sprintf(filename, "/proc/%d/cmdline", pid); in read_procs()
265 read_cmdline(filename, proc); in read_procs()
267 sprintf(filename, "/proc/%d/status", pid); in read_procs()
268 read_status(filename, proc); in read_procs()
274 sprintf(filename, "/proc/%d/cmdline", pid); in read_procs()
275 read_cmdline(filename, &cur_proc); in read_procs()
277 sprintf(filename, "/proc/%d/status", pid); in read_procs()
278 read_status(filename, &cur_proc); in read_procs()
283 sprintf(filename, "/proc/%d/task", pid); in read_procs()
284 task_dir = opendir(filename); in read_procs()
298 sprintf(filename, "/proc/%d/task/%d/stat", pid, tid); in read_procs()
299 read_stat(filename, proc); in read_procs()
325 static int read_stat(char *filename, struct proc_info *proc) { in read_stat() argument
329 file = fopen(filename, "r"); in read_stat()
384 static int read_cmdline(char *filename, struct proc_info *proc) { in read_cmdline() argument
389 file = fopen(filename, "r"); in read_cmdline()
411 static int read_status(char *filename, struct proc_info *proc) { in read_status() argument
416 file = fopen(filename, "r"); in read_status()