Now correctly using `(1 << GLIBTOP_SYSDEPS_*)' instead of

1998-07-17  Martin Baulig  <baulig@Stud.Informatik.uni-trier.de>

	* lib/lib.awk (glibtop_get_*): Now correctly using
	`(1 << GLIBTOP_SYSDEPS_*)' instead of `GLIBTOP_SYSDEPS_*'.
This commit is contained in:
Martin Baulig
1998-07-17 17:21:00 +00:00
committed by Martin Baulig
parent c41d6e5a77
commit 540cd68691
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
1998-07-17 Martin Baulig <baulig@Stud.Informatik.uni-trier.de> 1998-07-17 Martin Baulig <baulig@Stud.Informatik.uni-trier.de>
* lib/lib.awk (glibtop_get_*): Now correctly using
`(1 << GLIBTOP_SYSDEPS_*)' instead of `GLIBTOP_SYSDEPS_*'.
* sysdeps/sun4/proclist.c (glibtop_get_proclist_p): Added * sysdeps/sun4/proclist.c (glibtop_get_proclist_p): Added
implementation of that feature. implementation of that feature.

View File

@@ -31,7 +31,7 @@ function output(feature) {
print "\tglibtop_init_r (&server, GLIBTOP_SYSDEPS_"toupper(feature)", 0);"; print "\tglibtop_init_r (&server, GLIBTOP_SYSDEPS_"toupper(feature)", 0);";
print ""; print "";
print "\tif ((server->flags & _GLIBTOP_INIT_STATE_SERVER) &&"; print "\tif ((server->flags & _GLIBTOP_INIT_STATE_SERVER) &&";
print "\t (server->features & GLIBTOP_SYSDEPS_"toupper(feature)"))"; print "\t (server->features & (1 << GLIBTOP_SYSDEPS_"toupper(feature)")))";
print "\t{"; print "\t{";
if (feature ~ /^proc_/) { if (feature ~ /^proc_/) {