diff options
author | Martin Baulig <martin@home-of-linux.org> | 1999-05-06 19:49:31 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1999-05-06 19:49:31 +0000 |
commit | d67182f4111aa7e7c79caa7479abf22f24c9723f (patch) | |
tree | ab724c35af781844090783bc32796e42cff5219f /include/glibtop/sysdeps.h | |
parent | fec8f23ad45cbddbf1d168bee18bf61fd4aaaba0 (diff) | |
download | libgtop-d67182f4111aa7e7c79caa7479abf22f24c9723f.tar.gz |
Added `pointer_size' which is the number of bits of a `void *'.
1999-05-06 Martin Baulig <martin@home-of-linux.org>
* include/glibtop/sysdeps.h (glibtop_sysdeps): Added `pointer_size'
which is the number of bits of a `void *'.
Diffstat (limited to 'include/glibtop/sysdeps.h')
-rw-r--r-- | include/glibtop/sysdeps.h | 50 |
1 files changed, 26 insertions, 24 deletions
diff --git a/include/glibtop/sysdeps.h b/include/glibtop/sysdeps.h index b81d9f3f..b3222aba 100644 --- a/include/glibtop/sysdeps.h +++ b/include/glibtop/sysdeps.h @@ -31,30 +31,31 @@ BEGIN_LIBGTOP_DECLS #define GLIBTOP_SYSDEPS_FEATURES 0 -#define GLIBTOP_SYSDEPS_CPU 1 -#define GLIBTOP_SYSDEPS_MEM 2 -#define GLIBTOP_SYSDEPS_SWAP 3 -#define GLIBTOP_SYSDEPS_UPTIME 4 -#define GLIBTOP_SYSDEPS_LOADAVG 5 -#define GLIBTOP_SYSDEPS_SHM_LIMITS 6 -#define GLIBTOP_SYSDEPS_MSG_LIMITS 7 -#define GLIBTOP_SYSDEPS_SEM_LIMITS 8 -#define GLIBTOP_SYSDEPS_PROCLIST 9 -#define GLIBTOP_SYSDEPS_PROC_STATE 10 -#define GLIBTOP_SYSDEPS_PROC_UID 11 -#define GLIBTOP_SYSDEPS_PROC_MEM 12 -#define GLIBTOP_SYSDEPS_PROC_TIME 13 -#define GLIBTOP_SYSDEPS_PROC_SIGNAL 14 -#define GLIBTOP_SYSDEPS_PROC_KERNEL 15 -#define GLIBTOP_SYSDEPS_PROC_SEGMENT 16 -#define GLIBTOP_SYSDEPS_PROC_ARGS 17 -#define GLIBTOP_SYSDEPS_PROC_MAP 18 -#define GLIBTOP_SYSDEPS_MOUNTLIST 19 -#define GLIBTOP_SYSDEPS_FSUSAGE 20 -#define GLIBTOP_SYSDEPS_NETLOAD 21 -#define GLIBTOP_SYSDEPS_PPP 22 - -#define GLIBTOP_MAX_SYSDEPS 23 +#define GLIBTOP_SYSDEPS_POINTER_SIZE 1 +#define GLIBTOP_SYSDEPS_CPU 2 +#define GLIBTOP_SYSDEPS_MEM 3 +#define GLIBTOP_SYSDEPS_SWAP 4 +#define GLIBTOP_SYSDEPS_UPTIME 5 +#define GLIBTOP_SYSDEPS_LOADAVG 6 +#define GLIBTOP_SYSDEPS_SHM_LIMITS 7 +#define GLIBTOP_SYSDEPS_MSG_LIMITS 8 +#define GLIBTOP_SYSDEPS_SEM_LIMITS 9 +#define GLIBTOP_SYSDEPS_PROCLIST 10 +#define GLIBTOP_SYSDEPS_PROC_STATE 11 +#define GLIBTOP_SYSDEPS_PROC_UID 12 +#define GLIBTOP_SYSDEPS_PROC_MEM 13 +#define GLIBTOP_SYSDEPS_PROC_TIME 14 +#define GLIBTOP_SYSDEPS_PROC_SIGNAL 15 +#define GLIBTOP_SYSDEPS_PROC_KERNEL 16 +#define GLIBTOP_SYSDEPS_PROC_SEGMENT 17 +#define GLIBTOP_SYSDEPS_PROC_ARGS 18 +#define GLIBTOP_SYSDEPS_PROC_MAP 19 +#define GLIBTOP_SYSDEPS_MOUNTLIST 20 +#define GLIBTOP_SYSDEPS_FSUSAGE 21 +#define GLIBTOP_SYSDEPS_NETLOAD 22 +#define GLIBTOP_SYSDEPS_PPP 23 + +#define GLIBTOP_MAX_SYSDEPS 24 #define GLIBTOP_SYSDEPS_ALL ((1 << GLIBTOP_MAX_SYSDEPS) - 1) @@ -68,6 +69,7 @@ struct _glibtop_sysdeps { u_int64_t flags, features, /* server features */ + pointer_size, /* sizeof(void*)*8 */ cpu, /* glibtop_cpu */ mem, /* glibtop_mem */ swap, /* glibtop_swap */ |