added 'dummy' member so 'GLIBTOP_SYSDEPS_<feature>' now start with 1.

* include/glibtop/sysdeps.h: added 'dummy' member so
'GLIBTOP_SYSDEPS_<feature>' now start with 1.

* include/glibtop/*.h: we now #define 'glibtop_get_<feature>'
as 'glibtop_get_<feature>__l' and 'glibtop_get_<feature>__r'
either as the '__p' or the '__s' function.
This commit is contained in:
Martin Baulig
1998-06-01 15:14:50 +00:00
parent 67798e0d7d
commit b7be9a7141
19 changed files with 103 additions and 84 deletions

View File

@@ -47,16 +47,17 @@ struct _glibtop_shm_limits
shmall; /* GLIBTOP_IPC_SHMALL */
};
#define glibtop_get_shm_limits(shm) glibtop_get_shm_limits__r(glibtop_global_server, shm)
#define glibtop_get_shm_limits(shm) glibtop_get_shm_limits__l(glibtop_global_server, shm)
#if GLIBTOP_SUID_SHM_LIMITS
#define glibtop_get_shm_limits__r glibtop_get_shm_limits__l
#define glibtop_get_shm_limits__r glibtop_get_shm_limits__p
#else
#define glibtop_get_shm_limits__r glibtop_get_shm_limits__s
#endif
#if GLIBTOP_SUID_SHM_LIMITS
extern void glibtop_get_shm_limits__l __P((glibtop *, glibtop_shm_limits *));
#if GLIBTOP_SUID_SHM_LIMITS
extern void glibtop_get_shm_limits__p __P((glibtop *, glibtop_shm_limits *));
#else
extern void glibtop_get_shm_limits__s __P((glibtop *, glibtop_shm_limits *));