diff options
Diffstat (limited to 'src/libelogind/sd-daemon/sd-daemon.c')
-rw-r--r-- | src/libelogind/sd-daemon/sd-daemon.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/libelogind/sd-daemon/sd-daemon.c b/src/libelogind/sd-daemon/sd-daemon.c index 87e7f7842..755ba7501 100644 --- a/src/libelogind/sd-daemon/sd-daemon.c +++ b/src/libelogind/sd-daemon/sd-daemon.c @@ -148,7 +148,6 @@ _public_ int sd_listen_fds_with_names(int unset_environment, char ***names) { return n_fds; } -#if 0 /// UNNEEDED by elogind _public_ int sd_is_fifo(int fd, const char *path) { struct stat st_fd; @@ -213,7 +212,6 @@ _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; @@ -284,7 +282,6 @@ _public_ int sd_is_socket(int fd, int family, int type, int listening) { return 1; } -#if 0 /// UNNEEDED by elogind _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); @@ -428,6 +425,7 @@ _public_ int sd_is_socket_unix(int fd, int type, int listening, const char *path return 1; } +#if 0 /// UNNEEDED by elogind _public_ int sd_is_mq(int fd, const char *path) { struct mq_attr attr; @@ -587,17 +585,14 @@ finish: return r; } -#if 0 /// UNNEEDED by elogind _public_ int sd_pid_notify(pid_t pid, int unset_environment, const char *state) { return sd_pid_notify_with_fds(pid, unset_environment, state, NULL, 0); } -#endif // 0 _public_ int sd_notify(int unset_environment, const char *state) { return sd_pid_notify_with_fds(0, unset_environment, state, NULL, 0); } -#if 0 /// UNNEEDED by elogind _public_ int sd_pid_notifyf(pid_t pid, int unset_environment, const char *format, ...) { _cleanup_free_ char *p = NULL; int r; @@ -633,7 +628,6 @@ _public_ int sd_notifyf(int unset_environment, const char *format, ...) { return sd_pid_notify(0, unset_environment, p); } -#endif // 0 _public_ int sd_booted(void) { /* We test whether the runtime unit file directory has been |