Online virus scanner.
More...
#include <sys/capability.h>
#include <errno.h>
#include <fcntl.h>
#include <iostream>
#include <signal.h>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <syslog.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "conf.h"
#include "config.h"
#include "Environment.h"
#include "FanotifyPolling.h"
#include "Messaging.h"
#include "skyldav.h"
#include "StringSet.h"
Go to the source code of this file.
Online virus scanner.
Definition in file main.cc.
Checks authorization.
Definition at line 202 of file main.cc.
static int capable |
( |
cap_value_t |
cap | ) |
|
|
static |
Check if the process has a capability.
- Parameters
-
- Returns
- 1 if process has capability, else 0.
Definition at line 178 of file main.cc.
static int configurationCallback |
( |
const char * |
key, |
|
|
const char * |
value, |
|
|
void * |
info |
|
) |
| |
|
static |
Callback function for reading configuration file.
- Parameters
-
key | key value |
value | parameter value |
- Returns
- success
Definition at line 53 of file main.cc.
Daemonizes.
Definition at line 215 of file main.cc.
static void hdl |
( |
int |
sig | ) |
|
|
static |
Handles signal.
- Parameters
-
Definition at line 114 of file main.cc.
Prints help message and exits.
Definition at line 158 of file main.cc.
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Main.
- Parameters
-
argc | argument count |
argv | arguments |
- Returns
- success
Definition at line 268 of file main.cc.
Creates pidfile for daemon.
Definition at line 129 of file main.cc.
Shows version information and exits.
Definition at line 166 of file main.cc.