summaryrefslogtreecommitdiff
path: root/shared/inotify/doc/man/man3/inotify-cxx.h.3
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:00:17 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:00:17 +0200
commitfd0853d2623dd278b08288331ed42e3be59252fb (patch)
treea7645daeaef8bdbed064faf4eb88e72cee58726c /shared/inotify/doc/man/man3/inotify-cxx.h.3
parent2.1 (diff)
downloadFreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.tar.gz
FreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.tar.bz2
FreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.zip
2.2
Diffstat (limited to 'shared/inotify/doc/man/man3/inotify-cxx.h.3')
-rw-r--r--shared/inotify/doc/man/man3/inotify-cxx.h.3198
1 files changed, 198 insertions, 0 deletions
diff --git a/shared/inotify/doc/man/man3/inotify-cxx.h.3 b/shared/inotify/doc/man/man3/inotify-cxx.h.3
new file mode 100644
index 00000000..4e0ec8b3
--- /dev/null
+++ b/shared/inotify/doc/man/man3/inotify-cxx.h.3
@@ -0,0 +1,198 @@
+.TH "inotify-cxx.h" 3 "18 Apr 2007" "Version 0.7.2" "inotify-cxx" \" -*- nroff -*-
+.ad l
+.nh
+.SH NAME
+inotify-cxx.h \- inotify C++ interface header
+.SH SYNOPSIS
+.br
+.PP
+\fC#include <stdint.h>\fP
+.br
+\fC#include <string>\fP
+.br
+\fC#include <deque>\fP
+.br
+\fC#include <map>\fP
+.br
+\fC#include <sys/syscall.h>\fP
+.br
+\fC#include <sys/inotify.h>\fP
+.br
+\fC#include <sys/inotify-syscalls.h>\fP
+.br
+
+.SS "Classes"
+
+.in +1c
+.ti -1c
+.RI "class \fBInotifyException\fP"
+.br
+.RI "\fIClass for inotify exceptions. \fP"
+.ti -1c
+.RI "class \fBInotifyEvent\fP"
+.br
+.RI "\fIinotify event class \fP"
+.ti -1c
+.RI "class \fBInotifyWatch\fP"
+.br
+.RI "\fIinotify watch class \fP"
+.ti -1c
+.RI "class \fBInotify\fP"
+.br
+.RI "\fIinotify class \fP"
+.in -1c
+.SS "Defines"
+
+.in +1c
+.ti -1c
+.RI "#define \fBINOTIFY_EVENT_SIZE\fP (sizeof(struct inotify_event))"
+.br
+.RI "\fIEvent struct size. \fP"
+.ti -1c
+.RI "#define \fBINOTIFY_BUFLEN\fP (1024 * (INOTIFY_EVENT_SIZE + 16))"
+.br
+.RI "\fIEvent buffer length. \fP"
+.ti -1c
+.RI "#define \fBIN_EXC_MSG\fP(msg) (std::string(__PRETTY_FUNCTION__) + ': ' + msg)"
+.br
+.RI "\fIHelper macro for creating exception messages. \fP"
+.ti -1c
+.RI "#define \fBIN_LOCK_DECL\fP"
+.br
+.RI "\fIinotify-cxx thread safety \fP"
+.ti -1c
+.RI "#define \fBIN_LOCK_INIT\fP"
+.br
+.ti -1c
+.RI "#define \fBIN_LOCK_DONE\fP"
+.br
+.ti -1c
+.RI "#define \fBIN_READ_BEGIN\fP"
+.br
+.ti -1c
+.RI "#define \fBIN_READ_END\fP"
+.br
+.ti -1c
+.RI "#define \fBIN_READ_END_NOTHROW\fP"
+.br
+.ti -1c
+.RI "#define \fBIN_WRITE_BEGIN\fP"
+.br
+.ti -1c
+.RI "#define \fBIN_WRITE_END\fP"
+.br
+.ti -1c
+.RI "#define \fBIN_WRITE_END_NOTHROW\fP"
+.br
+.in -1c
+.SS "Typedefs"
+
+.in +1c
+.ti -1c
+.RI "typedef std::map< int32_t, \fBInotifyWatch\fP * > \fBIN_WATCH_MAP\fP"
+.br
+.RI "\fIMapping from watch descriptors to watch objects. \fP"
+.ti -1c
+.RI "typedef std::map< std::string, \fBInotifyWatch\fP * > \fBIN_WP_MAP\fP"
+.br
+.RI "\fIMapping from paths to watch objects. \fP"
+.in -1c
+.SS "Enumerations"
+
+.in +1c
+.ti -1c
+.RI "enum \fBInotifyCapability_t\fP { \fBIN_MAX_EVENTS\fP = 0, \fBIN_MAX_INSTANCES\fP = 1, \fBIN_MAX_WATCHES\fP = 2 }"
+.br
+.RI "\fIinotify capability/limit identifiers \fP"
+.in -1c
+.SH "Detailed Description"
+.PP
+inotify C++ interface header
+
+inotify C++ interface
+.PP
+Copyright (C) 2006, 2007 Lukas Jelinek, <lukas@aiken.cz>
+.PP
+This program is free software; you can redistribute it and/or modify it under the terms of one of the following licenses:
+.PP
+.PD 0
+.IP "\(bu" 2
+1. X11-style license (see LICENSE-X11)
+.IP "\(bu" 2
+2. GNU Lesser General Public License, version 2.1 (see LICENSE-LGPL)
+.IP "\(bu" 2
+3. GNU General Public License, version 2 (see LICENSE-GPL)
+.PP
+If you want to help with choosing the best license for you, please visit http://www.gnu.org/licenses/license-list.html.
+.SH "Define Documentation"
+.PP
+.SS "#define IN_EXC_MSG(msg) (std::string(__PRETTY_FUNCTION__) + ': ' + msg)"
+.PP
+Helper macro for creating exception messages.
+.PP
+It prepends the message by the function name.
+.SS "#define IN_LOCK_DECL"
+.PP
+inotify-cxx thread safety
+.PP
+If this symbol is defined you can use this interface safely threaded applications. Remember that it slightly degrades performance.
+.PP
+Even if INOTIFY_THREAD_SAFE is defined some classes stay unsafe. If you must use them (must you?) in more than one thread concurrently you need to implement explicite locking.
+.PP
+You need not to define INOTIFY_THREAD_SAFE in that cases where the application is multithreaded but all the inotify infrastructure will be managed only in one thread. This is the recommended way.
+.PP
+Locking may fail (it is very rare but not impossible). In this case an exception is thrown. But if unlocking fails in case of an error it does nothing (this failure is ignored).
+.SS "#define IN_LOCK_DONE"
+.PP
+.SS "#define IN_LOCK_INIT"
+.PP
+.SS "#define IN_READ_BEGIN"
+.PP
+.SS "#define IN_READ_END"
+.PP
+.SS "#define IN_READ_END_NOTHROW"
+.PP
+.SS "#define IN_WRITE_BEGIN"
+.PP
+.SS "#define IN_WRITE_END"
+.PP
+.SS "#define IN_WRITE_END_NOTHROW"
+.PP
+.SS "#define INOTIFY_BUFLEN (1024 * (INOTIFY_EVENT_SIZE + 16))"
+.PP
+Event buffer length.
+.PP
+.SS "#define INOTIFY_EVENT_SIZE (sizeof(struct inotify_event))"
+.PP
+Event struct size.
+.PP
+.SH "Typedef Documentation"
+.PP
+.SS "typedef std::map<int32_t, \fBInotifyWatch\fP*> \fBIN_WATCH_MAP\fP"
+.PP
+Mapping from watch descriptors to watch objects.
+.PP
+.SS "typedef std::map<std::string, \fBInotifyWatch\fP*> \fBIN_WP_MAP\fP"
+.PP
+Mapping from paths to watch objects.
+.PP
+.SH "Enumeration Type Documentation"
+.PP
+.SS "enum \fBInotifyCapability_t\fP"
+.PP
+inotify capability/limit identifiers
+.PP
+\fBEnumerator: \fP
+.in +1c
+.TP
+\fB\fIIN_MAX_EVENTS \fP\fP
+max. events in the kernel queue
+.TP
+\fB\fIIN_MAX_INSTANCES \fP\fP
+max. inotify file descriptors per process
+.TP
+\fB\fIIN_MAX_WATCHES \fP\fP
+max. watches per file descriptor
+.SH "Author"
+.PP
+Generated automatically by Doxygen for inotify-cxx from the source code.
bgstack15