diff options
author | Martin Baulig <martin@src.gnome.org> | 1999-05-21 18:14:30 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1999-05-21 18:14:30 +0000 |
commit | 116767b8b832bf164b5af3c569697a1d383f13bd (patch) | |
tree | ae941b140133302c2349b91657004159acae9cbd /doc | |
parent | 3eb53944748698742d8cc9b84b08965edbd5d0a2 (diff) | |
download | libgtop-116767b8b832bf164b5af3c569697a1d383f13bd.tar.gz |
Added proc_args.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/reference.texi | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/doc/reference.texi b/doc/reference.texi index 24613ff6..8d999b32 100644 --- a/doc/reference.texi +++ b/doc/reference.texi @@ -1054,7 +1054,41 @@ Address of the bottom of stack segmen @node glibtop_proc_args, glibtop_proc_map, glibtop_proc_segment, System Dependent @subsection Process Arguments -[Not yet written.] +Library function @code{glibtop_get_proc_args}: + +@example +@cartouche +char * +glibtop_get_proc_args_l (glibtop_proc_args *buf, pid_t pid, + unsigned max_len); + +char * +glibtop_get_proc_args_l (glibtop *server, glibtop_proc_args *buf, + pid_t pid, unsigned max_len); +@end cartouche +@end example + +Declaration of @code{glibtop_proc_args} in @file{<glibtop/procargs.h>}: + +@example +@cartouche +typedef struct _glibtop_proc_args glibtop_proc_args; + +struct _glibtop_proc_args +@{ + u_int64_t flags, + size; +@}; +@end cartouche +@end example + +Returns a string with all command line arguments of process @code{pid} +(up to @code{max_len} characters, use zero to get all arguments). + +The command line arguments in the returned string are separated by zero bytes; +the lenght of this string is returned in the @code{size} field. + +Remember to @code{glibtop_free} the returned string to avoid a memory leak. @page @node glibtop_proc_map, glibtop_netload, glibtop_proc_args, System Dependent |