Home
last modified time | relevance | path

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

/external/ltp/lib/
Dtst_process_state.c35 char proc_path[128], cur_state; in tst_process_state_wait() local
37 snprintf(proc_path, sizeof(proc_path), "/proc/%i/stat", pid); in tst_process_state_wait()
40 safe_file_scanf(file, lineno, cleanup_fn, proc_path, in tst_process_state_wait()
52 char proc_path[128], cur_state; in tst_process_state_wait2() local
54 snprintf(proc_path, sizeof(proc_path), "/proc/%i/stat", pid); in tst_process_state_wait2()
57 FILE *f = fopen(proc_path, "r"); in tst_process_state_wait2()
60 proc_path, strerror(errno)); in tst_process_state_wait2()
67 proc_path, strerror(errno)); in tst_process_state_wait2()
/external/chromium-trace/catapult/systrace/atrace_helper/jni/
Dfile_utils.cc31 void ForEachPidInProcPath(const char* proc_path, in ForEachPidInProcPath() argument
33 DIR* root_dir = opendir(proc_path); in ForEachPidInProcPath()
80 char proc_path[128]; in ReadProcFile() local
81 snprintf(proc_path, sizeof(proc_path), "/proc/%d/%s", pid, proc_file); in ReadProcFile()
82 return ReadFile(proc_path, buf, length); in ReadProcFile()
91 char proc_path[128]; in ReadProcFileTrimmed() local
92 snprintf(proc_path, sizeof(proc_path), "/proc/%d/%s", pid, proc_file); in ReadProcFileTrimmed()
93 return ReadFileTrimmed(proc_path, buf, length); in ReadProcFileTrimmed()
Dfile_utils.h33 void ForEachPidInProcPath(const char* proc_path,
/external/ltp/testcases/open_posix_testsuite/include/
Dproc.h20 char proc_path[128], cur_state; in tst_process_state_wait3() local
24 snprintf(proc_path, sizeof(proc_path), "/proc/%i/stat", pid); in tst_process_state_wait3()
27 FILE *f = fopen(proc_path, "r"); in tst_process_state_wait3()
31 proc_path, strerror(errno)); in tst_process_state_wait3()
38 proc_path, strerror(errno)); in tst_process_state_wait3()
/external/ppp/pppd/
Dsys-linux.c1416 static char proc_path[MAXPATHLEN]; variable
1426 strlcpy (proc_path, "/proc", sizeof(proc_path)); in path_to_procfs()
1434 strlcpy(proc_path, mntent->mnt_dir, sizeof(proc_path)); in path_to_procfs()
1435 proc_path_len = strlen(proc_path); in path_to_procfs()
1443 strlcpy(proc_path + proc_path_len, tail, in path_to_procfs()
1444 sizeof(proc_path) - proc_path_len); in path_to_procfs()
1445 return proc_path; in path_to_procfs()