Skip to content

Commit ff5d2cd

Browse files
yuwatakeszybz
authored andcommitted
man: update sd_get_seats(3)
1 parent 76ed21e commit ff5d2cd

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

man/sd_get_seats.xml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,10 @@
8181
<title>Description</title>
8282

8383
<para><function>sd_get_seats()</function> may be used to determine
84-
all currently available local seats. Returns a
85-
<constant>NULL</constant> terminated array of seat identifiers.
84+
all currently available local seats. Returns the number of seat
85+
identifiers and if the input pointer is non-NULL, a
86+
<constant>NULL</constant>-terminated array of seat identifiers
87+
is stored at the address.
8688
The returned array and all strings it references need to be freed
8789
with the libc
8890
<citerefentry project='man-pages'><refentrytitle>free</refentrytitle><manvolnum>3</manvolnum></citerefentry>
@@ -123,13 +125,6 @@
123125

124126
<variablelist>
125127

126-
<varlistentry>
127-
<term><constant>-EINVAL</constant></term>
128-
129-
<listitem><para>An input parameter was invalid (out of range,
130-
or NULL, where that is not accepted).</para></listitem>
131-
</varlistentry>
132-
133128
<varlistentry>
134129
<term><constant>-ENOMEM</constant></term>
135130

0 commit comments

Comments
 (0)