X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Fsd_session_is_active.xml;h=d457010b8a49c3be14f42f7ad0c5858500461107;hp=70d201e29b7f5d580f4b1c078c6d1394780a0d81;hb=cac2e345596b2743053c0285280b81794b3aaf10;hpb=5f56749cb41c18efcc4ec2a8cd14f5277a8fab20 diff --git a/man/sd_session_is_active.xml b/man/sd_session_is_active.xml index 70d201e29..d457010b8 100644 --- a/man/sd_session_is_active.xml +++ b/man/sd_session_is_active.xml @@ -1,34 +1,31 @@ -%entities; -]> + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> sd_session_is_active - systemd + elogind @@ -65,7 +62,7 @@ - #include <systemd/sd-login.h> + #include <elogind/sd-login.h> int sd_session_is_active @@ -187,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. @@ -292,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 @@ -316,7 +351,7 @@ See Also - systemd1, + elogind8, sd-login3, sd_pid_get_session3