OpenVAS Scanner
5.1.3
|
#include <stdio.h>
#include <openvas/nasl/nasl.h>
#include <openvas/base/nvticache.h>
#include <openvas/misc/openvas_proctitle.h>
#include <openvas/misc/prefs.h>
#include <glib.h>
#include <stdlib.h>
#include <sys/time.h>
#include <sys/wait.h>
#include <sys/shm.h>
#include <string.h>
#include <errno.h>
#include "utils.h"
#include "pluginload.h"
#include "log.h"
#include "processes.h"
#include "sighand.h"
Go to the source code of this file.
Functions | |
GSList * | collect_nvts (const char *folder, const char *subdir, GSList *files) |
Collects all NVT files in a directory and recurses into subdirs. More... | |
int | calculate_eta (struct timeval start_time, int loaded, int total) |
void | init_loading_shm (void) |
void | destroy_loading_shm (void) |
int | current_loading_plugins (void) |
int | total_loading_plugins (void) |
void | set_current_loading_plugins (int current) |
void | set_total_loading_plugins (int total) |
int | plugins_init (void) |
int calculate_eta | ( | struct timeval | start_time, |
int | loaded, | ||
int | total | ||
) |
Definition at line 110 of file pluginload.c.
GSList* collect_nvts | ( | const char * | folder, |
const char * | subdir, | ||
GSList * | files | ||
) |
Collects all NVT files in a directory and recurses into subdirs.
folder | The main directory from where to descend and collect. |
subdir | A subdirectory to consider for the collection: "folder/subdir" is thus the effective directory to descend from. "subdir" can be "" to make "folder" the effective start. |
files | A list that is extended with all found files. If it is NULL, a new list is created automatically. |
Definition at line 66 of file pluginload.c.
int current_loading_plugins | ( | void | ) |
Definition at line 183 of file pluginload.c.
Referenced by comm_loading().
void destroy_loading_shm | ( | void | ) |
Definition at line 165 of file pluginload.c.
Referenced by loading_handler_stop().
void init_loading_shm | ( | void | ) |
Definition at line 132 of file pluginload.c.
int plugins_init | ( | void | ) |
Definition at line 358 of file pluginload.c.
References log_write().
void set_current_loading_plugins | ( | int | current | ) |
Definition at line 205 of file pluginload.c.
void set_total_loading_plugins | ( | int | total | ) |
Definition at line 217 of file pluginload.c.
int total_loading_plugins | ( | void | ) |
Definition at line 194 of file pluginload.c.
Referenced by comm_loading().