summaryrefslogtreecommitdiff
path: root/src/sd-daemon.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-05-17 19:37:03 +0200
committerLennart Poettering <lennart@poettering.net>2011-05-17 19:37:03 +0200
commit916abb21d0a6653e0187b91591e492026886b0a4 (patch)
tree8bce3407f16ec391c9e707dace2077024501d609 /src/sd-daemon.h
parentfff2e5b58bab7a5ffbb7593742d462197b06728c (diff)
socket: add POSIX mqueue support
Diffstat (limited to 'src/sd-daemon.h')
-rw-r--r--src/sd-daemon.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sd-daemon.h b/src/sd-daemon.h
index 4b853a15be..c3d9b6fb0d 100644
--- a/src/sd-daemon.h
+++ b/src/sd-daemon.h
@@ -178,6 +178,14 @@ int sd_is_socket_inet(int fd, int family, int type, int listening, uint16_t port
int sd_is_socket_unix(int fd, int type, int listening, const char *path, size_t length) _sd_hidden_;
/*
+ Helper call for identifying a passed file descriptor. Returns 1 if
+ the file descriptor is a POSIX Message Queue of the specified name,
+ 0 otherwise. If path is NULL a message queue name check is not
+ done. Returns a negative errno style error code on failure.
+*/
+int sd_is_mq(int fd, const char *path) _sd_hidden_;
+
+/*
Informs systemd about changed daemon state. This takes a number of
newline separated environment-style variable assignments in a
string. The following variables are known: