X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=man%2Fsd_get_seats.xml;h=ed4b77b3ea5ccf00bb9d90440ed09b00734fb5bc;hb=cc832f977208a020cdef133b8f44d00040802b81;hp=37eb3fc8945047de89f780bacacd7021ded1b1f3;hpb=76fba3ca608931e0f5a43e01039297d6e38be2c2;p=thirdparty%2Fsystemd.git diff --git a/man/sd_get_seats.xml b/man/sd_get_seats.xml index 37eb3fc8945..ed4b77b3ea5 100644 --- a/man/sd_get_seats.xml +++ b/man/sd_get_seats.xml @@ -1,40 +1,14 @@ - + - - - + sd_get_seats systemd - - - - Developer - Lennart - Poettering - lennart@poettering.net - - @@ -81,8 +55,10 @@ Description sd_get_seats() may be used to determine - all currently available local seats. Returns a - NULL terminated array of seat identifiers. + all currently available local seats. Returns the number of seat + identifiers and if the input pointer is non-NULL, a + NULL-terminated array of seat identifiers + is stored at the address. The returned array and all strings it references need to be freed with the libc free3 @@ -107,49 +83,27 @@ Return Value - On success, sd_get_seats(), - sd_get_sessions(), - sd_get_uids() and - sd_get_machine_names() return the number of - entries in the arrays. On failure, these calls return a negative - errno-style error code. - + On success, sd_get_seats(), sd_get_sessions(), + sd_get_uids() and sd_get_machine_names() return the number of + entries in the arrays. 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: - - -EINVAL + - 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_get_seats(), - sd_get_sessions(), - sd_get_uids() and - sd_get_machine_names() interfaces are - available as a shared library, which can be compiled and linked to - with the - libsystemd pkg-config1 - file. - + See Also