summaryrefslogtreecommitdiff
path: root/man/sd_event_add_inotify.xml
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-06-05 12:52:21 +0200
committerLennart Poettering <lennart@poettering.net>2018-06-06 13:09:36 +0200
commit0e37c169fbacf3b447aa97eac459c29537c34263 (patch)
treefcd173028da8643f83c6aab99ebd1c7630313b75 /man/sd_event_add_inotify.xml
parent5c1701dd6d2c55e90f1357643ac70555fd7df9ae (diff)
downloadsystemd-0e37c169fbacf3b447aa97eac459c29537c34263.tar.gz
man: add example for sd_event_add_inotify
Diffstat (limited to 'man/sd_event_add_inotify.xml')
-rw-r--r--man/sd_event_add_inotify.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/man/sd_event_add_inotify.xml b/man/sd_event_add_inotify.xml
index af3b6bcfdf..605863c356 100644
--- a/man/sd_event_add_inotify.xml
+++ b/man/sd_event_add_inotify.xml
@@ -155,6 +155,16 @@
</variablelist>
</refsect1>
+ <refsect1>
+ <title>Examples</title>
+
+ <example>
+ <title>A simple program that uses inotify to monitor one or two directories</title>
+
+ <programlisting><xi:include href="inotify-watch-tmp.c" parse="text" /></programlisting>
+ </example>
+ </refsect1>
+
<xi:include href="libsystemd-pkgconfig.xml" />
<refsect1>