summaryrefslogtreecommitdiffstats
path: root/man/sd_get_seats.xml
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2017-05-31 17:27:47 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-06-01 01:24:47 +0200
commitff5d2cd03dc4a285f0f13cab53dfb9f78af2edf6 (patch)
tree39174b7e1176e2db386796dde714637ecccba88f /man/sd_get_seats.xml
parentsd-login: sd_get_machine_names(): do not return -EINVAL when output parameter... (diff)
downloadsystemd-ff5d2cd03dc4a285f0f13cab53dfb9f78af2edf6.tar.xz
systemd-ff5d2cd03dc4a285f0f13cab53dfb9f78af2edf6.zip
man: update sd_get_seats(3)
Diffstat (limited to 'man/sd_get_seats.xml')
-rw-r--r--man/sd_get_seats.xml13
1 files changed, 4 insertions, 9 deletions
diff --git a/man/sd_get_seats.xml b/man/sd_get_seats.xml
index 37eb3fc894..c053144483 100644
--- a/man/sd_get_seats.xml
+++ b/man/sd_get_seats.xml
@@ -81,8 +81,10 @@
<title>Description</title>
<para><function>sd_get_seats()</function> may be used to determine
- all currently available local seats. Returns a
- <constant>NULL</constant> 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
+ <constant>NULL</constant>-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
<citerefentry project='man-pages'><refentrytitle>free</refentrytitle><manvolnum>3</manvolnum></citerefentry>
@@ -124,13 +126,6 @@
<variablelist>
<varlistentry>
- <term><constant>-EINVAL</constant></term>
-
- <listitem><para>An input parameter was invalid (out of range,
- or NULL, where that is not accepted).</para></listitem>
- </varlistentry>
-
- <varlistentry>
<term><constant>-ENOMEM</constant></term>
<listitem><para>Memory allocation failed.</para></listitem>