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:
@@ -45,7 +45,18 @@ struct _glibtop_proclist
|
||||
|
||||
#define glibtop_get_proclist(proclist) glibtop_get_proclist__r(glibtop_global_server, proclist)
|
||||
|
||||
extern unsigned *glibtop_get_proclist__r __P((glibtop *, glibtop_proclist *));
|
||||
#if GLIBTOP_SUID_PROCLIST
|
||||
#define glibtop_get_proclist__r glibtop_get_proclist__l
|
||||
#else
|
||||
#define glibtop_get_proclist__r glibtop_get_proclist__s
|
||||
#endif
|
||||
|
||||
#if GLIBTOP_SUID_PROCLIST
|
||||
extern unsigned *glibtop_get_proclist__l __P((glibtop *, glibtop_proclist *));
|
||||
extern unsigned *glibtop_get_proclist__p __P((glibtop *, glibtop_proclist *));
|
||||
#else
|
||||
extern unsigned *glibtop_get_proclist__s __P((glibtop *, glibtop_proclist *));
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_GUILE
|
||||
|
||||
|
Reference in New Issue
Block a user