|
ewmscp
..
|
#include <chrono>#include <csignal>#include <dirent.h>#include <fstream>#include <iostream>#include <list>#include <map>#include <poll.h>#include <regex>#include <atomic>#include <scoped.h>#include <string.h>#include <sys/inotify.h>#include <sys/stat.h>#include <sys/types.h>#include <syslogstream.h>#include <throwcall.h>#include <unistd.h>#include <Options.h>#include <OptionsRegex.h>Go to the source code of this file.
Classes | |
| class | maskName |
| class | inotify_event_wrapper |
| wrapper for inotify_event with nicer interface. More... | |
| class | inotify_event_copy |
| smart copy class for inotify_event. More... | |
| class | watchedDirType |
| represents a watched directory inside a directory tree. More... | |
| class | commandSender |
| class used to send messages via stdout. More... | |
| class | commandSender::flushDomain |
| class to flush output on scope basis. More... | |
Typedefs | |
| typedef std::chrono::system_clock | clock_type |
Enumerations | |
| enum | watchDirectoryReturnType { watchDirectoryReturnType::vanished, watchDirectoryReturnType::islink, watchDirectoryReturnType::ignore, watchDirectoryReturnType::iswatched } |
| special enum for the return values of watchDirectory. More... | |
Functions | |
| std::ostream * | errStream (nullptr) |
| watchDirectoryReturnType | watchDirectory (int fd, const std::string &name, watchedDirType *parent=nullptr) |
| watch a directory. More... | |
| std::ostream & | operator<< (std::ostream &stream, std::chrono::system_clock::time_point t) |
| static void | pidFileRemover () |
| static void | sigTermHandler (int) |
| static void | sigPipeHandler (int) |
| static std::atomic< bool > | dumpRequested (false) |
| static void | sigUsrHandler (int) |
| int | main (int argc, const char *argv[]) |
| main inotify_watch function. More... | |
Variables | |
| options::single< std::string > | errPrefix ('\0', "errPrefix", "prefix for error messages") |
| static options::single< std::string > | pidFileName ('p', "pidFile", "name of PID file") |
| typedef std::chrono::system_clock clock_type |
Definition at line 60 of file inotify_watch.cpp.
|
static |
| std::ostream* errStream | ( | nullptr | ) |
Referenced by main(), printErrors(), and watchedDirType::~watchedDirType().
| std::ostream& operator<< | ( | std::ostream & | stream, |
| std::chrono::system_clock::time_point | t | ||
| ) |
Definition at line 558 of file inotify_watch.cpp.
|
static |
Definition at line 570 of file inotify_watch.cpp.
References throwcall::good0(), and pidFileName.
Referenced by main().
|
static |
Definition at line 578 of file inotify_watch.cpp.
Referenced by main().
|
static |
Definition at line 575 of file inotify_watch.cpp.
Referenced by main().
|
static |
Definition at line 582 of file inotify_watch.cpp.
References dumpRequested().
Referenced by main().
| options::single<std::string> errPrefix('\0', "errPrefix", "prefix for error messages") |
Referenced by watchedDirType::dump(), main(), and watchedDirType::~watchedDirType().
|
static |
Referenced by main(), and pidFileRemover().
1.8.17