Lines Matching refs:path
66 char path[64]; in _get_task_permitted_caps() local
75 snprintf(path, sizeof path, "/proc/%d/task/%d/status", pid, tid); in _get_task_permitted_caps()
76 fd = open(path, O_RDONLY); in _get_task_permitted_caps()
78 D("Could not open %s: %s\n", path, strerror(errno)); in _get_task_permitted_caps()
88 D("Could not read %s: %s\n", path, strerror(errno)); in _get_task_permitted_caps()
98 path, len, buff); in _get_task_permitted_caps()
107 D("Found CapPerm of %lld in %s\n", *cap, path); in _get_task_permitted_caps()
110 D("Cannot read CapPerm from %s: '%.*s'\n", path, 24, perm); in _get_task_permitted_caps()
140 char path[64]; in td_ta_new() local
166 snprintf(path, sizeof path, "/proc/%d/task", target_pid); in td_ta_new()
167 dir = opendir(path); in td_ta_new()
169 D("Could not open %s: %s\n", path, strerror(errno)); in td_ta_new()
374 char path[32]; in td_ta_thr_iter() local
379 snprintf(path, sizeof(path), "/proc/%d/task/", agent->pid); in td_ta_thr_iter()
380 dir = opendir(path); in td_ta_thr_iter()