Lines Matching defs:dirname
158 static int cgroup_rmdir(char *dirname)
166 dir = opendir(dirname);
168 ERROR("%s: failed to open %s", __func__, dirname);
183 rc = snprintf(pathname, MAXPATHLEN, "%s/%s", dirname, direntp->d_name);
208 if (rmdir(dirname) < 0) {
209 SYSERROR("%s: failed to delete %s", __func__, dirname);
217 SYSERROR("%s: failed to close directory %s", __func__, dirname);
1415 char *dirname = NULL;
1485 dirname = lxc_string_join(",", (const char **)parts, false);
1486 if (!dirname)
1490 abs_path = lxc_append_paths(path, dirname);
1495 SYSERROR("could not create cgroup subsystem directory /sys/fs/cgroup/%s", dirname);
1508 ERROR("could not automatically mount cgroup-full to /sys/fs/cgroup/%s: host has no mount point for this cgroup filesystem that has access to the root cgroup", dirname);
1541 SYSERROR("could not create cgroup directory /sys/fs/cgroup/%s%s", dirname, info->cgroup_path);
1595 r = symlink(dirname, abs_path);
1597 WARN("could not create symlink %s -> %s in /sys/fs/cgroup of container", parts[i], dirname);
1602 free(dirname);
1604 dirname = NULL;
1631 free(dirname);