X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsd_get_seats.xml;h=95e8b362b0ad644cf4bea8b3576447669e247456;hb=b905dc7e59e2ac3362ef2c9c1fdb0ae3b0ddace3;hp=c6b133e665c323ecefde3298c0ff692be5d1bf81;hpb=2f19b8e572ecc317846621d6429a535e49d29917;p=elogind.git diff --git a/man/sd_get_seats.xml b/man/sd_get_seats.xml index c6b133e66..95e8b362b 100644 --- a/man/sd_get_seats.xml +++ b/man/sd_get_seats.xml @@ -3,29 +3,29 @@ "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> sd_get_seats - systemd + elogind @@ -52,7 +52,7 @@ - #include <systemd/sd-login.h> + #include <elogind/sd-login.h> int sd_get_seats @@ -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 - systemd1, + elogind8, sd-login3, sd_session_get_seat3