X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=man%2Fsd_seat_get_active.xml;h=b087211bd6c432bf29f594fb84b88647977395cb;hb=eea10b26f78806d7b244af7d37f75fd567c69610;hp=2dba6803f1e48962435207aeb4da7aa453f09c29;hpb=237ebf61e2634b68d3f32e1e965bab98468821e5;p=thirdparty%2Fsystemd.git diff --git a/man/sd_seat_get_active.xml b/man/sd_seat_get_active.xml index 2dba6803f1e..b087211bd6c 100644 --- a/man/sd_seat_get_active.xml +++ b/man/sd_seat_get_active.xml @@ -1,7 +1,7 @@ - + "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> + @@ -19,7 +19,6 @@ sd_seat_get_active sd_seat_get_sessions - sd_seat_can_multi_session sd_seat_can_tty sd_seat_can_graphical Determine state of a specific seat @@ -39,14 +38,9 @@ int sd_seat_get_sessions const char *seat - char ***sessions - uid_t **uid - unsigned int *n_uids - - - - int sd_seat_can_multi_session - const char *seat + char ***ret_sessions + uid_t **ret_uids + unsigned int *ret_n_uids @@ -74,26 +68,16 @@ free3 call after use. - sd_seat_get_sessions() may be used to - determine all sessions on the specified seat. Returns two arrays, - one (NULL terminated) with the session - identifiers of the sessions and one with the user identifiers of - the Unix users the sessions belong to. An additional parameter may - be used to return the number of entries in the latter array. This - value is the same the return value, if the latter is nonnegative. - The two arrays and the last parameter may be passed as - NULL in case these values need not to be - determined. The arrays and the strings referenced by them need to - be freed with the libc - free3 - call after use. Note that instead of an empty array - NULL may be returned and should be considered - equivalent to an empty array. - - sd_seat_can_multi_session() may be used - to determine whether a specific seat is capable of multi-session, - i.e. allows multiple login sessions in parallel (with only one - being active at a time). + sd_seat_get_sessions() may be used to determine all sessions on the specified + seat. Returns two arrays, one (NULL terminated) with the session identifiers of the + sessions and one with the user identifiers of the Unix users the sessions belong to. An additional + parameter may be used to return the number of entries in the latter array. This value is the same as the + return value if the return value is nonnegative. The output parameters may be passed as + NULL in case these output values are not needed. The arrays and the strings + referenced by them need to be freed with the libc free3 call after + use. Note that instead of an empty array NULL may be returned and should be + considered equivalent to an empty array. sd_seat_can_tty() may be used to determine whether a specific seat provides TTY functionality, i.e. @@ -114,8 +98,8 @@ On success, sd_seat_get_active() returns 0 or a positive integer. On success, sd_seat_get_sessions() returns the number of entries in the session identifier - array. If the test succeeds, sd_seat_can_multi_session, - sd_seat_can_tty and sd_seat_can_graphical return a positive + array. If the test succeeds, + sd_seat_can_tty() and sd_seat_can_graphical() return a positive integer, if it fails 0. On failure, these calls return a negative errno-style error code. @@ -157,14 +141,21 @@ + + History + + sd_seat_can_tty() and + sd_seat_can_graphical() were added in version 186. + + See Also - - systemd1, - sd-login3, - sd_session_get_seat3 - + + systemd1 + sd-login3 + sd_session_get_seat3 +