This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Portage 2.2.14 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.8.3, glibc-2.19-r1, 3.16.5-gentoo x86_64) | |
| ================================================================= | |
| System uname: Linux-3.16.5-gentoo-x86_64-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.2 | |
| KiB Mem: 1537056 total, 29716 free | |
| KiB Swap: 3156768 total, 1876264 free | |
| Timestamp of tree: Wed, 10 Dec 2014 01:45:01 +0000 | |
| ld GNU ld (Gentoo 2.24 p1.4) 2.24 | |
| app-shells/bash: 4.2_p53 | |
| dev-java/java-config: 2.2.0 | |
| dev-lang/perl: 5.18.2-r2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * This program (which doesn't works as expected because of inotify), is a sample use of inotify, | |
| * which get's notifications from a recursive directory | |
| */ | |
| #define __KERNEL_STRICT_NAMES | |
| #define _GNU_SOURCE | |
| #include <string.h> | |
| #include <time.h> | |
| #include <unistd.h> | |
| #include <stdlib.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* This is clamav-realtime sources build with gcc-4.7.3 | |
| * Version 0.0.3 - 15 dec 2014 | |
| * Written by Jérôme PECHE(c), jaypeche@gmail.com | |
| * Distributed under the terms of General Public License GPLv3 | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <errno.h> | |
| #include <sys/types.h> | |
| #include <sys/inotify.h> | |
| #include <limits.h> | |
| #define MAX_EVENTS 1024 /*Max. number of events to process at one go*/ | |
| #define LEN_NAME 16 /*Assuming that the length of the filename won't exceed 16 bytes*/ | |
| #define EVENT_SIZE ( sizeof (struct inotify_event) ) /*size of one event*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Using Inotify to monitor the sub-dirs under the specifiied dir*/ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <errno.h> | |
| #include <sys/types.h> | |
| #include <sys/inotify.h> | |
| #include <dirent.h> | |
| #include <limits.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * File: fanotify-example.c | |
| * Date: Fri Nov 15 14:55:49 2013 | |
| * Author: Aleksander Morgado <aleksander@lanedo.com> | |
| * | |
| * A simple tester of fanotify in the Linux kernel. | |
| * | |
| * This program is released in the Public Domain. | |
| * | |
| * Compile with: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <signal.h> | |
| #include <syslog.h> | |
| #include <errno.h> | |
| #include <stdlib.h> | |
| #include <fcntl.h> | |
| #include <unistd.h> | |
| #include <string.h> | |
| #define DAEMON_NAME "simpledaemon" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* demo_inotify.c | |
| Demonstrate the use of the inotify API. | |
| Usage: demo_inotify pathname... | |
| The program monitors each of the files specified on the command line for all | |
| possible file events. | |
| This program is Linux-specific. The inotify API is available in Linux 2.6.13 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* This is clamav-realtime sources build with gcc-4.7.3 | |
| * Version 0.0.1 - 12 nov 2013 | |
| * Written by Jérôme PECHE(c), jaypeche@gmail.com | |
| * Distributed under the terms of General Public License GPLv3 | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* This is clamav-realtime sources build with gcc-4.7.3 | |
| * Version 0.0.1 - 12 nov 2013 | |
| * Distributed under the terms of General Public License GPLv3 | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <unistd.h> |