| Process ArgumentsProcess Arguments — Get process command line arguments |  | 
Stability Level
Stable, unless otherwise indicated
 
Includes
#include <glibtop/procargs.h>
 
Functions
glibtop_get_proc_args ()
char *
glibtop_get_proc_args (glibtop_proc_args *buf,
                       pid_t pid,
                       unsigned  max_len);
Get process command line arguments.
Returns
 pid
's command line arguments separated by null bytes; the length of
this string is returned in the buf
size field.  You are required to free
the string when done.
 
 
glibtop_get_proc_argv ()
char **
glibtop_get_proc_argv (glibtop_proc_args *buf,
                       pid_t pid,
                       unsigned  max_len);
Get process command line arguments.
Returns
 A NULL-terminated array of strings with all arguments of process pid
(up to max_len
characters).  Remember to g_strfreev
the returned array to avoid a memory leak.
 
 
 
Types and Values
struct glibtop_proc_args
struct glibtop_proc_args {
	guint64 flags;
	guint64 size;			/* GLIBTOP_PROC_ARGS_SIZE */
};