summaryrefslogtreecommitdiff
path: root/src/libelogind/sd-daemon/sd-daemon.c
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-12-12 07:54:16 +0100
committerSven Eden <yamakuzure@gmx.net>2017-12-12 07:54:16 +0100
commit20710c92ba65584a6fba036f9a2c3624a6bc2565 (patch)
tree1b8936dc3b5f9fd605a5dc8a820baa95dbcc4203 /src/libelogind/sd-daemon/sd-daemon.c
parent5fc9b845038323a4281383b00221852cfdd37a8d (diff)
Prep 229.9: Make all supportable API functions visible.
The process of cleaning up elogind, meaning to mask all bits that are unneeded by elogind, has been finished a while ago. It is therefore time to re-enable all previously masked API functions that elogind can support. This will make it easier for future developers to integrate elogind into their software where they already support systemd-login.
Diffstat (limited to 'src/libelogind/sd-daemon/sd-daemon.c')
-rw-r--r--src/libelogind/sd-daemon/sd-daemon.c8
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