diff options
author | Martin Baulig <martin@src.gnome.org> | 1998-10-26 09:53:08 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1998-10-26 09:53:08 +0000 |
commit | bdc4e08454cb6d175f4e6e36e5a63aa46dae09b5 (patch) | |
tree | 90a3ccd5434bb006bc36e608670626a4e5090355 /include/glibtop/sysdeps.h | |
parent | 65e3bf19ab663e7322a363e722da90573e37c744 (diff) | |
download | libgtop-bdc4e08454cb6d175f4e6e36e5a63aa46dae09b5.tar.gz |
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));
Diffstat (limited to 'include/glibtop/sysdeps.h')
-rw-r--r-- | include/glibtop/sysdeps.h | 12 |
1 files changed, 7 insertions, 5 deletions
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 */ |