diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-06-05 12:52:21 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-06-06 13:09:36 +0200 |
commit | 0e37c169fbacf3b447aa97eac459c29537c34263 (patch) | |
tree | fcd173028da8643f83c6aab99ebd1c7630313b75 /man/sd_event_add_inotify.xml | |
parent | 5c1701dd6d2c55e90f1357643ac70555fd7df9ae (diff) | |
download | systemd-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.xml | 10 |
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> |