From bdc4e08454cb6d175f4e6e36e5a63aa46dae09b5 Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Mon, 26 Oct 1998 09:53:08 +0000 Subject: Added new feature (proc_args) to get command line arguments: typedef struct _glibtop_proc_args glibtop_proc_args; struct _glibtop_proc_args { u_int64_t flags, size; /* GLIBTOP_PROC_ARGS_SIZE */ }; Returns a string containing all command line arguments of the process, the `unsigned' parameter is the maximum length of this string; if it is zero then no limit will be set. extern const char *glibtop_get_proc_args_l __P((glibtop *, glibtop_proc_args *, pid_t, unsigned)); --- include/glibtop/sysdeps.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'include/glibtop/sysdeps.h') diff --git a/include/glibtop/sysdeps.h b/include/glibtop/sysdeps.h index 1d94bbab..9ec277b9 100644 --- a/include/glibtop/sysdeps.h +++ b/include/glibtop/sysdeps.h @@ -43,12 +43,13 @@ __BEGIN_DECLS #define GLIBTOP_SYSDEPS_PROC_SIGNAL 14 #define GLIBTOP_SYSDEPS_PROC_KERNEL 15 #define GLIBTOP_SYSDEPS_PROC_SEGMENT 16 -#define GLIBTOP_SYSDEPS_PROC_MAP 17 -#define GLIBTOP_SYSDEPS_MOUNTLIST 18 -#define GLIBTOP_SYSDEPS_FSUSAGE 19 -#define GLIBTOP_SYSDEPS_PPP 20 +#define GLIBTOP_SYSDEPS_PROC_ARGS 17 +#define GLIBTOP_SYSDEPS_PROC_MAP 18 +#define GLIBTOP_SYSDEPS_MOUNTLIST 19 +#define GLIBTOP_SYSDEPS_FSUSAGE 20 +#define GLIBTOP_SYSDEPS_PPP 21 -#define GLIBTOP_MAX_SYSDEPS 21 +#define GLIBTOP_MAX_SYSDEPS 22 #define GLIBTOP_SYSDEPS_ALL ((1 << GLIBTOP_MAX_SYSDEPS) - 1) @@ -78,6 +79,7 @@ struct _glibtop_sysdeps proc_signal, /* glibtop_proc_signal */ proc_kernel, /* glibtop_proc_kernel */ proc_segment, /* glibtop_proc_segment */ + proc_args, /* glibtop_proc_args */ proc_map, /* glibtop_proc_map */ mountlist, /* glibtop_mountlist */ fsusage, /* glibtop_fsusage */ -- cgit v1.2.1