static char sccsid
[] = "@(#)mbufs.c 1.2 (Lucasfilm) %G%";
w
= newwin(20, 70, 3, 5);
"/0 /5 /10 /15 /20 /25 /30 /35 /40 /45 /50");
register int i
, j
, max
, index
;
for (j
= 0; j
< 15; j
++) {
if (mb
->m_mtypes
[i
] > max
) {
waddstr(wnd
, mtnames
[index
]);
sprintf(buf
, " %d", max
);
static struct nlist nlst
[] = {
if (nlst
[X_MBSTAT
].n_type
== 0) {
if (nlst
[X_MBSTAT
].n_type
== 0) {
error("namelist on /vmunix failed");
mb
= (struct mbstat
*)calloc(1, sizeof (*mb
));
if (nlst
[X_MBSTAT
].n_type
== 0)
lseek(kmem
, nlst
[X_MBSTAT
].n_value
, L_SET
);
read(kmem
, mb
, sizeof (*mb
));