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
| # Makefile for clamav-realtime v0.0.2 | |
| # Including platform definitions | |
| NAME=clamav-realtime | |
| VERSION=0.0.2 | |
| include Makefile.defs | |
| CC= gcc | |
| STD= _GNU_SOURCE |
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
| > Create a function to notify filesystem changes | |
| -->WORK but not recursive | |
| > TODO : Recursive Loop | |
| > CLAMAV : Use return code to launch analysis or not | |
| > Create function like : inotify initialization, scan loop, cl_initialization, cl_updatedb... |
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
| [Desktop Entry] | |
| Name=ClamAV Realtime | |
| Comment=Realtime antivirus scanner with libClamAV | |
| Exec=clamav-realtime | |
| Icon=clamav-realtime | |
| Terminal=false | |
| Type=Application | |
| MimeType=application/x-executable; | |
| X-GNOME-Autostart-enabled=true |
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 <unistd.h> | |
| int getopt (int argc, char * const argv[], const char * optstring); | |
| extern char * optarg; | |
| extern int optind, opterr; |
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 <unistd.h> | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| int | |
| main(int argc, char *argv[]) | |
| { | |
| int flags, opt; | |
| int nsecs, tfnd; |
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 <getopt.h> | |
| int | |
| main(int argc,char **argv) { | |
| int optch; | |
| static char optstring[] = "gW:c"; | |
| while ( (optch = getopt(argc,argv,optstring)) != -1 ) | |
| switch ( optch ) { |
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> /* for printf */ | |
| #include <stdlib.h> /* for exit */ | |
| #include <unistd.h> /* for getopt */ | |
| int main (int argc, char **argv) { | |
| int c; | |
| int digit_optind = 0; | |
| int aopt = 0, bopt = 0; | |
| char *copt = 0, *dopt = 0; | |
| while ( (c = getopt(argc, argv, "abc:d:012")) != -1) { | |
| int this_option_optind = optind ? optind : 1; |
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 <getopt.h> | |
| /* Define version */ | |
| static const char version[] = "0.0.3"; | |
| /* Flag set by ‘--verbose’. */ | |
| static int verbose_flag; | |
| /* |
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 <libconfig.h> | |
| int main(int argc, char **argv) | |
| { | |
| config_t cfg, *cf; | |
| const config_setting_t *retries; | |
| const char *base = NULL; | |
| int count, n, enabled; |
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
| /* ---------------------------------------------------------------------------- | |
| libconfig - A library for processing structured configuration files | |
| Copyright (C) 2005-2010 Mark A Lindner | |
| This file is part of libconfig. | |
| This library is free software; you can redistribute it and/or | |
| modify it under the terms of the GNU Lesser General Public License | |
| as published by the Free Software Foundation; either version 2.1 of | |
| the License, or (at your option) any later version. |