OpenVAS Scanner 21.4.1
Functions
nasl_cmd_exec.h File Reference
#include "nasl_lex_ctxt.h"

Go to the source code of this file.

Functions

tree_cellnasl_pread (lex_ctxt *)
 Spawn a process. More...
 
tree_cellnasl_find_in_path (lex_ctxt *)
 
tree_cellnasl_fread (lex_ctxt *)
 Read file. More...
 
tree_cellnasl_fwrite (lex_ctxt *)
 Write file. More...
 
tree_cellnasl_unlink (lex_ctxt *)
 Unlink file. More...
 
tree_cellnasl_get_tmp_dir (lex_ctxt *)
 
tree_cellnasl_file_stat (lex_ctxt *)
 Stat file. More...
 
tree_cellnasl_file_open (lex_ctxt *)
 Open file. More...
 
tree_cellnasl_file_close (lex_ctxt *)
 Close file. More...
 
tree_cellnasl_file_read (lex_ctxt *)
 Read file. More...
 
tree_cellnasl_file_write (lex_ctxt *)
 Write file. More...
 
tree_cellnasl_file_seek (lex_ctxt *)
 Seek in file. More...
 

Function Documentation

◆ nasl_file_close()

tree_cell * nasl_file_close ( lex_ctxt lexic)

Close file.

◆ nasl_file_open()

tree_cell * nasl_file_open ( lex_ctxt lexic)

Open file.

◆ nasl_file_read()

tree_cell * nasl_file_read ( lex_ctxt lexic)

Read file.

◆ nasl_file_seek()

tree_cell * nasl_file_seek ( lex_ctxt lexic)

Seek in file.

◆ nasl_file_stat()

tree_cell * nasl_file_stat ( lex_ctxt lexic)

Stat file.

◆ nasl_file_write()

tree_cell * nasl_file_write ( lex_ctxt lexic)

Write file.

◆ nasl_find_in_path()

tree_cell * nasl_find_in_path ( lex_ctxt lexic)

◆ nasl_fread()

tree_cell * nasl_fread ( lex_ctxt lexic)

Read file.

◆ nasl_fwrite()

tree_cell * nasl_fwrite ( lex_ctxt lexic)

Write file.

◆ nasl_get_tmp_dir()

tree_cell * nasl_get_tmp_dir ( lex_ctxt lexic)

◆ nasl_pread()

tree_cell * nasl_pread ( lex_ctxt lexic)

Spawn a process.

Todo:
Suspects to glib replacements, all path related stuff.
Parameters
[in]lexicLexical context of NASL interpreter.
[in]cmdCommand to run.
[in]argvList of arguments.
[in]cdIf set to TRUE the scanner will change it's current directory to the directory where the command was found.
[in]drop_privileges_userOwner of the spawned process.
Returns
The content of stderr or stdout written by the spawn process or NULL.

◆ nasl_unlink()

tree_cell * nasl_unlink ( lex_ctxt lexic)

Unlink file.