Replaced glibtop_init_r' with
glibtop_init_s'.
1998-07-24 Martin Baulig <martin@home-of-linux.org> * sysdeps/{kernel, linux}/*.c: Replaced `glibtop_init_r' with `glibtop_init_s'. * sysdeps/sun4/open.c (glibtop_init_p): Removed `program_name' parameter. * sysdeps/osf1/glibtop_suid.h: New file. * sysdeps/osf1/glibtop_server.h: Now correctly using `(1 << GLIBTOP_SYSDEPS_*)' instead of `GLIBTOP_SYSDEPS_*'. * sysdeps/osf1/open_suid.c (glibtop_init_p): New function. * sysdeps/osf1/proc*.c: Done some more work here.
This commit is contained in:
committed by
Martin Baulig
parent
51c5c3ac22
commit
f3f051ecba
@@ -63,13 +63,13 @@ struct nlist _glibtop_nlist[] = {
|
||||
/* !!! THIS FUNCTION RUNS SUID ROOT - CHANGE WITH CAUTION !!! */
|
||||
|
||||
void
|
||||
glibtop_init_p (glibtop *server, const char *program_name,
|
||||
const unsigned long features, const unsigned flags)
|
||||
glibtop_init_p (glibtop *server, const unsigned long features,
|
||||
const unsigned flags)
|
||||
{
|
||||
if (server == NULL)
|
||||
glibtop_error_r (NULL, "glibtop_init_p (server == NULL)");
|
||||
|
||||
glibtop_open_p (server, program_name, features, flags);
|
||||
glibtop_open_p (server, "glibtop", features, flags);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -164,12 +164,14 @@ glibtop_open_p (glibtop *server, const char *program_name,
|
||||
|
||||
server->machine.bytesize = server->machine.epages -
|
||||
server->machine.pages;
|
||||
server->machine.count = server->machine.bytesize / sizeof (struct page);
|
||||
server->machine.count = server->machine.bytesize /
|
||||
sizeof (struct page);
|
||||
|
||||
server->machine.physpage =
|
||||
(struct page *) glibtop_malloc_r (server, server->machine.bytesize);
|
||||
server->machine.physpage = (struct page *)
|
||||
glibtop_malloc_r (server, server->machine.bytesize);
|
||||
|
||||
/* get the page size with "getpagesize" and calculate pageshift from it */
|
||||
/* get the page size with "getpagesize" and
|
||||
* calculate pageshift from it */
|
||||
|
||||
pagesize = getpagesize();
|
||||
|
||||
|
Reference in New Issue
Block a user