summaryrefslogtreecommitdiff
path: root/src/basic/socket-util.c
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-04-07 09:40:54 +0200
committerSven Eden <yamakuzure@gmx.net>2017-04-26 12:59:13 +0200
commitbccdfb431a266e7671d518fd5a42362a5ce724c9 (patch)
treeb1d8366016677d6485660b3c8d1ea10977e3e8d7 /src/basic/socket-util.c
parent94c5f7fa9e34517edad75cd63d71dd459ec4f133 (diff)
Prep v228: Clean up the new src/basic/*-util-[hc] files:
- src/basic/capability-util.[hc] - src/basic/cgroup-util.[hc] - src/basic/fd-util.[hc] - src/basic/fs-util.[hc] - src/basic/memfd-util.[hc] - src/basic/path-util.[hc] - src/basic/socket-util.[hc] - src/basic/terminal-util.[hc] - src/basic/user-util.[hc] - src/basic/xattr-util.[hc]
Diffstat (limited to 'src/basic/socket-util.c')
-rw-r--r--src/basic/socket-util.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/basic/socket-util.c b/src/basic/socket-util.c
index 1acab1ef9..56a40a1de 100644
--- a/src/basic/socket-util.c
+++ b/src/basic/socket-util.c
@@ -44,6 +44,8 @@
#include "user-util.h"
#include "util.h"
+/// UNNEEDED by elogind
+#if 0
int socket_address_parse(SocketAddress *a, const char *s) {
char *e, *n;
unsigned u;
@@ -435,6 +437,7 @@ const char* socket_address_get_path(const SocketAddress *a) {
return a->sockaddr.un.sun_path;
}
+#endif // 0
bool socket_ipv6_is_supported(void) {
_cleanup_free_ char *l = NULL;
@@ -450,6 +453,8 @@ bool socket_ipv6_is_supported(void) {
return l[0] == '0';
}
+/// UNNEEDED by elogind
+#if 0
bool socket_address_matches_fd(const SocketAddress *a, int fd) {
SocketAddress b;
socklen_t solen;
@@ -755,6 +760,7 @@ bool sockaddr_equal(const union sockaddr_union *a, const union sockaddr_union *b
return false;
}
+#endif // 0
int fd_inc_sndbuf(int fd, size_t n) {
int r, value;
@@ -791,6 +797,8 @@ int fd_inc_rcvbuf(int fd, size_t n) {
return 1;
}
+/// UNNEEDED by elogind
+#if 0
static const char* const ip_tos_table[] = {
[IPTOS_LOWDELAY] = "low-delay",
[IPTOS_THROUGHPUT] = "throughput",
@@ -799,6 +807,7 @@ static const char* const ip_tos_table[] = {
};
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);
@@ -894,6 +903,8 @@ int send_one_fd(int transport_fd, int fd, int flags) {
return 0;
}
+/// UNNEEDED by elogind
+#if 0
int receive_one_fd(int transport_fd, int flags) {
union {
struct cmsghdr cmsghdr;
@@ -935,3 +946,4 @@ int receive_one_fd(int transport_fd, int flags) {
return *(int*) CMSG_DATA(found);
}
+#endif // 0