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 /sysdeps/common/sysdeps_suid.c | |
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 'sysdeps/common/sysdeps_suid.c')
-rw-r--r-- | sysdeps/common/sysdeps_suid.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/common/sysdeps_suid.c b/sysdeps/common/sysdeps_suid.c index 05c6224e..dea87167 100644 --- a/sysdeps/common/sysdeps_suid.c +++ b/sysdeps/common/sysdeps_suid.c @@ -71,6 +71,9 @@ glibtop_init_func_t _glibtop_init_hook_p [] = { #if GLIBTOP_SUID_PROC_SEGMENT glibtop_init_proc_segment_p, #endif +#if GLIBTOP_SUID_PROC_ARGS + glibtop_init_proc_args_p, +#endif #if GLIBTOP_SUID_PROC_MAP glibtop_init_proc_map_p, #endif |