OpenVAS Scanner 23.23.1
utils.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Greenbone AG
2 * SPDX-FileCopyrightText: 2006 Software in the Public Interest, Inc.
3 * SPDX-FileCopyrightText: 1998-2006 Tenable Network Security, Inc.
4 *
5 * SPDX-License-Identifier: GPL-2.0-only
6 */
7
12
13#ifndef OPENVAS_UTILS_H
14#define OPENVAS_UTILS_H
15
16#include "../misc/scanneraux.h"
17
18#include <sys/types.h> /* for pid_t */
19
20int
22
23int
25
26int process_alive (pid_t);
27
28int
29data_left (int);
30
31void
33
34int
35is_scanner_only_pref (const char *);
36
37int
38store_file (struct scan_globals *globals, const char *file,
39 const char *file_hash);
40
41int
42check_host_still_alive (kb_t, const char *);
43
44void
45write_script_stats (const char *, const char *, int);
46
47void
48write_host_stats (kb_t, const char *, const char *);
49#endif
Auxiliary structures for scanner.
Definition scanneraux.h:19
void write_script_stats(const char *, const char *, int)
Writes scripts stats into a file.
Definition utils.c:271
void write_host_stats(kb_t, const char *, const char *)
Reads the script stats from the kb and generate a string in json format to be stored in the disk.
Definition utils.c:308
int store_file(struct scan_globals *globals, const char *file, const char *file_hash)
Stores a file type preference in a hash table.
Definition utils.c:104
int get_max_hosts_number(void)
Definition utils.c:137
int get_max_checks_number(void)
Definition utils.c:168
int check_host_still_alive(kb_t, const char *)
Check if the hosts is still alive and set it as dead if not.
Definition heartbeat.c:33
int is_scanner_only_pref(const char *)
Definition utils.c:238
int data_left(int)
Definition utils.c:211
int process_alive(pid_t)
Definition utils.c:198
void wait_for_children1(void)
Definition utils.c:219