#include "user-util.h"
#include "util.h"
+#if 0 /// UNNEEDED by elogind
int socket_address_parse(SocketAddress *a, const char *s) {
char *e, *n;
unsigned u;
return a->sockaddr.un.sun_path;
}
+#endif // 0
bool socket_ipv6_is_supported(void) {
_cleanup_free_ char *l = NULL;
return l[0] == '0';
}
+#if 0 /// UNNEEDED by elogind
bool socket_address_matches_fd(const SocketAddress *a, int fd) {
SocketAddress b;
socklen_t solen;
return false;
}
+#endif // 0
int fd_inc_sndbuf(int fd, size_t n) {
int r, value;
return 1;
}
+#if 0 /// UNNEEDED by elogind
static const char* const ip_tos_table[] = {
[IPTOS_LOWDELAY] = "low-delay",
[IPTOS_THROUGHPUT] = "throughput",
};
DEFINE_STRING_TABLE_LOOKUP_WITH_FALLBACK(ip_tos, int, 0xff);
+#endif // 0
int getpeercred(int fd, struct ucred *ucred) {
socklen_t n = sizeof(struct ucred);
return 0;
}
+#if 0 /// UNNEEDED by elogind
int receive_one_fd(int transport_fd, int flags) {
union {
struct cmsghdr cmsghdr;
return *(int*) CMSG_DATA(found);
}
+#endif // 0