From 2e6438e5827d8c9058f292353f2615dfda426c46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Dejean?= Date: Wed, 7 Jul 2004 20:16:43 +0000 Subject: [PATCH] updated. Added glibtop_get_proc_argv. Added glibtop_fsusage.block_size. * reference.texi: updated. Added glibtop_get_proc_argv. Added glibtop_fsusage.block_size. --- doc/ChangeLog | 6 ++++++ doc/reference.texi | 29 ++++++++++++++++++++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/doc/ChangeLog b/doc/ChangeLog index cc16e867..7016a88d 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,9 @@ +2004-07-07 BenoƮt Dejean + + * reference.texi: updated. + Added glibtop_get_proc_argv. + Added glibtop_fsusage.block_size. + 2004-03-05 Bastien Nocera * reference.texi: update for new API diff --git a/doc/reference.texi b/doc/reference.texi index 2989c7cd..8f63ed31 100644 --- a/doc/reference.texi +++ b/doc/reference.texi @@ -1079,7 +1079,7 @@ Library function @code{glibtop_get_proc_args}: @example @cartouche char * -glibtop_get_proc_args_l (glibtop_proc_args *buf, pid_t pid, +glibtop_get_proc_args(glibtop_proc_args *buf, pid_t pid, unsigned max_len); char * @@ -1110,6 +1110,30 @@ the lenght of this string is returned in the @code{size} field. Remember to @code{g_free} the returned string to avoid a memory leak. +@strong{New functions} + +@example +@cartouche +char ** +glibtop_get_proc_argv(glibtop_proc_args *buf, pid_t pid, + unsigned max_len); + +char ** +glibtop_get_proc_argv_l (glibtop *server, glibtop_proc_args *buf, + pid_t pid, unsigned max_len); +@end cartouche +@end example + +Returns a NULL-terminated array of strings with all arguments of +process @code{pid} (up to @code{max_len} characters, use zero to get +all arguments). @code{glibtop_get_proc_argv()} and +@code{glibtop_get_proc_argv_l()} are wrappers to +@code{glibtop_get_proc_args()} and @code{glibtop_get_proc_args_l()} +that return process' arguments like the C @code{argv}. + +Remember to @code{g_strfreev} the returned array to avoid a memory +leak. + @page @node glibtop_proc_map, glibtop_netload, glibtop_proc_args, System Dependent @subsection Process Memory Maps @@ -1494,6 +1518,7 @@ struct _glibtop_fsusage bavail, files, ffree; + guint32 block_size; @}; @end cartouche @end example @@ -1509,6 +1534,8 @@ Free blocks available to ordinary users. Total file nodes. @item ffree Free file nodes. +@item block_size +Block size in bytes. @end table Blocks are usually 512 bytes.