Rev 102 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 102 | Rev 108 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | /**
|
3 | /**
|
4 | * \file ict-main.cpp
|
4 | * \file ict-main.cpp
|
5 | *
|
5 | *
|
6 | * inotify cron system
|
6 | * inotify cron system
|
7 | *
|
7 | *
|
8 | * Copyright (C) 2006, 2007, 2008 Lukas Jelinek, <lukas@aiken.cz>
|
8 | * Copyright (C) 2006, 2007, 2008, 2012 Lukas Jelinek, <lukas@aiken.cz>
|
9 | *
|
9 | *
|
10 | * This program is free software; you can use it, redistribute
|
10 | * This program is free software; you can use it, redistribute
|
11 | * it and/or modify it under the terms of the GNU General Public
|
11 | * it and/or modify it under the terms of the GNU General Public
|
12 | * License, version 2 (see LICENSE-GPL).
|
12 | * License, version 2 (see LICENSE-GPL).
|
13 | *
|
13 | *
|
14 | * Credits:
|
14 | * Credits:
|
15 | * kolter (fix for segfaulting on --user)
|
15 | * kolter (fix for segfaulting on --user)
|
- | 16 | * Christian Ruppert (new include to build with GCC 4.4+)
|
|
16 | *
|
17 | *
|
17 | */
|
18 | */
|
18 | 19 | ||
19 | 20 | ||
20 | #include <argp.h>
|
21 | #include <argp.h>
|
21 | #include <pwd.h>
|
22 | #include <pwd.h>
|
22 | #include <string>
|
23 | #include <string>
|
23 | #include <stdio.h>
|
- | |
24 | #include <unistd.h>
|
24 | #include <unistd.h>
|
25 | #include <sys/stat.h>
|
25 | #include <sys/stat.h>
|
26 | #include <sys/wait.h>
|
26 | #include <sys/wait.h>
|
27 | #include <sys/inotify.h>
|
27 | #include <sys/inotify.h>
|
28 | #include <fcntl.h>
|
28 | #include <fcntl.h>
|
29 | #include <stdlib.h>
|
29 | #include <stdlib.h>
|
30 | #include <limits.h>
|
30 | #include <limits.h>
|
31 | #include <cstring>
|
31 | #include <cstring>
|
- | 32 | #include <cstdio>
|
|
32 | 33 | ||
33 | #include "inotify-cxx.h"
|
34 | #include "inotify-cxx.h"
|
34 | #include "appargs.h"
|
35 | #include "appargs.h"
|
35 | 36 | ||
36 | #include "incron.h"
|
37 | #include "incron.h"
|
Line 58... | Line 59... | ||
58 | "<operation> may be one of the following:\n" \
|
59 | "<operation> may be one of the following:\n" \
|
59 | " -?, --about gives short information about program\n" \
|
60 | " -?, --about gives short information about program\n" \
|
60 | " -h, --help prints this help text\n" \
|
61 | " -h, --help prints this help text\n" \
|
61 | " -l, --list lists user table\n" \
|
62 | " -l, --list lists user table\n" \
|
62 | " -r, --remove removes user table\n" \
|
63 | " -r, --remove removes user table\n" \
|
63 | " -e, --edit provides editting user table\n" \
|
64 | " -e, --edit provides editing user table\n" \
|
64 | " -t, --types list supported event types\n" \
|
65 | " -t, --types list supported event types\n" \
|
65 | " -d, --reload request incrond to reload user table\n" \
|
66 | " -d, --reload request incrond to reload user table\n" \
|
66 | " -V, --version prints program version\n\n" \
|
67 | " -V, --version prints program version\n\n" \
|
67 | "\n" \
|
68 | "\n" \
|
68 | "These options may be used:\n" \
|
69 | "These options may be used:\n" \
|