summaryrefslogtreecommitdiffstats
path: root/man/sd_bus_request_name.xml
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-03-21 14:53:00 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-03-21 14:53:00 +0100
commitb1de39dec8e9acd875e2038e418d7193fb380b41 (patch)
treea044b2ad47d393f4f0439462122e5a9ba129b5b1 /man/sd_bus_request_name.xml
parentman: document error values for sd_id128_get_*() (diff)
downloadsystemd-b1de39dec8e9acd875e2038e418d7193fb380b41.tar.xz
systemd-b1de39dec8e9acd875e2038e418d7193fb380b41.zip
man: make separate "Errors" sections subsection of "Return value"
Logically, this is better, because we're describing a subset of possible return values. Visually this also looks quite good because groff renders refsect2 much less prominently. Also rewrap things, add <constant> in various places, fix some typos.
Diffstat (limited to 'man/sd_bus_request_name.xml')
-rw-r--r--man/sd_bus_request_name.xml82
1 files changed, 41 insertions, 41 deletions
diff --git a/man/sd_bus_request_name.xml b/man/sd_bus_request_name.xml
index 0edba533fa..0f6a4ec313 100644
--- a/man/sd_bus_request_name.xml
+++ b/man/sd_bus_request_name.xml
@@ -132,63 +132,63 @@
case, the caller can subscribe to <literal>NameOwnerChanged</literal> signals to be notified when the name is
successfully acquired. <function>sd_bus_request_name()</function> returns &gt; 0 when the name has immediately
been acquired successfully.</para>
- </refsect1>
- <refsect1>
- <title>Errors</title>
+ <refsect2>
+ <title>Errors</title>
- <para>Returned errors may indicate the following problems:</para>
+ <para>Returned errors may indicate the following problems:</para>
- <variablelist>
- <varlistentry>
- <term><constant>-EALREADY</constant></term>
+ <variablelist>
+ <varlistentry>
+ <term><constant>-EALREADY</constant></term>
- <listitem><para>The caller already is the owner of the specified name.</para></listitem>
- </varlistentry>
+ <listitem><para>The caller already is the owner of the specified name.</para></listitem>
+ </varlistentry>
- <varlistentry>
- <term><constant>-EEXIST</constant></term>
+ <varlistentry>
+ <term><constant>-EEXIST</constant></term>
- <listitem><para>The name has already been acquired by a different peer, and SD_BUS_NAME_REPLACE_EXISTING was
- not specified or the other peer did not specify SD_BUS_NAME_ALLOW_REPLACEMENT while acquiring the
- name.</para></listitem>
- </varlistentry>
+ <listitem><para>The name has already been acquired by a different peer, and SD_BUS_NAME_REPLACE_EXISTING was
+ not specified or the other peer did not specify SD_BUS_NAME_ALLOW_REPLACEMENT while acquiring the
+ name.</para></listitem>
+ </varlistentry>
- <varlistentry>
- <term><constant>-ESRCH</constant></term>
+ <varlistentry>
+ <term><constant>-ESRCH</constant></term>
- <listitem><para>It was attempted to release a name that is currently not registered on the
- bus.</para></listitem>
- </varlistentry>
+ <listitem><para>It was attempted to release a name that is currently not registered on the
+ bus.</para></listitem>
+ </varlistentry>
- <varlistentry>
- <term><constant>-EADDRINUSE</constant></term>
+ <varlistentry>
+ <term><constant>-EADDRINUSE</constant></term>
- <listitem><para>It was attempted to release a name that is owned by a different peer on the
- bus.</para></listitem>
- </varlistentry>
+ <listitem><para>It was attempted to release a name that is owned by a different peer on the
+ bus.</para></listitem>
+ </varlistentry>
- <varlistentry>
- <term><constant>-EINVAL</constant></term>
+ <varlistentry>
+ <term><constant>-EINVAL</constant></term>
- <listitem><para>A specified parameter is invalid. This is also generated when the requested name is a special
- service name reserved by the D-Bus specification, or when the operation is requested on a connection that does
- not refer to a bus.</para></listitem>
- </varlistentry>
+ <listitem><para>A specified parameter is invalid. This is also generated when the requested name is
+ a special service name reserved by the D-Bus specification, or when the operation is requested on a
+ connection that does not refer to a bus.</para></listitem>
+ </varlistentry>
- <varlistentry>
- <term><constant>-ENOTCONN</constant></term>
+ <varlistentry>
+ <term><constant>-ENOTCONN</constant></term>
- <listitem><para>The bus connection has been disconnected.</para></listitem>
- </varlistentry>
+ <listitem><para>The bus connection has been disconnected.</para></listitem>
+ </varlistentry>
- <varlistentry>
- <term><constant>-ECHILD</constant></term>
+ <varlistentry>
+ <term><constant>-ECHILD</constant></term>
- <listitem><para>The bus connection has been created in a different process than the current
- one.</para></listitem>
- </varlistentry>
- </variablelist>
+ <listitem><para>The bus connection has been created in a different process than the current
+ one.</para></listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect2>
</refsect1>
<xi:include href="libsystemd-pkgconfig.xml" />