summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBenoît Dejean <bdejean@src.gnome.org>2004-07-07 20:16:43 +0000
committerBenoît Dejean <bdejean@src.gnome.org>2004-07-07 20:16:43 +0000
commit2e6438e5827d8c9058f292353f2615dfda426c46 (patch)
treeac754914f754aa653302ab9e773aee3226fd5926 /doc
parentbabe152ba2169ef58011aa363b81a8f4546e87d6 (diff)
downloadlibgtop-2e6438e5827d8c9058f292353f2615dfda426c46.tar.gz
updated. Added glibtop_get_proc_argv. Added glibtop_fsusage.block_size.
* reference.texi: updated. Added glibtop_get_proc_argv. Added glibtop_fsusage.block_size.
Diffstat (limited to 'doc')
-rw-r--r--doc/ChangeLog6
-rw-r--r--doc/reference.texi29
2 files changed, 34 insertions, 1 deletions
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 <tazforever@dlfp.org>
+
+ * reference.texi: updated.
+ Added glibtop_get_proc_argv.
+ Added glibtop_fsusage.block_size.
+
2004-03-05 Bastien Nocera <hadess@hadess.net>
* 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.