X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsd_session_is_active.xml;h=d457010b8a49c3be14f42f7ad0c5858500461107;hb=d04b238170998e0cbcc86db0f8ae66c3ee4a14d6;hp=4ca3a6c15057ae24b715c0de9fbf9316fbc57dd2;hpb=798d3a524ea57aaf40cb53858aaa45ec702f012d;p=elogind.git diff --git a/man/sd_session_is_active.xml b/man/sd_session_is_active.xml index 4ca3a6c15..d457010b8 100644 --- a/man/sd_session_is_active.xml +++ b/man/sd_session_is_active.xml @@ -3,29 +3,29 @@ "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> sd_session_is_active - systemd + elogind @@ -62,7 +62,7 @@ - #include <systemd/sd-login.h> + #include <elogind/sd-login.h> int sd_session_is_active @@ -184,8 +184,9 @@ sd_session_get_seat() may be used to determine the seat identifier of the seat the session identified by the specified session identifier belongs to. Note that not all - sessions are attached to a seat, this call will fail for them. The - returned string needs to be freed with the libc + sessions are attached to a seat, this call will fail (returning + -ENODATA) for them. The returned string needs + to be freed with the libc free3 call after use. @@ -289,6 +290,43 @@ negative errno-style error code. + + Errors + + Returned errors may indicate the following problems: + + + + + -ENXIO + + The specified session does not exist. + + + + + -ENODATA + + The given field is not specified for the described + session. + + + + + -EINVAL + + An input parameter was invalid (out of range, + or NULL, where that is not accepted). + + + + -ENOMEM + + Memory allocation failed. + + + + Notes @@ -305,7 +343,7 @@ sd_session_get_tty() interfaces are available as a shared library, which can be compiled and linked to with the - libsystemd pkg-config1 + libelogind pkg-config1 file. @@ -313,7 +351,7 @@ See Also - systemd1, + elogind8, sd-login3, sd_pid_get_session3