Greenbone Vulnerability Management Libraries
11.0.0
|
Implementation of an API to set process title. More...
#include "proctitle.h"
#include <glib.h>
#include <stdio.h>
#include <string.h>
#include <sys/param.h>
Go to the source code of this file.
Functions | |
void | proctitle_init (int argc, char **argv) |
Initializes the process setting variables. More... | |
static void | proctitle_set_args (const char *new_title, va_list args) |
Sets the process' title. More... | |
void | proctitle_set (const char *new_title,...) |
Sets the process' title. More... | |
Variables | |
const char * | __progname |
Access to the executable's name. More... | |
const char * | __progname_full |
static int | argv_len |
static char ** | old_argv |
char ** | environ |
void * | current_environ = NULL |
Implementation of an API to set process title.
Definition in file proctitle.c.
void proctitle_init | ( | int | argc, |
char ** | argv | ||
) |
Initializes the process setting variables.
[in] | argc | Argc argument from main. |
[in] | argv | Argv argument from main. |
Definition at line 51 of file proctitle.c.
References __progname, __progname_full, argv_len, current_environ, environ, and old_argv.
void proctitle_set | ( | const char * | new_title, |
... | |||
) |
Sets the process' title.
[in] | new_title | Format string for new process title. |
[in] | ... | Arguments for format string. |
Definition at line 131 of file proctitle.c.
References proctitle_set_args().
|
static |
Sets the process' title.
[in] | new_title | Format string for new process title. |
[in] | args | Format string arguments variable list. |
Definition at line 101 of file proctitle.c.
References argv_len, and old_argv.
Referenced by proctitle_set().
const char* __progname |
Access to the executable's name.
Referenced by proctitle_init().
const char* __progname_full |
Referenced by proctitle_init().
|
static |
Definition at line 39 of file proctitle.c.
Referenced by proctitle_init(), and proctitle_set_args().
void* current_environ = NULL |
Definition at line 42 of file proctitle.c.
Referenced by proctitle_init().
char** environ |
Referenced by proctitle_init().
|
static |
Definition at line 40 of file proctitle.c.
Referenced by proctitle_init(), and proctitle_set_args().