Searched refs:proc_path (Results 1 – 2 of 2) sorted by relevance
/external/ltp/lib/ |
D | tst_process_state.c | 35 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/ppp/pppd/ |
D | sys-linux.c | 1416 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()
|