OpenVAS Scanner  22.7.9
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 
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 
20 int
22 
23 int
25 
26 int process_alive (pid_t);
27 
28 int
29 data_left (int);
30 
31 void
32 wait_for_children1 (void);
33 
34 int
35 is_scanner_only_pref (const char *);
36 
37 int
38 store_file (struct scan_globals *globals, const char *file,
39  const char *file_hash);
40 
41 int
42 check_host_still_alive (kb_t, const char *);
43 #endif
get_max_hosts_number
int get_max_hosts_number(void)
Definition: utils.c:134
get_max_checks_number
int get_max_checks_number(void)
Definition: utils.c:165
check_host_still_alive
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
store_file
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:101
process_alive
int process_alive(pid_t)
Definition: utils.c:195
scan_globals
Definition: scanneraux.h:19
wait_for_children1
void wait_for_children1(void)
Definition: utils.c:216
data_left
int data_left(int)
Definition: utils.c:208
is_scanner_only_pref
int is_scanner_only_pref(const char *)
Definition: utils.c:235