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));
81 for (i = 0; envp[i]; i++)
82 environ[i] = g_strdup (envp[i]);
114 formatted = g_strdup_vprintf (new_title, args);
116 tmp = strlen (formatted);
125 memcpy (
old_argv[0], formatted, tmp);
142 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.