23#define G_LOG_DOMAIN "libgvm base"
50 char *new_progname, *new_progname_full;
64 for (i = 0; i < argc; i++)
78 environ = g_malloc0 (
sizeof (
char *) * (i + 1));
82 for (i = 0; envp[i]; i++)
83 environ[i] = g_strdup (envp[i]);
115 formatted = g_strdup_vprintf (new_title, args);
117 tmp = strlen (formatted);
126 memcpy (
old_argv[0], formatted, tmp);
143 va_start (args, new_title);
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.
const char * __progname_full
void proctitle_set(const char *new_title,...)
Sets the process' title.
const char * __progname
Access to the executable's name.
API for process title setting.