|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From edf2573743b25273bee020230a60f1a054b8ec60 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:33 -0400
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Subject: [PATCH] man: add sd_event_add_child(3)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Makefile-man.am | 7 ++
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_add_child.xml | 205 ++++++++++++++++++++++++++++++++++++++++++++
|
|
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 |
4 files changed, 214 insertions(+)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
create mode 100644 man/sd_event_add_child.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 85a3612f39..53e2f2cf17 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/Makefile-man.am
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/Makefile-man.am
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -741,6 +741,7 @@ MANPAGES += \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_bus_open_user.3 \
|
|
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_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 |
@@ -803,6 +804,7 @@ MANPAGES_ALIAS += \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_bus_unref.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 |
man/sd_event_source_get_signal.3 \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_source_get_time.3 \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_source_get_time_accuracy.3 \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -867,6 +869,7 @@ 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_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 |
man/sd_event_source_get_signal.3: man/sd_event_add_signal.3
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_source_get_time.3: man/sd_event_add_time.3
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_source_get_time_accuracy.3: man/sd_event_add_time.3
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -1043,6 +1046,9 @@ man/sd_event_default.html: man/sd_event_new.html
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_ref.html: man/sd_event_new.html
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
$(html-alias)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+man/sd_event_source_get_child_pid.html: man/sd_event_add_child.html
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ $(html-alias)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_event_source_get_signal.html: man/sd_event_add_signal.html
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
$(html-alias)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -1548,6 +1554,7 @@ EXTRA_DIST += \
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
man/sd_bus_open_user.xml \
|
|
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_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 |
new file mode 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index 0000000000..a3b4d85ac8
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- /dev/null
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/man/sd_event_add_child.xml
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -0,0 +1,205 @@
|
|
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_child" conditional="ENABLE_KDBUS">
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <refentryinfo>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <title>sd_event_add_child</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_child</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_child</refname>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <refname>sd_event_source_get_child_pid</refname>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <refpurpose>Add a child state change event source 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_child</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>pid_t <parameter>pid</parameter></paramdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <paramdef>int <parameter>options</parameter></paramdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <paramdef>sd_event_child_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_child_handler_t</function>)</funcdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <paramdef>sd_event_source *<parameter>s</parameter></paramdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <paramdef>const siginfo_t *<parameter>si</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_source_get_child_pid</function></funcdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <paramdef>sd_event_source *<parameter>source</parameter></paramdef>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <paramdef>pid_t *<parameter>pid</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><function>sd_event_add_child()</function> adds a new child
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ state change event source to an event loop object. The event loop
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ is specified in <parameter>event</parameter>, the event source is
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ returned in the <parameter>source</parameter> parameter. The
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <parameter>pid</parameter> parameter specifies the process to
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ watch. The <parameter>handler</parameter> must reference a
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ function to call when the process changes state. The handler
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ function will be passed the <parameter>userdata</parameter>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ pointer, which may be chosen freely by the caller. The handler
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ also receives a pointer to a <structname>const
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ siginfo_t</structname> structure containing the information about
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ the event. The <parameter>options</parameter> parameter determines
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ which state changes will be watched for. It must contain an OR-ed
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ mask of <constant>WEXITED</constant> (watch for the child
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ terminating), <constant>WSTOPPED</constant> (watch for the child
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ being stopped by a signal), and <constant>WCONTINUED</constant>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ (watch for the child being resumed by a signal). See
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <citerefentry><refentrytitle>waitid</refentrytitle><manvolnum>2</manvolnum></citerefentry>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ for futher information.</para>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <para>Only a single handler may be installed for a specific
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ child. The handler is enabled
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ for a single event (<constant>SD_EVENT_ONESHOT</constant>),
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ but this may be
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ changed with
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <citerefentry><refentrytitle>sd_event_source_set_enabled</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ If the handler function returns a negative error code, it will be
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ disabled after the invocation, even if
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <constant>SD_EVENT_ON</constant> mode is set.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </para>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <para><function>sd_event_source_get_child_pid()</function>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ retrieves the configured <parameter>pid</parameter> of a child
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ state change event source created previously with
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <function>sd_event_add_child()</function>. It takes the event
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ source object as the <parameter>source</parameter> parameter and a
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ pointer to <type>pid_t</type> to return the result in.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </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, these 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. This includes
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ specyfing an empty mask in <parameter>options</parameter> or a mask
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ which constains values different than a combination of
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <constant>WEXITED</constant>, <constant>WSTOPPED</constant>, and
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <constant>WCONTINUED</constant>.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ </varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <varlistentry>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <term><varname>-EBUSY</varname></term>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <listitem><para>An handler is already installed for this
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ child.</para></listitem>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
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 |
+
|
|
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 |
+
|
|
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><function>sd_event_add_child()</function> and the other functions
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ described here are available as a shared library, which can be
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ compiled and linked to with the
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ <constant>libsystemd</constant> <citerefentry 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_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 2344fb3c02..2b656b67a2 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 |
@@ -189,6 +189,7 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
|
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_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 |
diff --git a/man/sd_event_add_time.xml b/man/sd_event_add_time.xml
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index d3775e5d5f..e64ed8e207 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 |
@@ -249,6 +249,7 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
|
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_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>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>
|