|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From 4dfefc1914bad6a025e2d6738999e45b74715002 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Date: Thu, 25 Sep 2014 17:27:40 -0400
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Subject: [PATCH] man: document sd_event_add_{defer,post,exit}
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Makefile-man.am | 12 +++
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_add_child.xml | 1 +
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_add_defer.xml | 191 ++++++++++++++++++++++++++++++++++++++++++++
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_add_signal.xml | 1 +
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_add_time.xml | 1 +
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
5 files changed, 206 insertions(+)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
create mode 100644 man/sd_event_add_defer.xml
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/Makefile-man.am b/Makefile-man.am
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index 53e2f2cf17..bd5306e676 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/Makefile-man.am
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/Makefile-man.am
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -742,6 +742,7 @@ MANPAGES += \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_bus_path_encode.3 \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_bus_request_name.3 \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_add_child.3 \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ man/sd_event_add_defer.3 \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_add_signal.3 \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_add_time.3 \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_new.3 \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -802,6 +803,8 @@ MANPAGES_ALIAS += \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_bus_ref.3 \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_bus_release_name.3 \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_bus_unref.3 \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ man/sd_event_add_exit.3 \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ man/sd_event_add_post.3 \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_default.3 \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_ref.3 \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_source_get_child_pid.3 \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -867,6 +870,8 @@ man/sd_bus_path_decode.3: man/sd_bus_path_encode.3
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_bus_ref.3: man/sd_bus_new.3
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_bus_release_name.3: man/sd_bus_request_name.3
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_bus_unref.3: man/sd_bus_new.3
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+man/sd_event_add_exit.3: man/sd_event_add_defer.3
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+man/sd_event_add_post.3: man/sd_event_add_defer.3
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_default.3: man/sd_event_new.3
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_ref.3: man/sd_event_new.3
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_source_get_child_pid.3: man/sd_event_add_child.3
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -1040,6 +1045,12 @@ man/sd_bus_release_name.html: man/sd_bus_request_name.html
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_bus_unref.html: man/sd_bus_new.html
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
$(html-alias)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+man/sd_event_add_exit.html: man/sd_event_add_defer.html
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ $(html-alias)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+man/sd_event_add_post.html: man/sd_event_add_defer.html
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ $(html-alias)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_default.html: man/sd_event_new.html
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
$(html-alias)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -1555,6 +1566,7 @@ EXTRA_DIST += \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_bus_path_encode.xml \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_bus_request_name.xml \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_add_child.xml \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ man/sd_event_add_defer.xml \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_add_signal.xml \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_add_time.xml \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_new.xml \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/man/sd_event_add_child.xml b/man/sd_event_add_child.xml
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index a3b4d85ac8..f282a5094a 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/man/sd_event_add_child.xml
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/man/sd_event_add_child.xml
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -198,6 +198,7 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
<citerefentry><refentrytitle>sd_event_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
<citerefentry><refentrytitle>sd_event_add_time</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
<citerefentry><refentrytitle>sd_event_add_signal</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <citerefentry><refentrytitle>sd_event_add_defer</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
<citerefentry><refentrytitle>sd_event_source_set_enabled</refentrytitle><manvolnum>3</manvolnum></citerefentry>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
</para>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
</refsect1>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/man/sd_event_add_defer.xml b/man/sd_event_add_defer.xml
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
new file mode 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index 0000000000..6c937098b2
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- /dev/null
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/man/sd_event_add_defer.xml
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -0,0 +1,191 @@
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+This file is part of systemd.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+Copyright 2014 Zbigniew Jędrzejewski-Szmek
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+systemd is free software; you can redistribute it and/or modify it
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+under the terms of the GNU Lesser General Public License as published by
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+the Free Software Foundation; either version 2.1 of the License, or
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+(at your option) any later version.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+systemd is distributed in the hope that it will be useful, but
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+Lesser General Public License for more details.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+You should have received a copy of the GNU Lesser General Public License
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+-->
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+<refentry id="sd_event_add_defer" conditional="ENABLE_KDBUS">
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <refentryinfo>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <title>sd_event_add_defer</title>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <productname>systemd</productname>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <authorgroup>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <author>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <contrib>More text</contrib>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <firstname>Zbigniew</firstname>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <surname>Jędrzejewski-Szmek</surname>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <email>zbyszek@in.waw.pl</email>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </author>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </authorgroup>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </refentryinfo>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <refmeta>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <refentrytitle>sd_event_add_defer</refentrytitle>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <manvolnum>3</manvolnum>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </refmeta>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <refnamediv>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <refname>sd_event_add_defer</refname>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <refname>sd_event_add_post</refname>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <refname>sd_event_add_exit</refname>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <refpurpose>Add static event sources to an event loop</refpurpose>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </refnamediv>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <refsynopsisdiv>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <funcsynopsis>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <funcsynopsisinfo>#include <systemd/sd-bus.h></funcsynopsisinfo>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <funcprototype>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <funcdef>int <function>sd_event_add_defer</function></funcdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <paramdef>sd_event *<parameter>event</parameter></paramdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <paramdef>sd_event_source **<parameter>source</parameter></paramdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <paramdef>sd_event_handler_t <parameter>handler</parameter></paramdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <paramdef>void *<parameter>userdata</parameter></paramdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </funcprototype>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <funcprototype>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <funcdef>int <function>sd_event_add_post</function></funcdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <paramdef>sd_event *<parameter>event</parameter></paramdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <paramdef>sd_event_source **<parameter>source</parameter></paramdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <paramdef>sd_event_handler_t <parameter>handler</parameter></paramdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <paramdef>void *<parameter>userdata</parameter></paramdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </funcprototype>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <funcprototype>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <funcdef>int <function>sd_event_add_exit</function></funcdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <paramdef>sd_event *<parameter>event</parameter></paramdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <paramdef>sd_event_source **<parameter>source</parameter></paramdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <paramdef>sd_event_handler_t <parameter>handler</parameter></paramdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <paramdef>void *<parameter>userdata</parameter></paramdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </funcprototype>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <funcprototype>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <funcdef>typedef int (*<function>sd_event_handler_t</function>)</funcdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <paramdef>sd_event_source *<parameter>s</parameter></paramdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <paramdef>void *<parameter>userdata</parameter></paramdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </funcprototype>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </funcsynopsis>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </refsynopsisdiv>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <refsect1>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <title>Description</title>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <para>Those three functions add new event sources to an event loop
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ object. The event loop is specified in
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <parameter>event</parameter>, the event source is returned in the
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <parameter>source</parameter> parameter. The event sources are
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ enabled statically and will "fire" when the event loop is run and
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ the conditions described below are met. The handler function will
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ be passed the <parameter>userdata</parameter> pointer, which may
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ be chosen freely by the caller.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <para><function>sd_event_add_defer()</function> adds a new event
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ source that will "fire" the next time the event loop is run. By
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ default, the handler will be called once
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ (<constant>SD_EVENT_ONESHOT</constant>).</para>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <para><function>sd_event_add_defer()</function> adds a new event
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ source that will "fire" if any event handlers are invoked whenever
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ the event loop is run. By default, the source is enabled
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ permanently (<constant>SD_EVENT_ON</constant>).</para>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <para><function>sd_event_add_exit()</function> adds a new event
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ source that will "fire" when the event loop is terminated
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ with <function>sd_event_exit()</function>.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <para>The
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <citerefentry><refentrytitle>sd_event_source_set_enabled</refentrytitle><manvolnum>3</manvolnum></citerefentry>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ function may be used to enable the event source permanently
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ (<constant>SD_EVENT_ON</constant>) or to make it fire just once
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ (<constant>SD_EVENT_ONESHOT</constant>). If the handler function
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ returns a negative error code, it will be disabled after the
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ invocation, even if <constant>SD_EVENT_ON</constant> mode is
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ set.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </refsect1>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <refsect1>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <title>Return Value</title>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <para>On success, this functions return 0 or a positive
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ integer. On failure, they return a negative errno-style error
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ code.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </refsect1>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <refsect1>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <title>Errors</title>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <para>Returned errors may indicate the following problems:</para>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <variablelist>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <term><varname>-ENOMEM</varname></term>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <listitem><para>Not enough memory to allocate an object.</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <term><varname>-EINVAL</varname></term>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <listitem><para>An invalid argument has been passed.</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <term><varname>-ESTALE</varname></term>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <listitem><para>The event loop is already terminated.</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <term><varname>-ECHILD</varname></term>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <listitem><para>The event loop has been created in a different process.</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </variablelist>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </refsect1>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <refsect1>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <title>Notes</title>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <para>Functions described here are available as a shared library,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ which can be compiled and linked to with the
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <constant>libsystemd</constant>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ project='die-net'><refentrytitle>pkg-config</refentrytitle><manvolnum>1</manvolnum></citerefentry>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ file.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </refsect1>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <refsect1>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <title>See Also</title>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <para>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <citerefentry><refentrytitle>sd-event</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <citerefentry><refentrytitle>sd_event_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <citerefentry><refentrytitle>sd_event_add_time</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <citerefentry><refentrytitle>sd_event_add_signal</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <citerefentry><refentrytitle>sd_event_add_child</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <citerefentry><refentrytitle>sd_event_source_set_enabled</refentrytitle><manvolnum>3</manvolnum></citerefentry>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </para>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </refsect1>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+</refentry>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/man/sd_event_add_signal.xml b/man/sd_event_add_signal.xml
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index 2b656b67a2..1517c1021c 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/man/sd_event_add_signal.xml
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/man/sd_event_add_signal.xml
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -190,6 +190,7 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
<citerefentry><refentrytitle>sd_event_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
<citerefentry><refentrytitle>sd_event_add_time</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
<citerefentry><refentrytitle>sd_event_add_child</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <citerefentry><refentrytitle>sd_event_add_defer</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
<citerefentry><refentrytitle>sd_event_source_set_enabled</refentrytitle><manvolnum>3</manvolnum></citerefentry>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
</para>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
</refsect1>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/man/sd_event_add_time.xml b/man/sd_event_add_time.xml
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index e64ed8e207..f16b84f605 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/man/sd_event_add_time.xml
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/man/sd_event_add_time.xml
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -250,6 +250,7 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
<citerefentry><refentrytitle>sd_event_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
<citerefentry><refentrytitle>sd_event_add_signal</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
<citerefentry><refentrytitle>sd_event_add_child</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <citerefentry><refentrytitle>sd_event_add_defer</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
<citerefentry><refentrytitle>clock_gettime</refentrytitle><manvolnum>2</manvolnum></citerefentry>,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
<citerefentry><refentrytitle>sd_event_source_set_enabled</refentrytitle><manvolnum>3</manvolnum></citerefentry>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
</para>
|