Apply patch by the_h1ghlander@yahoo.com and Cory Omand

2003-10-20  Bastien Nocera  <hadess@hadess.net>

	* include/glibtop/cpu.h:
	* include/glibtop/procstate.h:
	* include/glibtop/procuid.h:
	* include/glibtop/uptime.h:
	* lib/sysdeps.c:
	* sysdeps/names/cpu.c:
	* sysdeps/names/procstate.c:
	* sysdeps/names/procuid.c:
	* sysdeps/names/uptime.c: Apply patch by the_h1ghlander@yahoo.com and
	Cory Omand <cory.omand@Sun.com> for Solaris support
This commit is contained in:
Bastien Nocera
2003-10-20 21:27:31 +00:00
committed by Bastien Nocera
parent a50e5fdc9a
commit 07d991f383
12 changed files with 180 additions and 49 deletions

View File

@@ -60,9 +60,11 @@ glibtop_get_shm_limits_p (glibtop *server, glibtop_shm_limits *buf)
if(kvm_read(kd, nlst[0].n_value, (void *)&sinfo,
sizeof(struct shminfo)) != sizeof(struct shminfo))
return;
buf->shmmax = sinfo.shmmax;
buf->shmmin = sinfo.shmmin;
buf->shmmax = sinfo.shmmax;
buf->shmmni = sinfo.shmmni;
#if GLIBTOP_SOLARIS_RELEASE < 590
buf->shmmin = sinfo.shmmin;
buf->shmseg = sinfo.shmseg;
#endif
buf->flags = _glibtop_sysdeps_shm_limits;
}