Searched refs:proc_path (Results 1 – 7 of 7) 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/chromium-trace/catapult/systrace/atrace_helper/jni/ |
D | file_utils.cc | 31 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()
|
D | file_utils.h | 33 void ForEachPidInProcPath(const char* proc_path,
|
/external/ltp/testcases/open_posix_testsuite/include/ |
D | proc.h | 25 char proc_path[128], cur_state; in tst_process_state_wait3() local 33 snprintf(proc_path, sizeof(proc_path), "/proc/%i/stat", pid); in tst_process_state_wait3() 36 FILE *f = fopen(proc_path, "r"); in tst_process_state_wait3() 40 proc_path, strerror(errno)); in tst_process_state_wait3() 47 proc_path, strerror(errno)); in tst_process_state_wait3()
|
/external/linux-kselftest/tools/testing/selftests/clone3/ |
D | clone3_set_tid.c | 155 char proc_path[100] = {0}; in main() local 342 snprintf(proc_path, sizeof(proc_path), "/proc/%d/status", pid); in main() 343 f = fopen(proc_path, "r"); in main() 347 strerror(errno), proc_path); in main()
|
/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()
|
/external/igt-gpu-tools/lib/ |
D | igt_aux.c | 1418 __igt_lsof_fds(proc_t *proc_info, int *state, char *proc_path, const char *dir) in __igt_lsof_fds() argument 1428 DIR *dp = opendir(proc_path); in __igt_lsof_fds() 1442 snprintf(path, sizeof(path), "%s/%s", proc_path, d->d_name); in __igt_lsof_fds()
|