Home | History | Annotate | Download | only in libprocessgroup

Lines Matching refs:DIR

204     DIR *uid = opendir(uid_path);
207 struct dirent *dir;
208 while ((readdir_r(uid, &cur, &dir) == 0) && dir) {
211 if (dir->d_type != DT_DIR) {
215 if (strncmp(dir->d_name, PROCESSGROUP_PID_PREFIX, strlen(PROCESSGROUP_PID_PREFIX))) {
219 snprintf(path, sizeof(path), "%s/%s", uid_path, dir->d_name);
231 DIR *root = opendir(cgroup_root_path);
236 struct dirent *dir;
237 while ((readdir_r(root, &cur, &dir) == 0) && dir) {
240 if (dir->d_type != DT_DIR) {
243 if (strncmp(dir->d_name, PROCESSGROUP_UID_PREFIX, strlen(PROCESSGROUP_UID_PREFIX))) {
247 snprintf(path, sizeof(path), "%s/%s", cgroup_root_path, dir->d_name);