OpenVAS Libraries  9.0.1
Functions | Variables
openvas_proctitle.c File Reference
#include <glib.h>
#include <string.h>
#include <stdio.h>
#include "openvas_proctitle.h"

Functions

void proctitle_init (int argc, char **argv)
 Initializes the process setting variables. More...
 
void proctitle_set (const char *new_title,...)
 Sets the process' title. More...
 

Variables

const char * __progname
 
const char * __progname_full
 
char ** environ
 
void * current_environ = NULL
 

Function Documentation

◆ proctitle_init()

void proctitle_init ( int  argc,
char **  argv 
)

Initializes the process setting variables.

Parameters
[in]argcArgc argument from main.
[in]argvArgv argument from main.

◆ proctitle_set()

void proctitle_set ( const char *  new_title,
  ... 
)

Sets the process' title.

Parameters
[in]new_titleFormat string for new process title.
[in]...Arguments for format string.

Variable Documentation

◆ __progname

const char* __progname

◆ __progname_full

const char* __progname_full

◆ current_environ

void* current_environ = NULL

◆ environ

char** environ