Greenbone Vulnerability Management Libraries 22.12.2
|
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>
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.
#define G_LOG_DOMAIN "libgvm base" |
GLib log domain.
void proctitle_init | ( | int | argc, |
char ** | argv ) |
Initializes the process setting variables.
[in] | argc | Argc argument from main. |
[in] | argv | Argv argument from main. |
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. |
|
static |
Sets the process' title.
[in] | new_title | Format string for new process title. |
[in] | args | Format string arguments variable list. |
|
extern |
Access to the executable's name.
|
extern |
void* current_environ = NULL |
|
extern |
|
static |
|
static |
|
static |