Lines Matching refs:path
58 char path[64]; in _get_task_permitted_caps() local
67 snprintf(path, sizeof path, "/proc/%d/task/%d/status", pid, tid); in _get_task_permitted_caps()
68 fd = open(path, O_RDONLY); in _get_task_permitted_caps()
70 D("Could not open %s: %s\n", path, strerror(errno)); in _get_task_permitted_caps()
80 D("Could not read %s: %s\n", path, strerror(errno)); in _get_task_permitted_caps()
90 path, len, buff); in _get_task_permitted_caps()
99 D("Found CapPerm of %lld in %s\n", *cap, path); in _get_task_permitted_caps()
102 D("Cannot read CapPerm from %s: '%.*s'\n", path, 24, perm); in _get_task_permitted_caps()
131 char path[64]; in td_ta_new() local
157 snprintf(path, sizeof path, "/proc/%d/task", target_pid); in td_ta_new()
158 dir = opendir(path); in td_ta_new()
160 D("Could not open %s: %s\n", path, strerror(errno)); in td_ta_new()
302 char path[32]; in td_ta_thr_iter() local
307 snprintf(path, sizeof(path), "/proc/%d/task/", agent->pid); in td_ta_thr_iter()
308 dir = opendir(path); in td_ta_thr_iter()