added some new function suffixes: '__l' is a function defined in the

* sysdeps/linux/*.h: added some new function suffixes:
'__l' is a function defined in the client part;
'__s' is a function defined in the sysdeps part and
'__p' is a function that needs special priviledges.
'__r' is mapped either on '__l' or on '__s'.

* sysdeps/linux/glibtop_server.h: New file -
defines system dependent constants 'GLIBTOP_SUID_<feature>'
being either 'GLIBTOP_SYSDEPS_<feature>'+1 depending upon
whether or not this feature requires using the server.

Things may now temporarily get instable; I'm currently implementing some
suggestions Sebastian Wilhelmi has made.
This commit is contained in:
Martin Baulig
1998-05-28 19:19:49 +00:00
parent 4e1e1ccb9f
commit 62dda3b782
20 changed files with 200 additions and 20 deletions

View File

@@ -49,7 +49,18 @@ struct _glibtop_shm_limits
#define glibtop_get_shm_limits(shm) glibtop_get_shm_limits__r(glibtop_global_server, shm)
extern void glibtop_get_shm_limits__r __P((glibtop *, glibtop_shm_limits *));
#if GLIBTOP_SUID_SHM_LIMITS
#define glibtop_get_shm_limits__r glibtop_get_shm_limits__l
#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 *));
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 *));
#endif
#ifdef HAVE_GUILE