diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-04 09:05:52 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-03-14 10:19:06 +0100 |
commit | abbb87ffdecf445d2bba18e1638f80c96098339e (patch) | |
tree | ed6aeed11090753128077935fae61e27534b8652 /man/sd_get_seats.xml | |
parent | 28233624dfc4ee549eaaacacf4e4f100026ba09b (diff) |
sd-login: rework error handling
Makre sure we always return sensible errors for the various, following
the same rules, and document them in a comment in sd-login.c. Also,
update all relevant man pages accordingly.
Diffstat (limited to 'man/sd_get_seats.xml')
-rw-r--r-- | man/sd_get_seats.xml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/man/sd_get_seats.xml b/man/sd_get_seats.xml index 5a456a5f4..4c65db37c 100644 --- a/man/sd_get_seats.xml +++ b/man/sd_get_seats.xml @@ -115,6 +115,29 @@ errno-style error code.</para> </refsect1> + + <refsect1> + <title>Errors</title> + + <para>Returned errors may indicate the following problems:</para> + + <variablelist> + + <varlistentry> + <term><constant>-EINVAL</constant></term> + + <listitem><para>An input parameter was invalid (out of range, + or NULL, where that's not accepted).</para></listitem> + </varlistentry> + + <varlistentry> + <term><constant>-ENOMEM</constant></term> + + <listitem><para>Memory allocation failed.</para></listitem> + </varlistentry> + </variablelist> + </refsect1> + <refsect1> <title>Notes</title> |