Commit cb3ab75b authored by Mark Hindley's avatar Mark Hindley

Make sd_is_mq() stub always return -ENOSYS.

parent 8fc61c5e
......@@ -161,7 +161,7 @@ They are there to provide ABI compatibility, but will not work.
One exception is `sd_is_mq()` that is found in sd-daemon.h. This is the
only place using POSIX message queues, which would add further
dependencies. As those would be completely unused in the rest of
elogind, this function is also a stub, always returning 0.
elogind, this function is also a stub, always returning -ENOSYS.
License
=======
......
......@@ -159,7 +159,7 @@
<para><function>sd_is_mq()</function> is meant to be called to check
whether the specified file descriptor refers to a POSIX message
queue. As elogind does not need and therefore does not support POSIX
message queues, this function is a stub that always returns 0.</para>
message queues, this function is a stub that always returns -ENOSYS.</para>
<para>The reason for not supporting this function is, that it would
pull in a dependency to librt, just for this one function.</para>
......
......@@ -438,7 +438,7 @@ _public_ int sd_is_mq(int fd, const char *path) {
return 1;
#else
return 0;
return -ENOSYS;
#endif // 0
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment