return 1;
}
+/// UNNEEDED by elogind
+#if 0
int cg_create_and_attach(const char *controller, const char *path, pid_t pid) {
int r, q;
/* This does not remove the cgroup on failure */
return r;
}
+#endif // 0
int cg_attach(const char *controller, const char *path, pid_t pid) {
_cleanup_free_ char *fs = NULL;
return 0;
}
+/// UNNEEDED by elogind
+#if 0
int cg_set_group_access(
const char *controller,
const char *path,
return chmod_and_chown(procs, mode, uid, gid);
}
+#endif // 0
int cg_pid_get_path(const char *controller, pid_t pid, char **path) {
_cleanup_fclose_ FILE *f = NULL;
return -ENOENT;
}
+/// UNNEEDED by elogind
+#if 0
int cg_install_release_agent(const char *controller, const char *agent) {
_cleanup_free_ char *fs = NULL, *contents = NULL;
char *sc;
return 0;
}
+#endif // 0
int cg_is_empty(const char *controller, const char *path, bool ignore_self) {
_cleanup_fclose_ FILE *f = NULL;
return 0;
}
-#endif // 0
int cg_set_attribute(const char *controller, const char *path, const char *attribute, const char *value) {
_cleanup_free_ char *p = NULL;
return read_one_line_file(p, ret);
}
+#endif // 0
static const char mask_names[] =
"cpu\0"
"memory\0"
"devices\0";
+/// UNNEEDED by elogind
+#if 0
int cg_create_everywhere(CGroupControllerMask supported, CGroupControllerMask mask, const char *path) {
CGroupControllerMask bit = 1;
const char *n;
return 0;
}
+#endif // 0
int cg_attach_everywhere(CGroupControllerMask supported, const char *path, pid_t pid, cg_migrate_callback_t path_callback, void *userdata) {
CGroupControllerMask bit = 1;
return 0;
}
+/// UNNEEDED by elogind
+#if 0
int cg_attach_many_everywhere(CGroupControllerMask supported, const char *path, Set* pids, cg_migrate_callback_t path_callback, void *userdata) {
Iterator i;
void *pidp;
return 0;
}
+#endif // 0