return 0;
}
-#endif // 0
int cg_set_xattr(const char *controller, const char *path, const char *name, const void *value, size_t size, int flags) {
_cleanup_free_ char *fs = NULL;
return (int) n;
}
+#endif // 0
int cg_pid_get_path(const char *controller, pid_t pid, char **path) {
_cleanup_fclose_ FILE *f = NULL;
#if 0 /// UNNEEDED by elogind
int cg_set_group_access(const char *controller, const char *path, mode_t mode, uid_t uid, gid_t gid);
int cg_set_task_access(const char *controller, const char *path, mode_t mode, uid_t uid, gid_t gid);
-#endif // 0
int cg_set_xattr(const char *controller, const char *path, const char *name, const void *value, size_t size, int flags);
int cg_get_xattr(const char *controller, const char *path, const char *name, void *value, size_t size);
+#endif // 0
int cg_install_release_agent(const char *controller, const char *agent);
int cg_uninstall_release_agent(const char *controller);
bool cg_ns_supported(void);
#endif // 0
-#if 0 /// UNNEEDED by elogind
int cg_all_unified(void);
int cg_unified(const char *controller);
+#if 0 /// UNNEEDED by elogind
void cg_unified_flush(void);
bool cg_is_unified_wanted(void);
return v;
}
+#if 0 /// UNNEEDED by elogind
int parse_nice(const char *p, int *ret) {
int n, r;
*ret = n;
return 0;
}
+#endif // 0
int parse_percent_unbounded(const char *p);
int parse_percent(const char *p);
+#if 0 /// UNNEEDED by elogind
int parse_nice(const char *p, int *ret);
+#endif // 0
#include "alloc-util.h"
#include "extract-word.h"
#include "fs-util.h"
-#include "glob-util.h"
#include "log.h"
#include "macro.h"
#include "missing.h"
startswith(path, "block-") ||
startswith(path, "char-");
}
-#endif // 0
int systemd_installation_has_version(const char *root, unsigned minimal_version) {
const char *pattern;
return false;
}
+#endif // 0
#if 0 /// UNNEEDED by elogind
bool is_device_path(const char *path);
-#endif // 0
bool is_deviceallow_pattern(const char *path);
int systemd_installation_has_version(const char *root, unsigned minimal_version);
+#endif // 0
int pid_compare_func(const void *a, const void *b);
+#if 0 /// UNNEEDED by elogind
static inline bool nice_is_valid(int n) {
return n >= PRIO_MIN && n < PRIO_MAX;
}
+#endif // 0
SD_BUS_ERROR_MAP(BUS_ERROR_NO_MACHINE_FOR_PID, ENXIO),
SD_BUS_ERROR_MAP(BUS_ERROR_MACHINE_EXISTS, EEXIST),
SD_BUS_ERROR_MAP(BUS_ERROR_NO_PRIVATE_NETWORKING, ENOSYS),
-#endif // 0
SD_BUS_ERROR_MAP(BUS_ERROR_NO_SUCH_USER_MAPPING, ENXIO),
SD_BUS_ERROR_MAP(BUS_ERROR_NO_SUCH_GROUP_MAPPING, ENXIO),
+#endif // 0
SD_BUS_ERROR_MAP(BUS_ERROR_NO_SUCH_SESSION, ENXIO),
SD_BUS_ERROR_MAP(BUS_ERROR_NO_SESSION_FOR_PID, ENXIO),
return sd_bus_message_append_basic(reply, 'b', &b);
}
+#if 0 /// UNNEEDED by elogind
int bus_property_get_id128(
sd_bus *bus,
const char *path,
else
return sd_bus_message_append_array(reply, 'y', id->bytes, 16);
}
+#endif // 0
#if __SIZEOF_SIZE_T__ != 8
int bus_property_get_size(
int bus_print_all_properties(sd_bus *bus, const char *dest, const char *path, char **filter, bool value, bool all);
int bus_property_get_bool(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *reply, void *userdata, sd_bus_error *error);
+#if 0 /// UNNEEDED by elogind
int bus_property_get_id128(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *reply, void *userdata, sd_bus_error *error);
+#endif // 0
#define bus_property_get_usec ((sd_bus_property_get_t) NULL)
#define bus_property_set_usec ((sd_bus_property_set_t) NULL)
sections, lookup, table, relaxed, userdata);
}
+#if 0 /// UNNEEDED by elogind
/* Parse each config file in the directories specified as strv. */
int config_parse_many(
const char *conf_file,
return config_parse_many_files(conf_file, files,
sections, lookup, table, relaxed, userdata);
}
+#endif // 0
#define DEFINE_PARSER(type, vartype, conv_func) \
int config_parse_##type( \
bool relaxed,
void *userdata);
+#if 0 /// UNNEEDED by elogind
int config_parse_many(
const char *conf_file, /* possibly NULL */
const char* const* conf_file_dirs,
const void *table,
bool relaxed,
void *userdata);
+#endif // 0
/* Generic parsers */
int config_parse_int(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);