summaryrefslogtreecommitdiff
path: root/sysdeps/osf1/netload.c
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1999-02-19 21:32:52 +0000
committerMartin Baulig <martin@src.gnome.org>1999-02-19 21:32:52 +0000
commit38a4f74c1ac8452af9e64cb28d425972567ea34b (patch)
treefffef8368ce19843e43e5300bfa71015cacaf261 /sysdeps/osf1/netload.c
parent0da389347e7f5772a42d72a039cec7917ef1654c (diff)
downloadlibgtop-38a4f74c1ac8452af9e64cb28d425972567ea34b.tar.gz
Copied from stub_suid.
1999-02-19 Martin Baulig <martin@home-of-linux.org> * procmap.c, procargs.c, netload.c: Copied from stub_suid. * proclist.c, procsegment.c: Make them compile again.
Diffstat (limited to 'sysdeps/osf1/netload.c')
-rw-r--r--sysdeps/osf1/netload.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/sysdeps/osf1/netload.c b/sysdeps/osf1/netload.c
new file mode 100644
index 00000000..e8ecaa3c
--- /dev/null
+++ b/sysdeps/osf1/netload.c
@@ -0,0 +1,43 @@
+/* $Id$ */
+
+/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+ This file is part of the Gnome Top Library.
+ Contributed by Martin Baulig <martin@home-of-linux.org>, October 1998.
+
+ The Gnome Top Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ The Gnome Top Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with the GNU C Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+#include <glibtop.h>
+#include <glibtop/error.h>
+#include <glibtop/netload.h>
+
+static const unsigned long _glibtop_sysdeps_netload = 0;
+
+/* Init function. */
+
+void
+glibtop_init_netload_p (glibtop *server)
+{
+ server->sysdeps.netload = _glibtop_sysdeps_netload;
+}
+
+/* Provides Network statistics. */
+
+void
+glibtop_get_netload_p (glibtop *server, glibtop_netload *buf,
+ const char *interface)
+{
+ memset (buf, 0, sizeof (glibtop_netload));
+}