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:
committed by
Martin Baulig
parent
9e2a8f7db8
commit
7b30b1ec86
@@ -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>
|
1999-05-11 Martin Baulig <martin@home-of-linux.org>
|
||||||
|
|
||||||
* procstate.c: Fixed implementation of the `state' field; added
|
* procstate.c: Fixed implementation of the `state' field; added
|
||||||
|
@@ -36,8 +36,6 @@
|
|||||||
|
|
||||||
BEGIN_LIBGTOP_DECLS
|
BEGIN_LIBGTOP_DECLS
|
||||||
|
|
||||||
int table (int id, int index, char *addr, int nel, u_int lel);
|
|
||||||
|
|
||||||
typedef struct _glibtop_machine glibtop_machine;
|
typedef struct _glibtop_machine glibtop_machine;
|
||||||
|
|
||||||
struct _glibtop_machine
|
struct _glibtop_machine
|
||||||
|
@@ -32,12 +32,12 @@ BEGIN_LIBGTOP_DECLS
|
|||||||
|
|
||||||
static inline void glibtop_suid_enter (glibtop *server) {
|
static inline void glibtop_suid_enter (glibtop *server) {
|
||||||
setreuid (server->_priv->machine.uid, server->_priv->machine.euid);
|
setreuid (server->_priv->machine.uid, server->_priv->machine.euid);
|
||||||
};
|
}
|
||||||
|
|
||||||
static inline void glibtop_suid_leave (glibtop *server) {
|
static inline void glibtop_suid_leave (glibtop *server) {
|
||||||
if (setreuid (server->_priv->machine.euid, server->_priv->machine.uid))
|
if (setreuid (server->_priv->machine.euid, server->_priv->machine.uid))
|
||||||
_exit (1);
|
_exit (1);
|
||||||
};
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
glibtop_init_p (glibtop *server, const unsigned long features,
|
glibtop_init_p (glibtop *server, const unsigned long features,
|
||||||
|
@@ -43,9 +43,12 @@ glibtop_init_netinfo_p (glibtop *server)
|
|||||||
|
|
||||||
/* Provides Network statistics. */
|
/* Provides Network statistics. */
|
||||||
|
|
||||||
int
|
glibtop_ifaddr *
|
||||||
glibtop_get_netinfo_p (glibtop *server, glibtop_netinfo *buf,
|
glibtop_get_netinfo_p (glibtop *server,
|
||||||
const char *interface, unsigned transport)
|
glibtop_array *array,
|
||||||
|
glibtop_netinfo *buf,
|
||||||
|
const char *interface,
|
||||||
|
u_int64_t transport)
|
||||||
{
|
{
|
||||||
glibtop_init_p (server, GLIBTOP_SYSDEPS_NETINFO, 0);
|
glibtop_init_p (server, GLIBTOP_SYSDEPS_NETINFO, 0);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user