summaryrefslogtreecommitdiff
path: root/include/glibtop/sysdeps.h
diff options
context:
space:
mode:
authorBenoît Dejean <bdejean@src.gnome.org>2005-01-10 08:43:04 +0000
committerBenoît Dejean <bdejean@src.gnome.org>2005-01-10 08:43:04 +0000
commit7ca4171652dff239b35b1959bb7a32a2d066dca8 (patch)
tree5bf03f60ca927540b061a57885d85300bf250109 /include/glibtop/sysdeps.h
parent1537eea7e5abfff849d1b239c15446699668811b (diff)
downloadlibgtop-7ca4171652dff239b35b1959bb7a32a2d066dca8.tar.gz
New feature by nick@reloco.com.ar (Nicolás Lichtmaier).
* configure.in: * examples/.cvsignore: * examples/Makefile.am: * examples/openfiles.c: (show_open_files), (main): * features.def: * include/glibtop/Makefile.am: * include/glibtop/command.h: * include/glibtop/procopenfiles.h: * include/glibtop/sysdeps.h: * include/glibtop/union.h: * structures.def: * sysdeps/linux/Makefile.am: * sysdeps/linux/procopenfiles.c: (glibtop_init_proc_open_files_s), (get_socket_endpoint), (glibtop_get_proc_open_files_s): * sysdeps/stub/Makefile.am: * sysdeps/stub/procopenfiles.c: (glibtop_init_proc_open_files_s), (glibtop_get_proc_open_files_s): New feature by nick@reloco.com.ar (Nicolás Lichtmaier). glibtop_get_open_files(pid) -> list of files by process. TODO: Add documentation.
Diffstat (limited to 'include/glibtop/sysdeps.h')
-rw-r--r--include/glibtop/sysdeps.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/glibtop/sysdeps.h b/include/glibtop/sysdeps.h
index af490fd3..5547ccfd 100644
--- a/include/glibtop/sysdeps.h
+++ b/include/glibtop/sysdeps.h
@@ -52,8 +52,9 @@ G_BEGIN_DECLS
#define GLIBTOP_SYSDEPS_NETLOAD 21
#define GLIBTOP_SYSDEPS_PPP 22
#define GLIBTOP_SYSDEPS_NETLIST 23
+#define GLIBTOP_SYSDEPS_PROC_OPEN_FILES 24
-#define GLIBTOP_MAX_SYSDEPS 24
+#define GLIBTOP_MAX_SYSDEPS 25
#define GLIBTOP_SYSDEPS_ALL ((1 << GLIBTOP_MAX_SYSDEPS) - 1)
@@ -85,6 +86,7 @@ struct _glibtop_sysdeps
proc_segment, /* glibtop_proc_segment */
proc_args, /* glibtop_proc_args */
proc_map, /* glibtop_proc_map */
+ proc_open_files, /* glibtop_proc_open_files */
mountlist, /* glibtop_mountlist */
fsusage, /* glibtop_fsusage */
netlist, /* glibtop_netlist */