X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsd_get_seats.xml;h=95e8b362b0ad644cf4bea8b3576447669e247456;hb=76cc80f42e53215b9039ca99dd35687c7518880a;hp=5a456a5f48bd6846b60e3b05e334455b4a44d821;hpb=1532f28b7cf3e6e02e74691450b2b5379be6b805;p=elogind.git diff --git a/man/sd_get_seats.xml b/man/sd_get_seats.xml index 5a456a5f4..95e8b362b 100644 --- a/man/sd_get_seats.xml +++ b/man/sd_get_seats.xml @@ -81,8 +81,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 @@ -115,6 +117,22 @@ errno-style error code. + + + Errors + + Returned errors may indicate the following problems: + + + + + -ENOMEM + + Memory allocation failed. + + + + Notes @@ -132,7 +150,7 @@ See Also - elogind1, + elogind8, sd-login3, sd_session_get_seat3