X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=man%2Fsd_session_is_active.xml;h=d4a12f533c04cfafe4a129a4d773ec1fb7f45184;hb=f789e0b4f891800557c74c385d0f61a0164cb16f;hp=a6076b177abac6815d29733c494a8367bc4b3913;hpb=6c9e781ebadda6c92ef88c4c5348948076f16340;p=thirdparty%2Fsystemd.git diff --git a/man/sd_session_is_active.xml b/man/sd_session_is_active.xml index a6076b177ab..d4a12f533c0 100644 --- a/man/sd_session_is_active.xml +++ b/man/sd_session_is_active.xml @@ -1,40 +1,14 @@ - + - - - + sd_session_is_active systemd - - - - Developer - Lennart - Poettering - lennart@poettering.net - - @@ -184,8 +158,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. @@ -287,64 +262,45 @@ sd_session_get_tty() return 0 or a positive integer. On failure, these calls return a negative errno-style error code. - - - Errors + + Errors - Returned errors may indicate the following problems: + Returned errors may indicate the following problems: - + - - -ENXIO + + -ENXIO - The specified session does not exist. - - + The specified session does not exist. + + - - -ENODATA + + -ENODATA - The given field is not specified for the described - session. - - + The given field is not specified for the described session. + + - - -EINVAL + + -EINVAL - An input parameter was invalid (out of range, - or NULL, where that is not accepted). - + An input parameter was invalid (out of range, or NULL, where + that is not accepted). + - - -ENOMEM + + -ENOMEM - Memory allocation failed. - - + Memory allocation failed. + + + - - Notes - - The sd_session_is_active(), - sd_session_get_state(), - sd_session_get_uid(), - sd_session_get_seat(), - sd_session_get_service(), - sd_session_get_type(), - sd_session_get_class(), - sd_session_get_display(), - sd_session_get_remote_host(), - sd_session_get_remote_user() and - sd_session_get_tty() - interfaces are available as a shared library, which can - be compiled and linked to with the - libsystemd pkg-config1 - file. - + See Also