summaryrefslogtreecommitdiff
path: root/src/libelogind/sd-daemon/sd-daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libelogind/sd-daemon/sd-daemon.c')
-rw-r--r--src/libelogind/sd-daemon/sd-daemon.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/libelogind/sd-daemon/sd-daemon.c b/src/libelogind/sd-daemon/sd-daemon.c
index d4e0da61d..af3dab7e4 100644
--- a/src/libelogind/sd-daemon/sd-daemon.c
+++ b/src/libelogind/sd-daemon/sd-daemon.c
@@ -38,6 +38,8 @@
#include "socket-util.h"
#include "sd-daemon.h"
+/// UNNEEDED by elogind
+#if 0
_public_ int sd_listen_fds(int unset_environment) {
const char *e;
unsigned n;
@@ -151,6 +153,7 @@ _public_ int sd_is_special(int fd, const char *path) {
return 1;
}
+#endif // 0
static int sd_is_socket_internal(int fd, int type, int listening) {
struct stat st_fd;
@@ -221,6 +224,8 @@ _public_ int sd_is_socket(int fd, int family, int type, int listening) {
return 1;
}
+/// UNNEEDED by elogind
+#if 0
_public_ int sd_is_socket_inet(int fd, int family, int type, int listening, uint16_t port) {
union sockaddr_union sockaddr = {};
socklen_t l = sizeof(sockaddr);
@@ -307,8 +312,6 @@ _public_ int sd_is_socket_unix(int fd, int type, int listening, const char *path
return 1;
}
-/// UNNEEDED by elogind
-#if 0
_public_ int sd_is_mq(int fd, const char *path) {
struct mq_attr attr;
@@ -463,6 +466,8 @@ _public_ int sd_notify(int unset_environment, const char *state) {
return sd_pid_notify_with_fds(0, unset_environment, state, NULL, 0);
}
+/// UNNEEDED by elogind
+#if 0
_public_ int sd_pid_notifyf(pid_t pid, int unset_environment, const char *format, ...) {
_cleanup_free_ char *p = NULL;
int r;
@@ -511,6 +516,7 @@ _public_ int sd_booted(void) {
return !!S_ISDIR(st.st_mode);
}
+#endif // 0
_public_ int sd_watchdog_enabled(int unset_environment, uint64_t *usec) {
const char *s, *p = ""; /* p is set to dummy value to do unsetting */