Applied a patch from Aron Griffis <agriffis@bigfoot.com>.

2000-02-24  Martin Baulig  <martin@home-of-linux.org>

	Applied a patch from Aron Griffis <agriffis@bigfoot.com>.

	* glibtop_machine.h: Don't declare table () here.
	* netinfo.c: Reflect latest interface changes.
This commit is contained in:
Martin Baulig
2000-02-24 12:48:55 +00:00
committed by Martin Baulig
parent 9e2a8f7db8
commit 7b30b1ec86
4 changed files with 15 additions and 7 deletions

View File

@@ -1,3 +1,10 @@
2000-02-24 Martin Baulig <martin@home-of-linux.org>
Applied a patch from Aron Griffis <agriffis@bigfoot.com>.
* glibtop_machine.h: Don't declare table () here.
* netinfo.c: Reflect latest interface changes.
1999-05-11 Martin Baulig <martin@home-of-linux.org>
* procstate.c: Fixed implementation of the `state' field; added

View File

@@ -36,8 +36,6 @@
BEGIN_LIBGTOP_DECLS
int table (int id, int index, char *addr, int nel, u_int lel);
typedef struct _glibtop_machine glibtop_machine;
struct _glibtop_machine

View File

@@ -32,12 +32,12 @@ BEGIN_LIBGTOP_DECLS
static inline void glibtop_suid_enter (glibtop *server) {
setreuid (server->_priv->machine.uid, server->_priv->machine.euid);
};
}
static inline void glibtop_suid_leave (glibtop *server) {
if (setreuid (server->_priv->machine.euid, server->_priv->machine.uid))
_exit (1);
};
}
void
glibtop_init_p (glibtop *server, const unsigned long features,

View File

@@ -43,9 +43,12 @@ glibtop_init_netinfo_p (glibtop *server)
/* Provides Network statistics. */
int
glibtop_get_netinfo_p (glibtop *server, glibtop_netinfo *buf,
const char *interface, unsigned transport)
glibtop_ifaddr *
glibtop_get_netinfo_p (glibtop *server,
glibtop_array *array,
glibtop_netinfo *buf,
const char *interface,
u_int64_t transport)
{
glibtop_init_p (server, GLIBTOP_SYSDEPS_NETINFO, 0);