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
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#endif
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
int get_max_hosts_number(void)
Definition: utils.c:134
int get_max_checks_number(void)
Definition: utils.c:165
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:235
int data_left(int)
Definition: utils.c:208
int process_alive(pid_t)
Definition: utils.c:195
void wait_for_children1(void)
Definition: utils.c:216