13
strcpy(string, "cpu");
17
printf("cgroup_init failed with %s\n", cgroup_strerror(ret));
21
ret = cgroup_get_subsys_mount_point(string, &mount_point);
23
printf("get_mount_point failed with %s\n",
24
cgroup_strerror(ret));
28
printf("The mount point is %s\n", mount_point);
31
strcpy(string, "obviouslynonexistsubsys");
33
ret = cgroup_get_subsys_mount_point(string, &mount_point);
36
printf("get_mount_point failed as it got a "
37
"non existant subsys\n");
41
if (ret == ECGROUPNOTEXIST) {
42
printf("get_mount_point worked as expected\n");
46
printf("get_mount_point failed with %s\n", cgroup_strerror(ret));