This is now a LibGTop backend which can be loaded additionally to the

2000-01-23  Martin Baulig  <martin@home-of-linux.org>

	This is now a LibGTop backend which can be loaded additionally
	to the normal Linux sysdeps code.

	* open.c, close.c: Removed.
	* shm_limits.c, msg_limits.c, sem_limits.c, ppp.c: Removed.
	* siglist.c, sysinfo.c: Removed.

	* backend-kernel.c: New file.
	* glibtop-backend-private.h: New file.
	* libgtop-kernel.backend: New file.

	* backend-kernel.pl: New file. Automatically creates
	`backend-kernel.h'.

	* marshal.pl: New file. Automatically creates `marshal.c'.

	* glibtop_server.h: Replaced all `GLIBTOP_SUID_<feature>' constants
	with `GLIBTOP_IMPL_<feature>' ones; they're used in marshal.c to
	find out which features this backend implements.

	* *.c: Renamed all `glibtop_get_<feature>_s' functions to
	`glibtop_get_<feature>_k' and all `glibtop_init_<feature>_s' ones
	to `glibtop_init_<feature>_k'.
This commit is contained in:
Martin Baulig
2000-01-22 23:32:49 +00:00
committed by Martin Baulig
parent d2f4502e74
commit 3455d025a2
36 changed files with 637 additions and 755 deletions

View File

@@ -34,7 +34,7 @@ static const unsigned long _glibtop_sysdeps_loadavg =
/* Init function. */
int
glibtop_init_loadavg_s (glibtop *server)
glibtop_init_loadavg_k (glibtop *server)
{
server->sysdeps.loadavg = _glibtop_sysdeps_loadavg;
@@ -44,14 +44,14 @@ glibtop_init_loadavg_s (glibtop *server)
/* Provides load averange. */
int
glibtop_get_loadavg_s (glibtop *server, glibtop_loadavg *buf)
glibtop_get_loadavg_k (glibtop *server, glibtop_loadavg *buf)
{
libgtop_stat_t stat;
int retval;
memset (buf, 0, sizeof (glibtop_loadavg));
retval = glibtop_get_proc_data_stat_s (server, &stat);
retval = glibtop_get_proc_data_stat_k (server, &stat);
if (retval)
return retval;