|
Greenbone Vulnerability Management Libraries 22.32.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>#include <sys/prctl.h>
Go to the source code of this file.
Macros | |
| #define | G_LOG_DOMAIN "libgvm base" |
| GLib log domain. | |
Functions | |
| void | proctitle_init (int argc, char **argv) |
| Initializes the process setting variables. | |
| static void | proctitle_set_args (const char *new_title, va_list args) |
| Sets the process' title. | |
| void | proctitle_set (const char *new_title,...) |
| Sets the process' title. | |
Variables | |
| const char * | __progname |
| Access to the executable's name. | |
| const char * | __progname_full |
| static char ** | old_argv |
| static int | old_argc |
| char ** | environ |
| void * | current_environ = NULL |
| static int | max_prog_name = 0 |
Implementation of an API to set process title.
Definition in file proctitle.c.
| #define G_LOG_DOMAIN "libgvm base" |
GLib log domain.
Definition at line 23 of 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 45 of file proctitle.c.
References __progname, __progname_full, current_environ, environ, max_prog_name, old_argc, 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 139 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 102 of file proctitle.c.
References max_prog_name, old_argc, and old_argv.
Referenced by proctitle_set().

|
extern |
Access to the executable's name.
Referenced by proctitle_init().
|
extern |
Referenced by proctitle_init().
| void* current_environ = NULL |
Definition at line 35 of file proctitle.c.
Referenced by proctitle_init().
|
extern |
Referenced by proctitle_init().
|
static |
Definition at line 36 of file proctitle.c.
Referenced by proctitle_init(), and proctitle_set_args().
|
static |
Definition at line 33 of file proctitle.c.
Referenced by proctitle_init(), and proctitle_set_args().
|
static |
Definition at line 32 of file proctitle.c.
Referenced by proctitle_init(), and proctitle_set_args().