diff options
-rw-r--r-- | sysdeps/stub/ChangeLog | 6 | ||||
-rw-r--r-- | sysdeps/stub/cpu.c | 12 | ||||
-rw-r--r-- | sysdeps/stub/glibtop_server.h | 1 | ||||
-rw-r--r-- | sysdeps/stub/loadavg.c | 12 | ||||
-rw-r--r-- | sysdeps/stub/mem.c | 12 | ||||
-rw-r--r-- | sysdeps/stub/msg_limits.c | 11 | ||||
-rw-r--r-- | sysdeps/stub/prockernel.c | 12 | ||||
-rw-r--r-- | sysdeps/stub/proclist.c | 12 | ||||
-rw-r--r-- | sysdeps/stub/procmem.c | 12 | ||||
-rw-r--r-- | sysdeps/stub/procsegment.c | 12 | ||||
-rw-r--r-- | sysdeps/stub/procsignal.c | 12 | ||||
-rw-r--r-- | sysdeps/stub/procstate.c | 12 | ||||
-rw-r--r-- | sysdeps/stub/proctime.c | 12 | ||||
-rw-r--r-- | sysdeps/stub/procuid.c | 12 | ||||
-rw-r--r-- | sysdeps/stub/sem_limits.c | 11 | ||||
-rw-r--r-- | sysdeps/stub/shm_limits.c | 11 | ||||
-rw-r--r-- | sysdeps/stub/swap.c | 12 | ||||
-rw-r--r-- | sysdeps/stub/uptime.c | 12 |
18 files changed, 183 insertions, 13 deletions
diff --git a/sysdeps/stub/ChangeLog b/sysdeps/stub/ChangeLog new file mode 100644 index 00000000..23d83483 --- /dev/null +++ b/sysdeps/stub/ChangeLog @@ -0,0 +1,6 @@ +1998-08-24 Martin Baulig <martin@home-of-linux.org> + + * *.c: Added initialization functions `glibtop_init_<feature>_s'. + + * ChangeLog: New file. + diff --git a/sysdeps/stub/cpu.c b/sysdeps/stub/cpu.c index 9a40ed3c..b09e2c7e 100644 --- a/sysdeps/stub/cpu.c +++ b/sysdeps/stub/cpu.c @@ -19,9 +19,19 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <config.h> +#include <glibtop.h> #include <glibtop/cpu.h> +static const unsigned long _glibtop_sysdeps_cpu = 0; + +/* Init function. */ + +void +glibtop_init_cpu_s (glibtop *server) +{ + server->sysdeps.cpu = _glibtop_sysdeps_cpu; +} + /* Provides information about cpu usage. */ void diff --git a/sysdeps/stub/glibtop_server.h b/sysdeps/stub/glibtop_server.h index 52b1b3c0..23664c12 100644 --- a/sysdeps/stub/glibtop_server.h +++ b/sysdeps/stub/glibtop_server.h @@ -40,6 +40,7 @@ __BEGIN_DECLS #define GLIBTOP_SUID_PROC_SIGNAL 0 #define GLIBTOP_SUID_PROC_KERNEL 0 #define GLIBTOP_SUID_PROC_SEGMENT 0 +#define GLIBTOP_SUID_PROC_MAP 0 __END_DECLS diff --git a/sysdeps/stub/loadavg.c b/sysdeps/stub/loadavg.c index 631048e1..441a99ac 100644 --- a/sysdeps/stub/loadavg.c +++ b/sysdeps/stub/loadavg.c @@ -19,9 +19,19 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <config.h> +#include <glibtop.h> #include <glibtop/loadavg.h> +static const unsigned long _glibtop_sysdeps_loadavg = 0; + +/* Init function. */ + +void +glibtop_init_loadavg_s (glibtop *server) +{ + server->sysdeps.loadavg = _glibtop_sysdeps_loadavg; +} + /* Provides load averange. */ void diff --git a/sysdeps/stub/mem.c b/sysdeps/stub/mem.c index e9e06a93..b420d635 100644 --- a/sysdeps/stub/mem.c +++ b/sysdeps/stub/mem.c @@ -19,9 +19,19 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <config.h> +#include <glibtop.h> #include <glibtop/mem.h> +static const unsigned long _glibtop_sysdeps_mem = 0; + +/* Init function. */ + +void +glibtop_init_mem_s (glibtop *server) +{ + server->sysdeps.mem = _glibtop_sysdeps_mem; +} + /* Provides information about memory usage. */ void diff --git a/sysdeps/stub/msg_limits.c b/sysdeps/stub/msg_limits.c index 780ed033..4d18f042 100644 --- a/sysdeps/stub/msg_limits.c +++ b/sysdeps/stub/msg_limits.c @@ -19,8 +19,19 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include <glibtop.h> #include <glibtop/msg_limits.h> +static const unsigned long _glibtop_sysdeps_msg_limits = 0; + +/* Init function. */ + +void +glibtop_init_msg_limits_s (glibtop *server) +{ + server->sysdeps.msg_limits = _glibtop_sysdeps_msg_limits; +} + /* Provides information about sysv ipc limits. */ void diff --git a/sysdeps/stub/prockernel.c b/sysdeps/stub/prockernel.c index 51aadf94..e0a918fd 100644 --- a/sysdeps/stub/prockernel.c +++ b/sysdeps/stub/prockernel.c @@ -19,9 +19,19 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <config.h> +#include <glibtop.h> #include <glibtop/prockernel.h> +static const unsigned long _glibtop_sysdeps_proc_kernel = 0; + +/* Init function. */ + +void +glibtop_init_proc_kernel_s (glibtop *server) +{ + server->sysdeps.proc_kernel = _glibtop_sysdeps_proc_kernel; +} + /* Provides detailed information about a process. */ void diff --git a/sysdeps/stub/proclist.c b/sysdeps/stub/proclist.c index 8c09be06..144d1c66 100644 --- a/sysdeps/stub/proclist.c +++ b/sysdeps/stub/proclist.c @@ -19,11 +19,21 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <config.h> +#include <glibtop.h> #include <glibtop/proclist.h> #define GLIBTOP_PROCLIST_FLAGS 3 +static const unsigned long _glibtop_sysdeps_proclist = 0; + +/* Init function. */ + +void +glibtop_init_proclist_s (glibtop *server) +{ + server->sysdeps.proclist = _glibtop_sysdeps_proclist; +} + /* Fetch list of currently running processes. * * IMPORTANT NOTE: diff --git a/sysdeps/stub/procmem.c b/sysdeps/stub/procmem.c index 08d125d8..4099c465 100644 --- a/sysdeps/stub/procmem.c +++ b/sysdeps/stub/procmem.c @@ -19,9 +19,19 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <config.h> +#include <glibtop.h> #include <glibtop/procmem.h> +static const unsigned long _glibtop_sysdeps_proc_mem = 0; + +/* Init function. */ + +void +glibtop_init_proc_mem_s (glibtop *server) +{ + server->sysdeps.proc_mem = _glibtop_sysdeps_proc_mem; +} + /* Provides detailed information about a process. */ void diff --git a/sysdeps/stub/procsegment.c b/sysdeps/stub/procsegment.c index 3bc840da..4e144888 100644 --- a/sysdeps/stub/procsegment.c +++ b/sysdeps/stub/procsegment.c @@ -19,9 +19,19 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <config.h> +#include <glibtop.h> #include <glibtop/procsegment.h> +static const unsigned long _glibtop_sysdeps_proc_segment = 0; + +/* Init function. */ + +void +glibtop_init_proc_segment_s (glibtop *server) +{ + server->sysdeps.proc_segment = _glibtop_sysdeps_proc_segment; +} + /* Provides detailed information about a process. */ void diff --git a/sysdeps/stub/procsignal.c b/sysdeps/stub/procsignal.c index 7578fac4..bff37119 100644 --- a/sysdeps/stub/procsignal.c +++ b/sysdeps/stub/procsignal.c @@ -19,9 +19,19 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <config.h> +#include <glibtop.h> #include <glibtop/procsignal.h> +static const unsigned long _glibtop_sysdeps_proc_signal = 0; + +/* Init function. */ + +void +glibtop_init_proc_signal_s (glibtop *server) +{ + server->sysdeps.proc_signal = _glibtop_sysdeps_proc_signal; +} + /* Provides detailed information about a process. */ void diff --git a/sysdeps/stub/procstate.c b/sysdeps/stub/procstate.c index 1e4bb4f8..8e42c7a8 100644 --- a/sysdeps/stub/procstate.c +++ b/sysdeps/stub/procstate.c @@ -19,9 +19,19 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <config.h> +#include <glibtop.h> #include <glibtop/procstate.h> +static const unsigned long _glibtop_sysdeps_proc_state = 0; + +/* Init function. */ + +void +glibtop_init_proc_state_s (glibtop *server) +{ + server->sysdeps.proc_state = _glibtop_sysdeps_proc_state; +} + /* Provides detailed information about a process. */ void diff --git a/sysdeps/stub/proctime.c b/sysdeps/stub/proctime.c index d646c321..c90c262e 100644 --- a/sysdeps/stub/proctime.c +++ b/sysdeps/stub/proctime.c @@ -19,9 +19,19 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <config.h> +#include <glibtop.h> #include <glibtop/proctime.h> +static const unsigned long _glibtop_sysdeps_proc_time = 0; + +/* Init function. */ + +void +glibtop_init_proc_time_s (glibtop *server) +{ + server->sysdeps.proc_time = _glibtop_sysdeps_proc_time; +} + /* Provides detailed information about a process. */ void diff --git a/sysdeps/stub/procuid.c b/sysdeps/stub/procuid.c index a753f0d3..174a79ec 100644 --- a/sysdeps/stub/procuid.c +++ b/sysdeps/stub/procuid.c @@ -19,9 +19,19 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <config.h> +#include <glibtop.h> #include <glibtop/procuid.h> +static const unsigned long _glibtop_sysdeps_proc_uid = 0; + +/* Init function. */ + +void +glibtop_init_proc_uid_s (glibtop *server) +{ + server->sysdeps.proc_uid = _glibtop_sysdeps_proc_uid; +} + /* Provides detailed information about a process. */ void diff --git a/sysdeps/stub/sem_limits.c b/sysdeps/stub/sem_limits.c index 062d4886..a99cd79a 100644 --- a/sysdeps/stub/sem_limits.c +++ b/sysdeps/stub/sem_limits.c @@ -19,8 +19,19 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include <glibtop.h> #include <glibtop/sem_limits.h> +static const unsigned long _glibtop_sysdeps_sem_limits = 0; + +/* Init function. */ + +void +glibtop_init_sem_limits_s (glibtop *server) +{ + server->sysdeps.sem_limits = _glibtop_sysdeps_sem_limits; +} + /* Provides information about sysv sem limits. */ void diff --git a/sysdeps/stub/shm_limits.c b/sysdeps/stub/shm_limits.c index b4ac4bb3..42cbd4e0 100644 --- a/sysdeps/stub/shm_limits.c +++ b/sysdeps/stub/shm_limits.c @@ -19,8 +19,19 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include <glibtop.h> #include <glibtop/shm_limits.h> +static const unsigned long _glibtop_sysdeps_shm_limits = 0; + +/* Init function. */ + +void +glibtop_init_shm_limits_s (glibtop *server) +{ + server->sysdeps.shm_limits = _glibtop_sysdeps_shm_limits; +} + /* Provides information about sysv ipc limits. */ void diff --git a/sysdeps/stub/swap.c b/sysdeps/stub/swap.c index dbd7ef6c..5e4e56fd 100644 --- a/sysdeps/stub/swap.c +++ b/sysdeps/stub/swap.c @@ -19,9 +19,19 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <config.h> +#include <glibtop.h> #include <glibtop/swap.h> +static const unsigned long _glibtop_sysdeps_swap = 0; + +/* Init function. */ + +void +glibtop_init_swap_s (glibtop *server) +{ + server->sysdeps.swap = _glibtop_sysdeps_swap; +} + /* Provides information about swap usage. */ void diff --git a/sysdeps/stub/uptime.c b/sysdeps/stub/uptime.c index e9d887df..aa6f590d 100644 --- a/sysdeps/stub/uptime.c +++ b/sysdeps/stub/uptime.c @@ -19,9 +19,19 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include <config.h> +#include <glibtop.h> #include <glibtop/uptime.h> +static const unsigned long _glibtop_sysdeps_uptime = 0; + +/* Init function. */ + +void +glibtop_init_uptime_s (glibtop *server) +{ + server->sysdeps.uptime = _glibtop_sysdeps_uptime; +} + /* Provides uptime and idle time. */ void |