diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-01-19 14:05:12 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-03-14 10:23:02 +0100 |
commit | bec1345672f400faca26c4d231c0b6a7360801ed (patch) | |
tree | 16365809d429f37d0f170d0af96d3e4564af991b /src | |
parent | b514d6c9dcc7c0d7353f975ecfb94f2197c73cf1 (diff) |
Remove sd_is_mq
* src/systemd/sd-daemon.h:
* src/libelogind/sd-daemon/sd-daemon.c (sd_is_mq): Remove unused
function that depended on librt. Ultimately we should remove this
header at some point.
Diffstat (limited to 'src')
-rw-r--r-- | src/libelogind/sd-daemon/sd-daemon.c | 3 | ||||
-rw-r--r-- | src/libsystemd/libsystemd.sym | 2 | ||||
-rw-r--r-- | src/systemd/sd-daemon.h | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/src/libelogind/sd-daemon/sd-daemon.c b/src/libelogind/sd-daemon/sd-daemon.c index d230a48da..9a696cd22 100644 --- a/src/libelogind/sd-daemon/sd-daemon.c +++ b/src/libelogind/sd-daemon/sd-daemon.c @@ -307,6 +307,8 @@ _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; @@ -337,6 +339,7 @@ _public_ int sd_is_mq(int fd, const char *path) { return 1; } +#endif // 0 _public_ int sd_pid_notify_with_fds(pid_t pid, int unset_environment, const char *state, const int *fds, unsigned n_fds) { union sockaddr_union sockaddr = { diff --git a/src/libsystemd/libsystemd.sym b/src/libsystemd/libsystemd.sym index d5ad127bc..b4e52dd37 100644 --- a/src/libsystemd/libsystemd.sym +++ b/src/libsystemd/libsystemd.sym @@ -66,7 +66,7 @@ global: /* sd-daemon */ sd_booted; sd_is_fifo; - sd_is_mq; + /* sd_is_mq; */ sd_is_socket; sd_is_socket_inet; sd_is_socket_unix; diff --git a/src/systemd/sd-daemon.h b/src/systemd/sd-daemon.h index 861dc8f1f..1f093f3ca 100644 --- a/src/systemd/sd-daemon.h +++ b/src/systemd/sd-daemon.h @@ -154,7 +154,7 @@ int sd_is_socket_unix(int fd, int type, int listening, const char *path, size_t See sd_is_mq(3) for more information. */ -int sd_is_mq(int fd, const char *path); +/// UNNEEDED int sd_is_mq(int fd, const char *path); /* Informs systemd about changed daemon state. This takes a number of |