|
OpenVAS Scanner 23.40.3
|
#include "nasl_lex_ctxt.h"

Go to the source code of this file.
Functions | |
| tree_cell * | nasl_pread (lex_ctxt *) |
| Spawn a process. | |
| tree_cell * | nasl_find_in_path (lex_ctxt *) |
| tree_cell * | nasl_fread (lex_ctxt *) |
| Read file. | |
| tree_cell * | nasl_fwrite (lex_ctxt *) |
| Write file. | |
| tree_cell * | nasl_unlink (lex_ctxt *) |
| Unlink file. | |
| tree_cell * | nasl_get_tmp_dir (lex_ctxt *) |
| tree_cell * | nasl_file_stat (lex_ctxt *) |
| Stat file. | |
| tree_cell * | nasl_file_open (lex_ctxt *) |
| Open file. | |
| tree_cell * | nasl_file_close (lex_ctxt *) |
| Close file. | |
| tree_cell * | nasl_file_read (lex_ctxt *) |
| Read file. | |
| tree_cell * | nasl_file_write (lex_ctxt *) |
| Write file. | |
| tree_cell * | nasl_file_seek (lex_ctxt *) |
| Seek in file. | |
Close file.
Definition at line 474 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 416 of file nasl_cmd_exec.c.
References alloc_typed_cell(), CONST_INT, get_str_var_by_name(), TC::i_val, nasl_perror(), and TC::x.

Read file.
Definition at line 501 of file nasl_cmd_exec.c.
References alloc_typed_cell(), CONST_DATA, get_int_var_by_name(), nasl_perror(), TC::size, TC::str_val, and TC::x.

Seek in file.
Definition at line 586 of file nasl_cmd_exec.c.
References alloc_typed_cell(), CONST_INT, get_int_var_by_name(), TC::i_val, nasl_perror(), and TC::x.

Stat file.
Definition at line 391 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 543 of file nasl_cmd_exec.c.
References alloc_typed_cell(), CONST_INT, get_int_var_by_name(), get_str_var_by_name(), get_var_size_by_name(), TC::i_val, len, nasl_perror(), and TC::x.

Definition at line 243 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.

Read file.
Definition at line 270 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 331 of file nasl_cmd_exec.c.
References alloc_typed_cell(), CONST_INT, get_str_var_by_name(), get_var_size_by_name(), TC::i_val, nasl_perror(), and TC::x.

Definition at line 360 of file nasl_cmd_exec.c.
References alloc_typed_cell(), CONST_DATA, MAXPATHLEN, nasl_perror(), TC::size, TC::str_val, and TC::x.

Spawn a process.
| [in] | lexic | Lexical context of NASL interpreter. |
| [in] | cmd | Command to run. |
| [in] | argv | List of arguments. |
| [in] | cd | If set to TRUE the scanner will change it's current directory to the directory where the command was found. |
| [in] | drop_privileges_user | Owner of the spawned process. |
Definition at line 100 of file nasl_cmd_exec.c.
References alloc_typed_cell(), CONST_DATA, deref_cell(), get_int_var_by_name(), get_str_var_by_name(), get_variable_by_name(), st_nasl_array::hash_elt, st_nasl_array::max_idx, MAXPATHLEN, nasl_perror(), st_nasl_array::num_elt, pid, pread_streams(), TC::size, TC::str_val, st_a_nasl_var::v, st_a_nasl_var::v_arr, VAR2_ARRAY, var2str(), st_a_nasl_var::var_type, and TC::x.

Unlink file.
Definition at line 306 of file nasl_cmd_exec.c.
References FAKE_CELL, get_str_var_by_num(), and nasl_perror().
