OpenVAS Libraries
9.0.3
|
#include <errno.h>
#include <fcntl.h>
#include <glib.h>
#include <signal.h>
#include <string.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/param.h>
#include <unistd.h>
#include "../misc/plugutils.h"
#include "../misc/popen.h"
#include "nasl_tree.h"
#include "nasl_global_ctxt.h"
#include "nasl_func.h"
#include "nasl_var.h"
#include "nasl_lex_ctxt.h"
#include "nasl_cmd_exec.h"
#include "nasl_debug.h"
Go to the source code of this file.
Functions | |
tree_cell * | nasl_pread (lex_ctxt *lexic) |
tree_cell * | nasl_find_in_path (lex_ctxt *lexic) |
tree_cell * | nasl_fread (lex_ctxt *lexic) |
Read file. More... | |
tree_cell * | nasl_unlink (lex_ctxt *lexic) |
Unlink file. More... | |
tree_cell * | nasl_fwrite (lex_ctxt *lexic) |
Write file. More... | |
tree_cell * | nasl_get_tmp_dir (lex_ctxt *lexic) |
tree_cell * | nasl_file_stat (lex_ctxt *lexic) |
Stat file. More... | |
tree_cell * | nasl_file_open (lex_ctxt *lexic) |
Open file. More... | |
tree_cell * | nasl_file_close (lex_ctxt *lexic) |
Close file. More... | |
tree_cell * | nasl_file_read (lex_ctxt *lexic) |
Read file. More... | |
tree_cell * | nasl_file_write (lex_ctxt *lexic) |
Write file. More... | |
tree_cell * | nasl_file_seek (lex_ctxt *lexic) |
Seek in file. More... | |
Variables | |
static void(*)(*) | old_sig_i () = NULL |
static void(*)(*) | old_sig_c = NULL |
Close file.
Definition at line 614 of file nasl_cmd_exec.c.
References alloc_typed_cell(), CONST_INT, get_int_var_by_num(), TC::i_val, nasl_perror(), and TC::x.
Open file.
Definition at line 528 of file nasl_cmd_exec.c.
References alloc_typed_cell(), CONST_INT, get_str_local_var_by_name(), TC::i_val, nasl_perror(), and TC::x.
Read file.
Definition at line 642 of file nasl_cmd_exec.c.
References alloc_typed_cell(), CONST_DATA, get_int_local_var_by_name(), nasl_perror(), TC::size, TC::str_val, and TC::x.
Seek in file.
Definition at line 731 of file nasl_cmd_exec.c.
References alloc_typed_cell(), CONST_INT, get_int_local_var_by_name(), TC::i_val, nasl_perror(), and TC::x.
Stat file.
Definition at line 503 of file nasl_cmd_exec.c.
References alloc_typed_cell(), CONST_INT, get_str_var_by_num(), TC::i_val, nasl_perror(), and TC::x.
Write file.
Definition at line 685 of file nasl_cmd_exec.c.
References alloc_typed_cell(), CONST_INT, get_int_local_var_by_name(), get_str_local_var_by_name(), get_var_size_by_name(), TC::i_val, nasl_perror(), and TC::x.
Definition at line 215 of file nasl_cmd_exec.c.
References alloc_typed_cell(), CONST_INT, find_in_path(), get_str_var_by_num(), TC::i_val, nasl_perror(), and TC::x.
Read file.
Definition at line 240 of file nasl_cmd_exec.c.
References alloc_typed_cell(), CONST_DATA, get_str_var_by_num(), nasl_perror(), TC::size, TC::str_val, and TC::x.
Write file.
Definition at line 369 of file nasl_cmd_exec.c.
References alloc_typed_cell(), CONST_INT, get_str_local_var_by_name(), get_var_size_by_name(), TC::i_val, nasl_perror(), and TC::x.
Definition at line 472 of file nasl_cmd_exec.c.
References alloc_typed_cell(), CONST_DATA, nasl_perror(), TC::size, TC::str_val, and TC::x.
Definition at line 66 of file nasl_cmd_exec.c.
Unlink file.
Definition at line 344 of file nasl_cmd_exec.c.
References FAKE_CELL, get_str_var_by_num(), and nasl_perror().
void(*)(*) old_sig_c = NULL |
Definition at line 48 of file nasl_cmd_exec.c.
void(*)(*) old_sig_i() = NULL |
Definition at line 48 of file nasl_cmd_exec.c.