inotify-cxx documentation
Requirements
- Linux kernel 2.6.13 or later (with inotify compiled in)
- inotify header(s) installed in
<INCLUDE_DIR>/sys
. The most common place is/usr/include/sys
. Some Linux distributions contain onlyinotify.h
which defines everything needed. But sometimes must be usedinotify.h
andinotify-syscalls.h
as available e.g. at this page (see inotify - Download). - GCC 4.x compiler (probably works also with GCC 3.4, possibly with older versions too)
How to use
Include inotify-cxx.h
into your sources and add
inotify-cxx.cpp
for compiling (e.g. through your makefile).
Building a (static or shared) library is also possible.
If you have installed it into your system-wide include dir (e.g.
/usr/include
), use
#include <inotify-cxx.h>
or similar.
Otherwise use #include "inotify-cxx.h"
.
For thread-safe behavior, define the INOTIFY_THREAD_SAFE symbol (eg. -DINOTIFY_THREAD_SAFE on gcc's command line). See documentation for details about thread safety. Please remember that this feature hasn't been well tested yet.
Example program
Thomas Jarosch created a simple example program showing practical use of inotify-cxx. Its source code can be downloaded here:
Licensing
This program is free software; you can use it, redistribute it and/or modify it under the terms of one of the following licenses:
- X11-style license
- GNU Lesser General Public License, version 2.1
- GNU General Public License, version 2
If you want to help with choosing the best license for you, please visit the license list.
API reference (latest version)
There is no real need why to download the reference documentation from here. Each inotify-cxx source package contains the appropriate version of the reference documentation.
Bugs, suggestions
THIS PROGRAM IS AN ALPHA VERSION. IT PROBABLY CONTAINS BUGS AND THEREFORE IT IS NOT INTENDED FOR PRODUCTION USE.
If you find a bug or have a suggestion how to improve the program, please use the bug tracking system.