<Unit filename="../src/libelogind/sd-event/sd-event.c">
<Option compilerVar="CC" />
</Unit>
+ <Unit filename="../src/libelogind/sd-id128/id128-util.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../src/libelogind/sd-id128/id128-util.h" />
<Unit filename="../src/libelogind/sd-id128/sd-id128.c">
<Option compilerVar="CC" />
</Unit>
int cg_set_attribute(const char *controller, const char *path, const char *attribute, const char *value);
int cg_get_attribute(const char *controller, const char *path, const char *attribute, char **ret);
+#if 0 /// UNNEEDED by elogind
int cg_get_keyed_attribute(const char *controller, const char *path, const char *attribute, const char **keys, char **values);
-#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);
return r;
}
-#endif // 0
int chase_symlinks(const char *path, const char *_root, char **ret) {
_cleanup_free_ char *buffer = NULL, *done = NULL, *root = NULL;
return 0;
}
+#endif // 0
};
int inotify_add_watch_fd(int fd, int what, uint32_t mask);
-#endif // 0
int chase_symlinks(const char *path, const char *_root, char **ret);
+#endif // 0
return NULL;
}
+#if 0 /// UNNEEDED by elogind
#define FLAG(name) (flags & name ? STRINGIFY(name) "|" : "")
static char* mount_flags_to_string(long unsigned flags) {
char *x;
return log_error_errno(errno, "Failed to unmount %s: %m", what);
return 0;
}
+#endif // 0
#define FILE_HANDLE_INIT { .handle.handle_bytes = MAX_HANDLE_SZ }
+#if 0 /// UNNEEDED by elogind
int mount_verbose(
int error_log_level,
const char *what,
unsigned long flags,
const char *options);
int umount_verbose(const char *where);
+#endif // 0
return NULL;
}
+#if 0 /// UNNEEDED by elogind
int socket_ioctl_fd(void) {
int fd;
return fd;
}
+#endif // 0
strnlen(_sa->sun_path, sizeof(_sa->sun_path))); \
})
+#if 0 /// UNNEEDED by elogind
int socket_ioctl_fd(void);
+#endif // 0
return s;
}
+#if 0 /// UNNEEDED by elogind
char *delete_chars(char *s, const char *bad) {
char *f, *t;
return s;
}
+#endif // 0
char *truncate_nl(char *s) {
assert(s);
return s;
}
+#if 0 /// UNNEEDED by elogind
char ascii_tolower(char x) {
if (x >= 'A' && x <= 'Z')
return false;
}
+#endif // 0
bool string_has_cc(const char *p, const char *ok) {
const char *t;
return !p || !p[0];
}
+#if 0 /// UNNEEDED by elogind
static inline const char *empty_to_null(const char *p) {
return isempty(p) ? NULL : p;
}
static inline const char *strdash_if_empty(const char *str) {
return isempty(str) ? "-" : str;
}
+#endif // 0
static inline char *startswith(const char *s, const char *prefix) {
size_t l;
return NULL;
}
+#if 0 /// UNNEEDED by elogind
static inline char *startswith_no_case(const char *s, const char *prefix) {
size_t l;
return NULL;
}
+#endif // 0
char *endswith(const char *s, const char *postfix) _pure_;
char *endswith_no_case(const char *s, const char *postfix) _pure_;
})
char *strstrip(char *s);
+#if 0 /// UNNEEDED by elogind
char *delete_chars(char *s, const char *bad);
+#endif // 0
char *truncate_nl(char *s);
+#if 0 /// UNNEEDED by elogind
char ascii_tolower(char x);
char *ascii_strlower(char *s);
char *ascii_strlower_n(char *s, size_t n);
int ascii_strcasecmp_nn(const char *a, size_t n, const char *b, size_t m);
bool chars_intersect(const char *a, const char *b) _pure_;
+#endif // 0
static inline bool _pure_ in_charset(const char *s, const char* charset) {
assert(s);
usec_t triple_timestamp_by_clock(triple_timestamp *ts, clockid_t clock);
usec_t timespec_load(const struct timespec *ts) _pure_;
+#if 0 /// UNNEEDED by elogind
nsec_t timespec_load_nsec(const struct timespec *ts) _pure_;
+#endif // 0
struct timespec *timespec_store(struct timespec *ts, usec_t u);
usec_t timeval_load(const struct timeval *tv) _pure_;
return 0;
}
+#if 0 /// UNNEEDED by elogind
int get_user_creds_clean(
const char **username,
uid_t *uid, gid_t *gid,
return 0;
}
+#endif // 0
char* uid_to_name(uid_t uid) {
char *ret;
#endif // 0
int get_user_creds(const char **username, uid_t *uid, gid_t *gid, const char **home, const char **shell);
+#if 0 /// UNNEEDED by elogind
int get_user_creds_clean(const char **username, uid_t *uid, gid_t *gid, const char **home, const char **shell);
int get_group_creds(const char **groupname, gid_t *gid);
+#endif // 0
char* uid_to_name(uid_t uid);
char* gid_to_name(gid_t gid);
return r;
}
-#endif // 0
static int userns_has_mapping(const char *name) {
_cleanup_fclose_ FILE *f = NULL;
log_debug("/proc/self/setgroups contains \"%s\", %s user namespace", line, r ? "in" : "not in");
return r;
}
+#endif // 0
int running_in_chroot(void) {
int ret;
int detect_container(void);
#if 0 /// UNNEEDED by elogind
int detect_virtualization(void);
-#endif // 0
int running_in_userns(void);
+#endif // 0
int running_in_chroot(void);
const char *virtualization_to_string(int v) _const_;
return id128_read_fd(fd, f, ret);
}
+#if 0 /// UNNEEDED by elogind
int id128_write_fd(int fd, Id128Format f, sd_id128_t id, bool do_sync) {
char buffer[36 + 2];
size_t sz;
.hash = id128_hash_func,
.compare = id128_compare_func,
};
+#endif // 0
int id128_read_fd(int fd, Id128Format f, sd_id128_t *ret);
int id128_read(const char *p, Id128Format f, sd_id128_t *ret);
+#if 0 /// UNNEEDED by elogind
int id128_write_fd(int fd, Id128Format f, sd_id128_t id, bool do_sync);
int id128_write(const char *p, Id128Format f, sd_id128_t id, bool do_sync);
void id128_hash_func(const void *p, struct siphash *state);
int id128_compare_func(const void *a, const void *b) _pure_;
extern const struct hash_ops id128_hash_ops;
+#endif // 0
return clean_ipc(uid, GID_INVALID);
}
+#if 0 /// UNNEEDED by elogind
int clean_ipc_by_gid(gid_t gid) {
return clean_ipc(UID_INVALID, gid);
}
+#endif // 0
int clean_ipc(uid_t uid, gid_t gid);
int clean_ipc_by_uid(uid_t uid);
+#if 0 /// UNNEEDED by elogind
int clean_ipc_by_gid(gid_t gid);
+#endif // 0
DEFINE_PARSER(int, int, safe_atoi);
DEFINE_PARSER(long, long, safe_atoli);
+#if 0 /// UNNEEDED by elogind
DEFINE_PARSER(uint16, uint16_t, safe_atou16);
DEFINE_PARSER(uint32, uint32_t, safe_atou32);
+#endif // 0
DEFINE_PARSER(uint64, uint64_t, safe_atou64);
DEFINE_PARSER(unsigned, unsigned, safe_atou);
DEFINE_PARSER(double, double, safe_atod);
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);
int config_parse_unsigned(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);
int config_parse_long(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);
+#if 0 /// UNNEEDED by elogind
int config_parse_uint16(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);
int config_parse_uint32(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);
+#endif // 0
int config_parse_uint64(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);
int config_parse_double(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);
int config_parse_iec_size(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);